MCPcopy Create free account
hub / github.com/TurningWheel/Barony / getHP

Method getHP

src/entity.cpp:3422–3432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3420}
3421
3422int Entity::getHP()
3423{
3424 Stat* myStats = getStats();
3425
3426 if ( !myStats )
3427 {
3428 return 0;
3429 }
3430
3431 return myStats->HP;
3432}
3433
3434/*-------------------------------------------------------------------------------
3435

Callers 5

item_PotionHealingFunction · 0.80
item_PotionExtraHealingFunction · 0.80
actThrownFunction · 0.80
castSpellFunction · 0.80
actRadiusMagicFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected