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

Method halveArmor

src/Savegame/BattleUnit.cpp:2383–2390  ·  view source on GitHub ↗

* Halve this unit's armor values (for beginner mode) */

Source from the content-addressed store, hash-verified

2381 * Halve this unit's armor values (for beginner mode)
2382 */
2383void BattleUnit::halveArmor()
2384{
2385 _currentArmor[0] /= 2;
2386 _currentArmor[1] /= 2;
2387 _currentArmor[2] /= 2;
2388 _currentArmor[3] /= 2;
2389 _currentArmor[4] /= 2;
2390}
2391
2392/**
2393 * Get the faction the unit was killed by.

Callers 2

addAlienMethod · 0.80
convertUnitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected