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

Method requestStatusBarUnlockedMap

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

Source from the content-addressed store, hash-verified

226 }
227
228 private requestStatusBarUnlockedMap(): void{
229 if(this.getGame().getCandies().getCurrent() >= 10){
230 this.getGame().getCandies().transferTo(this.getGame().getCandiesUsedToRequestFeatures(), 10);
231 Saving.saveBool("statusBarUnlockedMap", true);
232 this.getGame().updateStatusBar(true);
233 this.update();
234 this.getGame().updatePlace();
235 }
236 }
237
238 private requestStatusBarUnlockedSave(): void{
239 if(this.getGame().getCandies().getCurrent() >= 5){

Callers

nothing calls this directly

Calls 8

updateMethod · 0.95
getCurrentMethod · 0.80
transferToMethod · 0.80
updateStatusBarMethod · 0.80
updatePlaceMethod · 0.80
getCandiesMethod · 0.45
getGameMethod · 0.45

Tested by

no test coverage detected