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

Method getFatalWound

src/Savegame/BattleUnit.cpp:2040–2045  ·  view source on GitHub ↗

* Get the amount of fatal wound for a body part * @param part The body part (in the range 0-5) * @return The amount of fatal wound of a body part */

Source from the content-addressed store, hash-verified

2038 * @return The amount of fatal wound of a body part
2039 */
2040int BattleUnit::getFatalWound(int part) const
2041{
2042 if (part < 0 || part > 5)
2043 return 0;
2044 return _fatalWounds[part];
2045}
2046
2047/**
2048 * Heal a fatal wound of the soldier

Callers 2

drawMethod · 0.80
updateSelectedPartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected