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