From ce73faaa1f25071fc48086d73f4577bb3d55066e Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sun, 5 Jun 2016 21:21:50 +0200 Subject: [PATCH] Change WithDeathAnimation to look up string rather than integers For DeathType sequence mapping. --- OpenRA.Mods.Common/Traits/Render/WithDeathAnimation.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Render/WithDeathAnimation.cs b/OpenRA.Mods.Common/Traits/Render/WithDeathAnimation.cs index 7633d97fd9..dc434caad0 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithDeathAnimation.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithDeathAnimation.cs @@ -44,7 +44,7 @@ namespace OpenRA.Mods.Common.Traits.Render [FieldLoader.LoadUsing("LoadDeathTypes")] [Desc("Death animation to use for each damage type (defined on the warheads).", "Is only used if UseDeathTypeSuffix is `True`.")] - public readonly Dictionary DeathTypes = new Dictionary(); + public readonly Dictionary DeathTypes = new Dictionary(); [Desc("Sequence to use when the actor is killed by some non-standard means (e.g. suicide).")] [SequenceReference] public readonly string FallbackSequence = null; @@ -54,8 +54,8 @@ namespace OpenRA.Mods.Common.Traits.Render var md = yaml.ToDictionary(); return md.ContainsKey("DeathTypes") - ? md["DeathTypes"].ToDictionary(my => FieldLoader.GetValue("(value)", my.Value)) - : new Dictionary(); + ? md["DeathTypes"].ToDictionary(my => FieldLoader.GetValue("(value)", my.Value)) + : new Dictionary(); } public object Create(ActorInitializer init) { return new WithDeathAnimation(init.Self, this); }