(win: boolean)
| 35 | } |
| 36 | |
| 37 | public endQuest(win: boolean): void{ |
| 38 | // We add some messages |
| 39 | if(win){ |
| 40 | this.getGame().getQuestLog().addMessage(new QuestLogMessage("You managed to cross the bridge!")); |
| 41 | Saving.saveBool("mainMapDoneBridge", true); // The bridge is done |
| 42 | } |
| 43 | else{ |
| 44 | this.getGame().getQuestLog().addMessage(new QuestLogMessage("You didn't manage to cross the bridge.")); |
| 45 | } |
| 46 | |
| 47 | // We call the endQuest method of our mother class |
| 48 | super.endQuest(win); |
| 49 | } |
| 50 | |
| 51 | public update(): void{ |
| 52 | if(this.getQuestEnded() == false){ |
no test coverage detected