From 218914458f8474d56e47e582dc909a3e1eccffcb Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 11 May 2018 09:23:52 +0000 Subject: [PATCH] Document RepairableBuilding fields. --- .../Traits/Buildings/RepairableBuilding.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/OpenRA.Mods.Common/Traits/Buildings/RepairableBuilding.cs b/OpenRA.Mods.Common/Traits/Buildings/RepairableBuilding.cs index fcd0931332..3dc10c9142 100644 --- a/OpenRA.Mods.Common/Traits/Buildings/RepairableBuilding.cs +++ b/OpenRA.Mods.Common/Traits/Buildings/RepairableBuilding.cs @@ -20,10 +20,20 @@ namespace OpenRA.Mods.Common.Traits [Desc("Building can be repaired by the repair button.")] public class RepairableBuildingInfo : ConditionalTraitInfo, Requires { + [Desc("Cost to fully repair the actor as a percent of its value.")] public readonly int RepairPercent = 20; + + [Desc("Number of ticks between each repair step.")] public readonly int RepairInterval = 24; + + [Desc("The maximum amount of HP to repair each step.")] public readonly int RepairStep = 7; + + [Desc("The percentage repair bonus applied with increasing numbers of repairers.")] public readonly int[] RepairBonuses = { 100, 150, 175, 200, 220, 240, 260, 280, 300 }; + + // TODO: This should be replaced with a pause condition + [Desc("Cancel the repair state when the trait is disabled.")] public readonly bool CancelWhenDisabled = false; public readonly string IndicatorImage = "allyrepair";