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

Method throwFirstCandy

code/main/WishingWell.ts:307–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305 }
306
307 private throwFirstCandy(): void{
308 if(this.getGame().getCandies().getCurrent() >= 1){
309 this.getGame().getCandies().add(-1); // We use one candy
310 this.currentSpeech = "wishingWellCandyIntroductionSpeech"; // Set the speech
311 Saving.saveBool("wishingWellFirstCandyThrown", true); // Change the bool
312 this.update();
313 this.getGame().updatePlace();
314 }
315 }
316
317 private throwFirstLollipop(): void{
318 if(this.getGame().getLollipops().getCurrent() >= 1){

Callers

nothing calls this directly

Calls 6

updateMethod · 0.95
getCurrentMethod · 0.80
updatePlaceMethod · 0.80
addMethod · 0.65
getCandiesMethod · 0.45
getGameMethod · 0.45

Tested by

no test coverage detected