(win: boolean)
| 49 | } |
| 50 | |
| 51 | public endQuest(win: boolean): void{ |
| 52 | // We add some messages |
| 53 | if(win){ |
| 54 | this.getGame().getQuestLog().addMessage(new QuestLogMessage("You managed to beat the devil itself!")); |
| 55 | } |
| 56 | else{ |
| 57 | this.getGame().getQuestLog().addMessage(new QuestLogMessage("You died in Hell. Your soul will wander here for all eternity.")); |
| 58 | } |
| 59 | |
| 60 | // We call the endQuest method of our mother class |
| 61 | super.endQuest(win); |
| 62 | } |
| 63 | |
| 64 | public update(): void{ |
| 65 | if(this.getQuestEnded() == false){ |
no test coverage detected