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

Method dig

code/main/Treasure.ts:21–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20 // Private methods
21 private dig(): void{
22 // We found the treasure
23 Saving.saveBool("TheCavePattern_TreasureMapFoundTreasure", true);
24
25 // Get it
26 this.getGame().getChocolateBars().add(3);
27
28 // Update
29 this.update();
30 this.getGame().updatePlace();
31 }
32
33 private update(): void{
34 // Erase everything

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected