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

Method endQuest

code/main/Forest.ts:53–65  ·  view source on GitHub ↗
(win: boolean)

Source from the content-addressed store, hash-verified

51 }
52
53 public endQuest(win: boolean): void{
54 // We add some messages
55 if(win){
56 this.getGame().getQuestLog().addMessage(new QuestLogMessage("You made your way through the forest!"));
57 Saving.saveBool("mainMapDoneForest", true); // The desert is done
58 }
59 else{
60 this.getGame().getQuestLog().addMessage(new QuestLogMessage("You died in the forest. The tree's leaves should soon be covering your body."));
61 }
62
63 // We call the endQuest method of our mother class
64 super.endQuest(win);
65 }
66
67 public update(): void{
68 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