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

Method throwFirstLollipop

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

Source from the content-addressed store, hash-verified

315 }
316
317 private throwFirstLollipop(): void{
318 if(this.getGame().getLollipops().getCurrent() >= 1){
319 this.getGame().getLollipops().add(-1); // We use one lollipop
320 this.currentSpeech = "wishingWellLollipopIntroductionSpeech"; // Set the speech
321 Saving.saveBool("wishingWellFirstLollipopThrown", true); // Change the bool
322 this.update();
323 this.getGame().updatePlace();
324 }
325 }
326
327 private throwLollipops(): void{
328 // If we have enough lollipops

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected