* Repairs the craft's damage every hour * while it's docked in the base. */
| 713 | * while it's docked in the base. |
| 714 | */ |
| 715 | void 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 |
no test coverage detected