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

Method convertToCorpse

src/Savegame/BattleItem.cpp:526–532  ·  view source on GitHub ↗

* Converts an unconscious body into a dead one. * @param rules the rules of the corpse item to convert this item into. */

Source from the content-addressed store, hash-verified

524 * @param rules the rules of the corpse item to convert this item into.
525 */
526void BattleItem::convertToCorpse(RuleItem *rules)
527{
528 if (_unit && _rules->getBattleType() == BT_CORPSE && rules->getBattleType() == BT_CORPSE)
529 {
530 _rules = rules;
531 }
532}
533
534}

Callers 1

convertUnitToCorpseMethod · 0.80

Calls 1

getBattleTypeMethod · 0.80

Tested by

no test coverage detected