Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/candybox2/candybox2.github.io
/ setMaxHp
Method
setMaxHp
code/main/Player.ts:443–446 ·
view source on GitHub ↗
(hp: number)
Source
from the content-addressed store, hash-verified
441
}
442
443
public setMaxHp(hp: number): void{
444
super.setMaxHp(hp);
445
this.game.updateStatusBar();
446
}
447
448
// Private methods
449
private drawOnRenderArea(): void{
Callers
15
reCalcMaxHp
Method · 0.95
constructor
Method · 0.45
constructor
Method · 0.45
constructor
Method · 0.45
constructor
Method · 0.45
constructor
Method · 0.45
constructor
Method · 0.45
constructor
Method · 0.45
constructor
Method · 0.45
constructor
Method · 0.45
constructor
Method · 0.45
constructor
Method · 0.45
Calls
1
updateStatusBar
Method · 0.80
Tested by
no test coverage detected