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

Method takeLollipop

code/main/Forge.ts:131–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 }
130
131 private takeLollipop(): void{
132 // If we didn't get the lollipop yet
133 if(Saving.loadBool("forgeFoundLollipop") == false){
134 // Add one lollipop
135 this.getGame().getLollipops().add(1);
136 // Set the bool
137 Saving.saveBool("forgeFoundLollipop", true);
138 // Update
139 this.update();
140 this.getGame().updatePlace();
141 }
142 }
143
144 private update(): void{
145 // Erase everything

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected