diff --git a/OpenRA.Mods.Common/Traits/World/WeatherOverlay.cs b/OpenRA.Mods.Common/Traits/World/WeatherOverlay.cs index f141e4eac9..cdcfca9861 100644 --- a/OpenRA.Mods.Common/Traits/World/WeatherOverlay.cs +++ b/OpenRA.Mods.Common/Traits/World/WeatherOverlay.cs @@ -35,11 +35,11 @@ namespace OpenRA.Mods.Common.Traits [Desc("Hard or soft fading between the WindLevels.")] public readonly bool InstantWindChanges = false; - [Desc("Particles are drawn in squares when enabled, else with lines.")] + [Desc("Particles are drawn in squares when enabled, otherwise with lines.")] public readonly bool UseSquares = true; [Desc("Works only with squares enabled. Size min. and max. value in pixels.")] - public readonly int[] PaticleSize = { 1, 3 }; + public readonly int[] ParticleSize = { 1, 3 }; [Desc("Scatters falling direction on the x-axis. Scatter min. and max. value in px/tick.")] public readonly int[] ScatterDirection = { -1, 1 }; @@ -64,7 +64,7 @@ namespace OpenRA.Mods.Common.Traits Color.FromArgb(188, 188, 188) }; - [Desc("Works only with line enabled and can get used to fade out the tail of the line like a contrail.")] + [Desc("Works only with line enabled and can be used to fade out the tail of the line like a contrail.")] public readonly byte LineTailAlphaValue = 200; public object Create(ActorInitializer init) { return new WeatherOverlay(init.World, this); } @@ -130,7 +130,7 @@ namespace OpenRA.Mods.Common.Traits { PosX = Game.CosmeticRandom.Next(Game.Renderer.Resolution.Width), PosY = Game.CosmeticRandom.Next(rangeY), - Size = Game.CosmeticRandom.Next(info.PaticleSize[0], info.PaticleSize[1] + 1), + Size = Game.CosmeticRandom.Next(info.ParticleSize[0], info.ParticleSize[1] + 1), DirectionScatterX = info.ScatterDirection[0] + Game.CosmeticRandom.Next(info.ScatterDirection[1] - info.ScatterDirection[0]), Gravity = float2.Lerp(info.Gravity[0], info.Gravity[1], Game.CosmeticRandom.NextFloat()), SwingOffset = float2.Lerp(info.SwingOffset[0], info.SwingOffset[1], Game.CosmeticRandom.NextFloat()), diff --git a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs index e74f9d9631..ddb9f9cd0f 100644 --- a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs +++ b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs @@ -2371,6 +2371,12 @@ namespace OpenRA.Mods.Common.UtilityCommands TryUpdateColors(ref node.Value.Value); } + if (engineVersion < 20151107 && depth == 2) + { + if (node.Key == "PaticleSize") + node.Key = "ParticleSize"; + } + UpgradeActorRules(engineVersion, ref node.Value.Nodes, node, depth + 1); } } diff --git a/mods/cnc/maps/gdi06/map.yaml b/mods/cnc/maps/gdi06/map.yaml index 95219dac54..90a4159897 100644 --- a/mods/cnc/maps/gdi06/map.yaml +++ b/mods/cnc/maps/gdi06/map.yaml @@ -1056,7 +1056,7 @@ Rules: WindTick: 150, 550 InstantWindChanges: false UseSquares: false - PaticleSize: 0, 0 + ParticleSize: 0, 0 ScatterDirection: 0, 0 Gravity: 8.00, 12.00 SwingOffset: 0, 0 diff --git a/mods/ra/maps/fort-lonestar/map.yaml b/mods/ra/maps/fort-lonestar/map.yaml index b277ad5562..2038646cd4 100644 --- a/mods/ra/maps/fort-lonestar/map.yaml +++ b/mods/ra/maps/fort-lonestar/map.yaml @@ -508,7 +508,7 @@ Rules: WindTick: 150, 550 InstantWindChanges: false UseSquares: false - PaticleSize: 0, 0 + ParticleSize: 0, 0 ScatterDirection: 0, 0 Gravity: 8.00, 12.00 SwingOffset: 0, 0 diff --git a/mods/ra/maps/snow town/map.yaml b/mods/ra/maps/snow town/map.yaml index aadefba7f7..b8c71724c5 100644 --- a/mods/ra/maps/snow town/map.yaml +++ b/mods/ra/maps/snow town/map.yaml @@ -668,7 +668,7 @@ Rules: WindTick: 150, 550 InstantWindChanges: false UseSquares: true - PaticleSize: 1, 3 + ParticleSize: 1, 3 ScatterDirection: -1, 1 Gravity: 1.00, 2.00 SwingOffset: 1.0, 1.5