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

Method clickedThrowCandiesButton

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

Source from the content-addressed store, hash-verified

173 }
174
175 private clickedThrowCandiesButton(): void{
176 if(this.getGame().getCandies().getCurrent() >= 10){
177 this.getGame().getCandies().transferTo(this.getGame().getCandiesThrown(), 10);
178 this.update();
179 this.getGame().updatePlace();
180 }
181 }
182
183 private openBox(): void{
184 // The box is now opened

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected