It is now possible to customize the repairing of units by UnitRepair=true and UnitReload=true buildings.
Units.RepairRate customizes the rate at which the units are repaired. This defaults to [General]->ReloadRate if UnitReload=true and if overridden per AircraftType (Ares feature) can tick at different time for each docked aircraft. Setting this overrides that behaviour. For UnitRepair=true buildings this defaults to [General]->URepairRate.
On UnitReload=true building setting this to negative value will fully disable the repair functionality.
Units.RepairStep how much Strength is restored per repair tick. Defaults to [General]->RepairStep.
Units.RepairPercent is a multiplier to cost of repairing (cost / (maximum health / repair step)). Defaults to [General]->RepairPercent. Note that the final cost is set to 1 if it is less than that.
Units.DisableRepairCost if set to true disables the repair cost entirely.
In rulesmd.ini:
[SOMEBUILDING] ; BuildingType
Units.RepairRate= ; floating point value, ingame minutes
Units.RepairStep= ; integer
Units.RepairPercent= ; floating point value, percents or absolute
Units.DisableRepairCost=false ; boolean
Other changes:
Fixed damaged aircraft not repairing on UnitReload=true docks unless they land on the dock first.
This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.
Unit repair customization
UnitRepair=true
andUnitReload=true
buildings.Units.RepairRate
customizes the rate at which the units are repaired. This defaults to[General]
->ReloadRate
ifUnitReload=true
and if overridden per AircraftType (Ares feature) can tick at different time for each docked aircraft. Setting this overrides that behaviour. ForUnitRepair=true
buildings this defaults to[General]
->URepairRate
.UnitReload=true
building setting this to negative value will fully disable the repair functionality.Units.RepairStep
how muchStrength
is restored per repair tick. Defaults to[General]
->RepairStep
.Units.RepairPercent
is a multiplier to cost of repairing (cost / (maximum health / repair step)). Defaults to[General]
->RepairPercent
. Note that the final cost is set to 1 if it is less than that.Units.DisableRepairCost
if set to true disables the repair cost entirely.In
rulesmd.ini
:Other changes:
UnitReload=true
docks unless they land on the dock first.