* Halve this unit's armor values (for beginner mode) */
| 2381 | * Halve this unit's armor values (for beginner mode) |
| 2382 | */ |
| 2383 | void 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. |
no outgoing calls
no test coverage detected