MCPcopy Index your code
hub / github.com/battlecode/battlecode-2018 / worker_repair_health

Method worker_repair_health

battlecode-engine/src/unit.rs:657–660  ·  view source on GitHub ↗

The health restored when repairing a structure. InappropriateUnitType - the unit is not a worker.

(&self)

Source from the content-addressed store, hash-verified

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 ///

Callers 1

repairMethod · 0.80

Calls 1

ok_if_unit_typeMethod · 0.80

Tested by

no test coverage detected