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

◆ NewLightning()

static void Terraria.Main.NewLightning ( )
inlinestatic

Definition at line 55685 of file Main.cs.

55686 {
55688 {
55689 if (rand.Next(3) == 0)
55690 {
55691 thunderDelay = rand.Next(1, 31);
55692 }
55693 else if (rand.Next(2) == 0)
55694 {
55695 thunderDelay = rand.Next(31, 121);
55696 }
55697 else
55698 {
55699 thunderDelay = rand.Next(11, 61);
55700 }
55702 lightningDecay = rand.NextFloat() * 0.05f + 0.008f;
55703 lightningSpeed = rand.NextFloat() * 0.05f + 0.05f;
55704 }
55705 }
static float lightningDecay
Definition Main.cs:2557
static int thunderDistance
Definition Main.cs:2563
static int thunderDelay
Definition Main.cs:2561
static UnifiedRandom rand
Definition Main.cs:1387
static float lightningSpeed
Definition Main.cs:2559
static float shimmerAlpha
Definition Main.cs:1008
static bool DisableIntenseVisualEffects
Definition Main.cs:694

References Terraria.Main.DisableIntenseVisualEffects, Terraria.Main.lightningDecay, Terraria.Main.lightningSpeed, Terraria.Main.rand, Terraria.Main.shimmerAlpha, Terraria.Main.thunderDelay, and Terraria.Main.thunderDistance.

Referenced by Terraria.Main.UpdateWeather().