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

Method isWoundable

src/Savegame/BattleUnit.cpp:2221–2224  ·  view source on GitHub ↗

* Get whether the unit is affected by fatal wounds. * Normally only soldiers are affected by fatal wounds. * @return Is the unit affected by wounds? */

Source from the content-addressed store, hash-verified

2219 * @return Is the unit affected by wounds?
2220 */
2221bool BattleUnit::isWoundable() const
2222{
2223 return (_type=="SOLDIER" || (Options::alienBleeding && _faction != FACTION_PLAYER && _armor->getSize() == 1));
2224}
2225/**
2226 * Get whether the unit is affected by morale loss.
2227 * Normally only small units are affected by morale loss.

Callers 1

Calls 1

getSizeMethod · 0.45

Tested by

no test coverage detected