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

◆ stopMoonEvent()

static void Terraria.Main.stopMoonEvent ( )
inlinestatic

Definition at line 10107 of file Main.cs.

10108 {
10109 _ = NPC.waveNumber;
10110 _ = NPC.waveKills;
10111 if (pumpkinMoon)
10112 {
10113 pumpkinMoon = false;
10114 if (netMode != 1)
10115 {
10116 NPC.totalInvasionPoints = 0f;
10117 NPC.waveKills = 0f;
10118 NPC.waveNumber = 0;
10119 }
10120 }
10121 if (snowMoon)
10122 {
10123 snowMoon = false;
10124 if (netMode != 1)
10125 {
10126 NPC.totalInvasionPoints = 0f;
10127 NPC.waveKills = 0f;
10128 NPC.waveNumber = 0;
10129 }
10130 }
10131 }
static int netMode
Definition Main.cs:2095
static bool snowMoon
Definition Main.cs:1300
static bool pumpkinMoon
Definition Main.cs:1298

References Terraria.Main.netMode, Terraria.Main.pumpkinMoon, Terraria.Main.snowMoon, Terraria.NPC.waveKills, and Terraria.NPC.waveNumber.

Referenced by Terraria.Main.UpdateTime(), and Terraria.Main.UpdateTime_StartDay().