Document RepairableBuilding fields.

This commit is contained in:
Paul Chote
2018-05-11 09:23:52 +00:00
committed by reaperrr
parent 7dd64445fc
commit 218914458f

View File

@@ -20,10 +20,20 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Building can be repaired by the repair button.")] [Desc("Building can be repaired by the repair button.")]
public class RepairableBuildingInfo : ConditionalTraitInfo, Requires<HealthInfo> public class RepairableBuildingInfo : ConditionalTraitInfo, Requires<HealthInfo>
{ {
[Desc("Cost to fully repair the actor as a percent of its value.")]
public readonly int RepairPercent = 20; public readonly int RepairPercent = 20;
[Desc("Number of ticks between each repair step.")]
public readonly int RepairInterval = 24; public readonly int RepairInterval = 24;
[Desc("The maximum amount of HP to repair each step.")]
public readonly int RepairStep = 7; 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 }; 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 bool CancelWhenDisabled = false;
public readonly string IndicatorImage = "allyrepair"; public readonly string IndicatorImage = "allyrepair";