The health restored when repairing a structure. InappropriateUnitType - the unit is not a worker.
(&self)
| 655 | /// |
| 656 | /// * InappropriateUnitType - the unit is not a worker. |
| 657 | pub fn worker_repair_health(&self) -> Result<u32, GameError> { |
| 658 | self.ok_if_unit_type(Worker)?; |
| 659 | Ok(self.repair_health) |
| 660 | } |
| 661 | |
| 662 | /// The maximum amount of karbonite harvested from a deposit in one turn. |
| 663 | /// |