MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getDamageModifier

Method getDamageModifier

src/Ruleset/Armor.cpp:212–215  ·  view source on GitHub ↗

* Gets the damage modifier for a certain damage type. * @param dt The damageType. * @return The damage modifier 0->1. */

Source from the content-addressed store, hash-verified

210 * @return The damage modifier 0->1.
211 */
212float Armor::getDamageModifier(ItemDamageType dt)
213{
214 return _damageModifier[(int)dt];
215}
216
217/** Gets the loftempSet.
218 * @return The loftempsSet.

Callers 5

prepareNewTurnMethod · 0.80
damageMethod · 0.80
prepareNewTurnMethod · 0.80
explodeMethod · 0.80
ArticleStateArmorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected