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

Method convertToFaction

src/Savegame/BattleUnit.cpp:2348–2351  ·  view source on GitHub ↗

* Converts unit to another faction (original faction is still stored). * @param f faction. */

Source from the content-addressed store, hash-verified

2346 * @param f faction.
2347 */
2348void BattleUnit::convertToFaction(UnitFaction f)
2349{
2350 _faction = f;
2351}
2352
2353/**
2354 * Set health to 0 and set status dead - used when getting zombified.

Callers 2

nextStageMethod · 0.80
psiAttackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected