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

Method clickedBuyScytheButton

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

Source from the content-addressed store, hash-verified

87 }
88
89 private clickedBuyScytheButton(): void{
90 if(this.getGame().getCandies().getCurrent() >= 5000000){
91 this.getGame().getCandies().add(-5000000); // -5000000 candies
92 Saving.saveBool("forgeBoughtScythe", true); // We bought the scythe
93 this.getGame().gainItem("eqItemWeaponScythe"); // We now own the scythe
94 this.currentSpeech = "mapVillageForgeBuyScytheSpeech"; // New speech
95 // We update
96 this.update();
97 this.getGame().updatePlace();
98 }
99 }
100
101 private clickedBuyWoodenSwordButton(): void{
102 if(this.getGame().getCandies().getCurrent() >= 150){

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected