TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ StopRain()

static void Terraria.Main.StopRain ( )
inlinestatic

Stops rain. Should be called on the server (netMode != client) - vanilla syncs it using M:Terraria.Main.SyncRain.
You can also call this on the client to update visuals immediately, assuming it was called serverside as well (Journey Mode rain slider does this).

Definition at line 81781 of file Main.cs.

81782 {
81783 rainTime = 0.0;
81784 raining = false;
81785 maxRaining = 0f;
81786 }
static bool raining
Definition Main.cs:1401
static double rainTime
Definition Main.cs:1399
static float maxRaining
Definition Main.cs:1395

References Terraria.Main.maxRaining, Terraria.Main.raining, and Terraria.Main.rainTime.

Referenced by Terraria.GameContent.Creative.CreativePowers.ModifyRainPower.UpdateInfoFromSliderValueCache(), and Terraria.Main.UpdateTime().

+ Here is the caller graph for this function: