(win: boolean)
| 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){ |
no test coverage detected