()
| 75 | } |
| 76 | |
| 77 | private clickedBuyPolishedSilverSwordButton(): void{ |
| 78 | if(this.getGame().getCandies().getCurrent() >= 2000){ |
| 79 | this.getGame().getCandies().add(-2000); // -2000 candies |
| 80 | Saving.saveBool("forgeBoughtPolishedSilverSword", true); // We bought the sword |
| 81 | this.getGame().gainItem("eqItemWeaponPolishedSilverSword"); // We now own the sword |
| 82 | this.currentSpeech = "mapVillageForgeBuyPolishedSilverSwordSpeech"; // New speech |
| 83 | // We update |
| 84 | this.update(); |
| 85 | this.getGame().updatePlace(); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | private clickedBuyScytheButton(): void{ |
| 90 | if(this.getGame().getCandies().getCurrent() >= 5000000){ |
nothing calls this directly
no test coverage detected