From 246f85413f755d61bb92f70eee5e892597ac4967 Mon Sep 17 00:00:00 2001 From: Christopher Grant Date: Fri, 3 Jul 2015 18:05:47 -0400 Subject: [PATCH] document ThrowsShrapnel --- OpenRA.Mods.Common/Traits/ThrowsShrapnel.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/ThrowsShrapnel.cs b/OpenRA.Mods.Common/Traits/ThrowsShrapnel.cs index bd01530ed0..f0ea965dd9 100644 --- a/OpenRA.Mods.Common/Traits/ThrowsShrapnel.cs +++ b/OpenRA.Mods.Common/Traits/ThrowsShrapnel.cs @@ -18,9 +18,14 @@ namespace OpenRA.Mods.Common.Traits public class ThrowsShrapnelInfo : ITraitInfo, IRulesetLoaded { [WeaponReference, FieldLoader.Require] - public string[] Weapons = { }; - public int[] Pieces = { 3, 10 }; - public WDist[] Range = { WDist.FromCells(2), WDist.FromCells(5) }; + [Desc("The weapons used for shrapnel.")] + public readonly string[] Weapons = { }; + + [Desc("The amount of pieces of shrapnel to expel. Two values indicate a range.")] + public readonly int[] Pieces = { 3, 10 }; + + [Desc("The minimum and maximum distances the shrapnel may travel.")] + public readonly WDist[] Range = { WDist.FromCells(2), WDist.FromCells(5) }; public WeaponInfo[] WeaponInfos { get; private set; }