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

◆ DoUpdate_AnimateTileGlows()

static void Terraria.Main.DoUpdate_AnimateTileGlows ( )
inlinestaticprivate

Definition at line 17644 of file Main.cs.

17645 {
17646 demonTorch += (float)demonTorchDir * 0.01f;
17647 if (demonTorch > 1f)
17648 {
17649 demonTorch = 1f;
17650 demonTorchDir = -1;
17651 }
17652 if (demonTorch < 0f)
17653 {
17654 demonTorch = 0f;
17655 demonTorchDir = 1;
17656 }
17657 martianLight += (float)martianLightDir * 0.015f;
17658 if (martianLight > 1f)
17659 {
17660 martianLight = 1f;
17661 martianLightDir = -1;
17662 }
17663 if (martianLight < 0f)
17664 {
17665 martianLight = 0f;
17666 martianLightDir = 1;
17667 }
17668 }
static int demonTorchDir
Definition Main.cs:1429
static float demonTorch
Definition Main.cs:1427
static int martianLightDir
Definition Main.cs:1433
static float martianLight
Definition Main.cs:1431

References Terraria.Main.demonTorch, Terraria.Main.demonTorchDir, Terraria.Main.martianLight, and Terraria.Main.martianLightDir.

Referenced by Terraria.Main.DoUpdate().

+ Here is the caller graph for this function: