Allow customizing dock unit repair #1399
Open
+153
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.