Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ maxHealth
Method
maxHealth
source/game/StarNpc.cpp:526–528 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
524
}
525
526
float Npc::maxHealth() const {
527
return *m_statusController->resourceMax(
"health"
);
528
}
529
530
float Npc::health() const {
531
return m_statusController->resource(
"health"
);
Callers
6
writePlayerData
Method · 0.45
entityHealth
Method · 0.45
updateRunning
Method · 0.45
update
Method · 0.45
update
Method · 0.45
renderMonsterHealthBar
Method · 0.45
Calls
1
resourceMax
Method · 0.45
Tested by
no test coverage detected