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

Method endQuest

code/main/Hell.ts:51–62  ·  view source on GitHub ↗
(win: boolean)

Source from the content-addressed store, hash-verified

49 }
50
51 public endQuest(win: boolean): void{
52 // We add some messages
53 if(win){
54 this.getGame().getQuestLog().addMessage(new QuestLogMessage("You managed to beat the devil itself!"));
55 }
56 else{
57 this.getGame().getQuestLog().addMessage(new QuestLogMessage("You died in Hell. Your soul will wander here for all eternity."));
58 }
59
60 // We call the endQuest method of our mother class
61 super.endQuest(win);
62 }
63
64 public update(): void{
65 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