From fa260ddee1ae0db527a49f7a5a2cb8874ae22298 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sun, 20 Dec 2015 16:35:43 +0100 Subject: [PATCH] Document fields in DamagedWithoutFoundationInfo --- .../Traits/Buildings/DamagedWithoutFoundation.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.D2k/Traits/Buildings/DamagedWithoutFoundation.cs b/OpenRA.Mods.D2k/Traits/Buildings/DamagedWithoutFoundation.cs index 5035746d5e..039f9048bb 100644 --- a/OpenRA.Mods.D2k/Traits/Buildings/DamagedWithoutFoundation.cs +++ b/OpenRA.Mods.D2k/Traits/Buildings/DamagedWithoutFoundation.cs @@ -19,9 +19,13 @@ namespace OpenRA.Mods.D2k.Traits [Desc("Reduces health points over time when the actor is placed on unsafe terrain.")] class DamagedWithoutFoundationInfo : ITraitInfo, IRulesetLoaded, Requires { - [WeaponReference] + [WeaponReference, Desc("The weapon to use for causing damage.")] public readonly string Weapon = "weathering"; + + [Desc("Terrain types on which no damage is caused.")] public readonly HashSet SafeTerrain = new HashSet { "Concrete" }; + + [Desc("The percentage of health the actor should keep.")] public readonly int DamageThreshold = 50; public WeaponInfo WeaponInfo { get; private set; }