From 51e470e64ce11c45f2fab116ca1ae505185bbe0c Mon Sep 17 00:00:00 2001 From: Taryn Hill Date: Tue, 10 Mar 2015 00:11:59 -0500 Subject: [PATCH] Add some documentation to support powers. --- OpenRA.Mods.Common/Traits/SupportPowers/SupportPower.cs | 3 +++ OpenRA.Mods.RA/Traits/SupportPowers/ChronoshiftPower.cs | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/SupportPowers/SupportPower.cs b/OpenRA.Mods.Common/Traits/SupportPowers/SupportPower.cs index 99ef3918cf..6edb273fdc 100644 --- a/OpenRA.Mods.Common/Traits/SupportPowers/SupportPower.cs +++ b/OpenRA.Mods.Common/Traits/SupportPowers/SupportPower.cs @@ -14,6 +14,7 @@ namespace OpenRA.Mods.Common.Traits { public abstract class SupportPowerInfo : ITraitInfo { + [Desc("Measured in seconds.")] public readonly int ChargeTime = 0; public readonly string Icon = null; public readonly string Description = ""; @@ -42,6 +43,8 @@ namespace OpenRA.Mods.Common.Traits public readonly string BeaconPosterPalette = "chrome"; public readonly bool DisplayRadarPing = false; + + [Desc("Measured in ticks.")] public readonly int RadarPingDuration = 5 * 25; public readonly string OrderName; diff --git a/OpenRA.Mods.RA/Traits/SupportPowers/ChronoshiftPower.cs b/OpenRA.Mods.RA/Traits/SupportPowers/ChronoshiftPower.cs index ea433fbbdc..c6438fe380 100644 --- a/OpenRA.Mods.RA/Traits/SupportPowers/ChronoshiftPower.cs +++ b/OpenRA.Mods.RA/Traits/SupportPowers/ChronoshiftPower.cs @@ -19,10 +19,12 @@ namespace OpenRA.Mods.RA.Traits { class ChronoshiftPowerInfo : SupportPowerInfo { - [Desc("Cells")] + [Desc("Target actor selection radius in cells.")] public readonly int Range = 1; - [Desc("Seconds")] + + [Desc("Seconds until returning after teleportation.")] public readonly int Duration = 30; + public readonly bool KillCargo = true; public override object Create(ActorInitializer init) { return new ChronoshiftPower(init.Self, this); }