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

Method willDie

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

Source from the content-addressed store, hash-verified

33
34 // willDie()
35 public willDie(): void{
36 this.getQuest().getGame().getQuestLog().addMessage(new QuestLogMessage("An egg was destroyed."));
37 this.callbackWhenDying.fire();
38 }
39}

Callers 1

updateEntitiesMethod · 0.45

Calls 5

addMessageMethod · 0.80
getQuestLogMethod · 0.80
getQuestMethod · 0.80
fireMethod · 0.65
getGameMethod · 0.45

Tested by

no test coverage detected