MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / repair

Method repair

src/Savegame/Craft.cpp:715–722  ·  view source on GitHub ↗

* Repairs the craft's damage every hour * while it's docked in the base. */

Source from the content-addressed store, hash-verified

713 * while it's docked in the base.
714 */
715void Craft::repair()
716{
717 setDamage(_damage - _rules->getRepairRate());
718 if (_damage <= 0)
719 {
720 _status = "STR_REARMING";
721 }
722}
723
724/**
725 * Refuels the craft every 30 minutes

Callers 1

time1HourMethod · 0.80

Calls 1

getRepairRateMethod · 0.80

Tested by

no test coverage detected