Example #1
0
            private static void ClearEvents()
            {
                if (Main.slimeRain)
                {
                    Main.StopSlimeRain(false);
                }

                if (Main.raining)
                {
                    Main.StopRain();
                }

                if (Main.windSpeedTarget >= Main._maxWind)
                {
                    Main.windSpeedTarget = Main._maxWind * 0.5f;
                }

                if (Main.windSpeedTarget <= -Main._maxWind)
                {
                    Main.windSpeedTarget = -(Main._maxWind * 0.5f);
                }
            }