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

Method willDie

code/main/MonkeyWizard.ts:136–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135 // willDie()
136 public willDie(): void{
137 // Candies
138 this.getQuest().getGame().getQuestLog().addMessage(new QuestLogMessage(this.getDeathMessage() + " (and found " + Algo.pluralFormat(this.getQuest().foundCandies(1000), " candy", " candies") + ")", this.getQuest().getCandiesFoundMessage()));
139 // The monkey wizard staff
140 this.getQuest().foundGridOrEqItem(new QuestItemFound(this.getQuest(), "eqItemWeaponMonkeyWizardStaff", "You found a staff.", "You gain the monkey wizard staff."));
141 }
142
143 // Private methods
144 private castSpell(stored: boolean): void{

Callers

nothing calls this directly

Calls 8

addMessageMethod · 0.80
getQuestLogMethod · 0.80
getQuestMethod · 0.80
getDeathMessageMethod · 0.80
foundGridOrEqItemMethod · 0.80
getGameMethod · 0.45
foundCandiesMethod · 0.45

Tested by

no test coverage detected