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

Method willDie

code/main/Camel.ts:33–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32 // Public methods
33 public willDie(): void{
34 this.getQuest().getGame().getQuestLog().addMessage(new QuestLogMessage(this.getDeathMessage() + " (and found " + Algo.pluralFormat(this.getQuest().foundCandies(5 + Random.upTo(5)), " candy", " candies") + ")", this.getQuest().getCandiesFoundMessage()));
35 }
36}

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected