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

Method requestStatusBarUnlockedSave

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

Source from the content-addressed store, hash-verified

236 }
237
238 private requestStatusBarUnlockedSave(): void{
239 if(this.getGame().getCandies().getCurrent() >= 5){
240 this.getGame().getCandies().transferTo(this.getGame().getCandiesUsedToRequestFeatures(), 5);
241 Saving.saveBool("statusBarUnlockedSave", true);
242 this.getGame().updateStatusBar(true);
243 this.update();
244 this.getGame().updatePlace();
245 }
246 }
247}

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