--------------------------------------------- ARMOR ------------------------------------------------------
| 93 | } |
| 94 | //--------------------------------------------- ARMOR ------------------------------------------------------ |
| 95 | int PlayerInterface::armor(UnitType unit) const |
| 96 | { |
| 97 | int armor = unit.armor(); |
| 98 | armor += getUpgradeLevel(unit.armorUpgrade()); |
| 99 | if ( unit == UnitTypes::Zerg_Ultralisk && getUpgradeLevel(UpgradeTypes::Chitinous_Plating) > 0 ) |
| 100 | armor += 2; |
| 101 | else if ( unit == UnitTypes::Hero_Torrasque ) |
| 102 | armor += 2; |
| 103 | return armor; |
| 104 | } |
| 105 | //-------------------------------------------- DAMAGE ------------------------------------------------------ |
| 106 | int PlayerInterface::damage(WeaponType wpn) const |
| 107 | { |
no test coverage detected