()
| 83 | } |
| 84 | |
| 85 | private handleDropADemon(): void{ |
| 86 | // If it's time to add one |
| 87 | if(this.dropADemonTimer < 0){ |
| 88 | // Drop a demon and reset the timer |
| 89 | this.dropADemon(); |
| 90 | this.resetDropADemonTimer(); |
| 91 | } |
| 92 | // Else |
| 93 | else{ |
| 94 | // Decrese the timer |
| 95 | this.dropADemonTimer -= 1; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | private handleMovementTowardsPlayer(): void{ |
| 100 | // If we try to move |
no test coverage detected