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

◆ stopMoonEvent()

static void Terraria.Main.stopMoonEvent ( )
inlinestatic

Definition at line 10490 of file Main.cs.

10491 {
10492 _ = NPC.waveNumber;
10493 _ = NPC.waveKills;
10494 if (pumpkinMoon)
10495 {
10496 pumpkinMoon = false;
10497 if (netMode != 1)
10498 {
10499 NPC.totalInvasionPoints = 0f;
10500 NPC.waveKills = 0f;
10501 NPC.waveNumber = 0;
10502 }
10503 }
10504 if (snowMoon)
10505 {
10506 snowMoon = false;
10507 if (netMode != 1)
10508 {
10509 NPC.totalInvasionPoints = 0f;
10510 NPC.waveKills = 0f;
10511 NPC.waveNumber = 0;
10512 }
10513 }
10514 }
static int netMode
Denotes the current network mode: 0 for single player client, 1 for multiplayer client,...
Definition Main.cs:2182
static bool snowMoon
Definition Main.cs:1391
static bool pumpkinMoon
Definition Main.cs:1389

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().

+ Here is the caller graph for this function: