()
| 322 | } |
| 323 | |
| 324 | public resetPlayer(): void{ |
| 325 | // Save some important things |
| 326 | var hp: number = this.player.getHp(); |
| 327 | var maxHp: number = this.player.getMaxHp(); |
| 328 | |
| 329 | // Re-create the player |
| 330 | this.player = new Player(this); |
| 331 | |
| 332 | // Restore the important things saved |
| 333 | this.player.setHp(hp); |
| 334 | this.player.setMaxHp(maxHp); |
| 335 | } |
| 336 | |
| 337 | public resetSpecialHotkeys(): void{ |
| 338 | this.specialHotkeys = []; |
no test coverage detected