MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / openBox

Method openBox

code/main/CandyBox.ts:183–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 }
182
183 private openBox(): void{
184 // The box is now opened
185 Saving.saveBool("candyBoxBoxOpened", true);
186
187 // The tabs are unlocked
188 Saving.saveBool("statusBarUnlockedInsideYourBox", true);
189 Saving.saveBool("statusBarUnlockedTheComputer", true);
190 Saving.saveBool("statusBarUnlockedTheArena", true);
191 this.getGame().updateStatusBar(true);
192
193 // Update
194 this.update();
195 this.getGame().updatePlace();
196 }
197
198 private requestStatusBarUnlocked(): void{
199 if(this.getGame().getCandies().getCurrent() >= 30){

Callers

nothing calls this directly

Calls 4

updateMethod · 0.95
updateStatusBarMethod · 0.80
updatePlaceMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected