Fix and enable SA1133, SA1134 style rules.

This commit is contained in:
Paul Chote
2019-05-23 18:43:21 +00:00
committed by abcdefg30
parent fbf9461890
commit 78a70be0d4
214 changed files with 1012 additions and 432 deletions

View File

@@ -20,13 +20,15 @@ namespace OpenRA.Mods.Common.Warheads
{
public class CreateEffectWarhead : Warhead
{
[SequenceReference("Image")]
[Desc("List of explosion sequences that can be used.")]
[SequenceReference("Image")] public readonly string[] Explosions = new string[0];
public readonly string[] Explosions = new string[0];
[Desc("Image containing explosion effect sequence.")]
public readonly string Image = "explosion";
[Desc("Palette to use for explosion effect."), PaletteReference("UsePlayerPalette")]
[PaletteReference("UsePlayerPalette")]
[Desc("Palette to use for explosion effect.")]
public readonly string ExplosionPalette = "effect";
[Desc("Remap explosion effect to player color, if art supports it.")]

View File

@@ -19,7 +19,8 @@ namespace OpenRA.Mods.Common.Warheads
{
public class FireClusterWarhead : Warhead, IRulesetLoaded<WeaponInfo>
{
[WeaponReference, FieldLoader.Require]
[WeaponReference]
[FieldLoader.Require]
[Desc("Has to be defined in weapons.yaml as well.")]
public readonly string Weapon = null;