Method
beginBerserk
(berserkDuration: number)
Source from the content-addressed store, hash-verified
| 125 | } |
| 126 | |
| 127 | public beginBerserk(berserkDuration: number): boolean{ |
| 128 | if(this.berserk == false){ |
| 129 | this.berserk = true; |
| 130 | this.berserkDuration = berserkDuration; |
| 131 | this.setHp(Math.ceil(this.getHp()/2)); |
| 132 | return true; |
| 133 | } |
| 134 | |
| 135 | return false; |
| 136 | } |
| 137 | |
| 138 | public beginTurtle(turtleDuration: number): boolean{ |
| 139 | if(this.turtle == false){ |
Callers
nothing calls this directly
Tested by
no test coverage detected