Ok if the unit can overcharge. InappropriateUnitType - the unit is not a healer. ResearchNotUnlocked - the required technology is not unlocked.
(&self)
| 872 | /// * InappropriateUnitType - the unit is not a healer. |
| 873 | /// * ResearchNotUnlocked - the required technology is not unlocked. |
| 874 | pub(crate) fn ok_if_overcharge_unlocked(&self) -> Result<(), GameError> { |
| 875 | self.ok_if_unit_type(Healer)?; |
| 876 | Ok(self.ok_if_ability_unlocked()?) |
| 877 | } |
| 878 | |
| 879 | /// Updates the unit as if it has overcharged. |
| 880 | pub(crate) fn overcharge(&mut self) { |
no test coverage detected