Document fields in DamagedWithoutFoundationInfo

This commit is contained in:
abcdefg30
2015-12-20 16:35:43 +01:00
parent c0206b18b0
commit fa260ddee1

View File

@@ -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<HealthInfo>
{
[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<string> SafeTerrain = new HashSet<string> { "Concrete" };
[Desc("The percentage of health the actor should keep.")]
public readonly int DamageThreshold = 50;
public WeaponInfo WeaponInfo { get; private set; }