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

Method requestStatusBarUnlockedCfg

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

Source from the content-addressed store, hash-verified

206 }
207
208 private requestStatusBarUnlockedCfg(): void{
209 if(this.getGame().getCandies().getCurrent() >= 5){
210 this.getGame().getCandies().transferTo(this.getGame().getCandiesUsedToRequestFeatures(), 5);
211 Saving.saveBool("statusBarUnlockedCfg", true);
212 this.getGame().updateStatusBar(true);
213 this.update();
214 this.getGame().updatePlace();
215 }
216 }
217
218 private requestStatusBarUnlockedHealthBar(): void{
219 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