()
| 281 | } |
| 282 | |
| 283 | public magicHealthRegain(): void{ |
| 284 | // If we're not questing |
| 285 | if(this.game.getWeAreQuesting() == false){ |
| 286 | var hpBonus: number = Math.ceil((1-Math.exp(-this.game.getCandiesEaten().getCurrent()/400000000))*500); |
| 287 | if(hpBonus < 1) hpBonus = 1; // We need to gain at least one hp each second |
| 288 | this.setHp(this.getHp() + hpBonus); |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | public move(pos: Pos, force: boolean = false): boolean{ |
| 293 | // Position |
no test coverage detected