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

Method endQuest

code/main/Desert.ts:75–87  ·  view source on GitHub ↗
(win: boolean)

Source from the content-addressed store, hash-verified

73 }
74
75 public endQuest(win: boolean): void{
76 // We add some messages
77 if(win){
78 this.getGame().getQuestLog().addMessage(new QuestLogMessage("You made your way through the desert!"));
79 Saving.saveBool("mainMapDoneDesert", true); // The desert is done
80 }
81 else{
82 this.getGame().getQuestLog().addMessage(new QuestLogMessage("You died in the desert. Alone."));
83 }
84
85 // We call the endQuest method of our mother class
86 super.endQuest(win);
87 }
88
89 public update(): void{
90 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