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

Method setMaxHp

code/main/QuestEntity.ts:605–612  ·  view source on GitHub ↗
(maxHp: number)

Source from the content-addressed store, hash-verified

603 }
604
605 public setMaxHp(maxHp: number): void{
606 // BUGS
607 if(Bugs.getQuestBugLevel() >= 4)
608 maxHp *= Random.between(1, 5);
609
610 this.maxHp = maxHp;
611 this.tryToUpdateHealthBar();
612 }
613
614 public setOutOfArea(outOfArea: boolean): void{
615 this.outOfArea = outOfArea;

Callers

nothing calls this directly

Calls 1

tryToUpdateHealthBarMethod · 0.95

Tested by

no test coverage detected