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

Method setHp

code/main/Player.ts:438–441  ·  view source on GitHub ↗
(hp: number)

Source from the content-addressed store, hash-verified

436
437 // Public setters : they must be public, because sometimes we have to set these things (at loading for example)
438 public setHp(hp: number): void{
439 super.setHp(hp);
440 this.game.updateStatusBar();
441 }
442
443 public setMaxHp(hp: number): void{
444 super.setMaxHp(hp);

Callers 15

loadMethod · 0.95
magicHealthRegainMethod · 0.95
constructorMethod · 0.45
constructorMethod · 0.45
castPlayerPPotionMethod · 0.45
constructorMethod · 0.45
playerAttacksMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45

Calls 1

updateStatusBarMethod · 0.80

Tested by

no test coverage detected