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

Method endQuest

code/main/Developer.ts:57–68  ·  view source on GitHub ↗
(win: boolean)

Source from the content-addressed store, hash-verified

55 }
56
57 public endQuest(win: boolean): void{
58 // We add some messages
59 if(win){
60 this.getGame().getQuestLog().addMessage(new QuestLogMessage("You managed to beat me. Congratulations :)"));
61 }
62 else{
63 this.getGame().getQuestLog().addMessage(new QuestLogMessage("You died fighting the developer. Eh, he made this game after all!"));
64 }
65
66 // We call the endQuest method of our mother class
67 super.endQuest(win);
68 }
69
70 public update(): void{
71 if(this.getQuestEnded() == false){

Callers 1

updateMethod · 0.95

Calls 3

addMessageMethod · 0.80
getQuestLogMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected