diff --git a/OpenRA.Mods.Common/Traits/Burns.cs b/OpenRA.Mods.Common/Traits/Burns.cs index 83a45e5e14..f8c804683a 100644 --- a/OpenRA.Mods.Common/Traits/Burns.cs +++ b/OpenRA.Mods.Common/Traits/Burns.cs @@ -26,15 +26,15 @@ namespace OpenRA.Mods.Common.Traits class Burns : ITick, ISync { [Sync] int ticks; - BurnsInfo Info; + BurnsInfo info; public Burns(Actor self, BurnsInfo info) { - Info = info; + this.info = info; var anim = new Animation(self.World, "fire", () => 0); anim.IsDecoration = true; - anim.PlayRepeating(Info.Anim); + anim.PlayRepeating(info.Anim); self.Trait().Add("fire", anim); } @@ -42,8 +42,8 @@ namespace OpenRA.Mods.Common.Traits { if (--ticks <= 0) { - self.InflictDamage(self, Info.Damage, null); - ticks = Info.Interval; + self.InflictDamage(self, info.Damage, null); + ticks = info.Interval; } } } diff --git a/OpenRA.Mods.Common/Traits/Render/RenderSprites.cs b/OpenRA.Mods.Common/Traits/Render/RenderSprites.cs index 82a88194e7..1b4fc5e39b 100644 --- a/OpenRA.Mods.Common/Traits/Render/RenderSprites.cs +++ b/OpenRA.Mods.Common/Traits/Render/RenderSprites.cs @@ -107,8 +107,8 @@ namespace OpenRA.Mods.Common.Traits public static string GetImage(ActorInfo actor) { - var Info = actor.Traits.Get(); - return (Info.Image ?? actor.Name).ToLowerInvariant(); + var info = actor.Traits.Get(); + return (info.Image ?? actor.Name).ToLowerInvariant(); } public string GetImage(Actor self) diff --git a/OpenRA.Mods.Common/Traits/ShakeOnDeath.cs b/OpenRA.Mods.Common/Traits/ShakeOnDeath.cs index 63fb583008..fc18cc598b 100644 --- a/OpenRA.Mods.Common/Traits/ShakeOnDeath.cs +++ b/OpenRA.Mods.Common/Traits/ShakeOnDeath.cs @@ -20,16 +20,16 @@ namespace OpenRA.Mods.Common.Traits public class ShakeOnDeath : INotifyKilled { - readonly ShakeOnDeathInfo Info; + readonly ShakeOnDeathInfo info; public ShakeOnDeath(ShakeOnDeathInfo info) { - this.Info = info; + this.info = info; } public void Killed(Actor self, AttackInfo e) { - self.World.WorldActor.Trait().AddEffect(Info.Intensity, self.CenterPosition, 1); + self.World.WorldActor.Trait().AddEffect(info.Intensity, self.CenterPosition, 1); } } } diff --git a/OpenRA.Mods.Common/Traits/Sound/SoundOnDamageTransition.cs b/OpenRA.Mods.Common/Traits/Sound/SoundOnDamageTransition.cs index 74b33fd2af..d5f9fbd2f2 100644 --- a/OpenRA.Mods.Common/Traits/Sound/SoundOnDamageTransition.cs +++ b/OpenRA.Mods.Common/Traits/Sound/SoundOnDamageTransition.cs @@ -22,19 +22,19 @@ namespace OpenRA.Mods.Common.Traits public class SoundOnDamageTransition : INotifyDamageStateChanged { - readonly SoundOnDamageTransitionInfo Info; + readonly SoundOnDamageTransitionInfo info; public SoundOnDamageTransition(SoundOnDamageTransitionInfo info) { - Info = info; + this.info = info; } public void DamageStateChanged(Actor self, AttackInfo e) { if (e.DamageState == DamageState.Dead) - Sound.Play(Info.DestroyedSound, self.CenterPosition); + Sound.Play(info.DestroyedSound, self.CenterPosition); else if (e.DamageState >= DamageState.Heavy && e.PreviousDamageState < DamageState.Heavy) - Sound.Play(Info.DamagedSound, self.CenterPosition); + Sound.Play(info.DamagedSound, self.CenterPosition); } } }