MCPcopy 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
526float Npc::maxHealth() const {
527 return *m_statusController->resourceMax("health");
528}
529
530float Npc::health() const {
531 return m_statusController->resource("health");

Callers 6

writePlayerDataMethod · 0.45
entityHealthMethod · 0.45
updateRunningMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45

Calls 1

resourceMaxMethod · 0.45

Tested by

no test coverage detected