MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / damageDone

Method damageDone

source/game/StarTileDamage.cpp:90–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90float TileDamageParameters::damageDone(TileDamage const& damage) const {
91 return m_damages.value(damage.type) * damage.amount;
92}
93
94float TileDamageParameters::recoveryPerSecond() const {
95 return m_damageRecoveryPerSecond;

Callers 2

damageMethod · 0.80
damageWouldDestroyFunction · 0.80

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected