MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / beginBerserk

Method beginBerserk

code/main/QuestEntity.ts:127–136  ·  view source on GitHub ↗
(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

Calls 2

setHpMethod · 0.95
getHpMethod · 0.95

Tested by

no test coverage detected