Fix SequenceReference definitions.

This commit is contained in:
Paul Chote
2020-08-12 17:46:37 +01:00
committed by abcdefg30
parent b985edbc29
commit b8e60ca8ec
7 changed files with 9 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Chance (out of 100) the unit has to enter panic mode when attacking.")]
public readonly int AttackPanicChance = 20;
[SequenceReference(null, true)]
[SequenceReference(prefix: true)]
public readonly string PanicSequencePrefix = "panic-";
public override object Create(ActorInitializer init) { return new ScaredyCat(init.Self, this); }

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Muzzle offset modifier to apply while prone.")]
public readonly WVec ProneOffset = new WVec(500, 0, 0);
[SequenceReference(null, true)]
[SequenceReference(prefix: true)]
[Desc("Sequence prefix to apply while prone.")]
public readonly string ProneSequencePrefix = "prone-";