Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow customizing dock unit repair #1399

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Starkku
Copy link
Contributor

@Starkku Starkku commented Sep 30, 2024

Unit repair customization

  • 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.

Copy link

Nightly build for this pull request:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant