The health restored when building a structure. InappropriateUnitType - the unit is not a worker.
(&self)
| 647 | /// |
| 648 | /// * InappropriateUnitType - the unit is not a worker. |
| 649 | pub fn worker_build_health(&self) -> Result<u32, GameError> { |
| 650 | self.ok_if_unit_type(Worker)?; |
| 651 | Ok(self.build_health) |
| 652 | } |
| 653 | |
| 654 | /// The health restored when repairing a structure. |
| 655 | /// |