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

Method endQuest

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

Source from the content-addressed store, hash-verified

43 }
44
45 public endQuest(win: boolean): void{
46 // We add some messages
47 if(win){
48 this.getGame().getQuestLog().addMessage(new QuestLogMessage("You managed to beat yourself!"));
49 Saving.saveBool("mainMapDoneDesert", true); // The desert is done
50 }
51 else{
52 this.getGame().getQuestLog().addMessage(new QuestLogMessage("You died trying to beat yourself."));
53 }
54
55 // We call the endQuest method of our mother class
56 super.endQuest(win);
57 }
58
59 public update(): void{
60 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