Start with randomized wind strength

This commit is contained in:
abcdefg30
2020-03-28 19:43:28 +01:00
committed by abcdefg30
parent 99009c37ce
commit 0c8fcedfdf

View File

@@ -147,6 +147,7 @@ namespace OpenRA.Mods.Common.Traits
this.world = world;
targetWindStrengthIndex = info.ChangingWindLevel ? world.LocalRandom.Next(info.WindLevels.Length) : 0;
windUpdateCountdown = world.LocalRandom.Next(info.WindTick[0], info.WindTick[1]);
windStrength = info.WindLevels[targetWindStrengthIndex];
}
void INotifyViewportZoomExtentsChanged.ViewportZoomExtentsChanged(float minZoom, float maxZoom)