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

◆ CheckForMoonEventsStartingTemporarySeasons()

static void Terraria.Main.CheckForMoonEventsStartingTemporarySeasons ( )
inlinestatic

Definition at line 10441 of file Main.cs.

10442 {
10443 //IL_0089: Unknown result type (might be due to invalid IL or missing references)
10444 //IL_00b4: Unknown result type (might be due to invalid IL or missing references)
10445 if (netMode != 1)
10446 {
10448 bool flag = forceXMasForToday;
10449 forceXMasForToday = false;
10450 forceHalloweenForToday = false;
10451 int waveNumber = NPC.waveNumber;
10452 _ = NPC.waveKills;
10453 if (pumpkinMoon && waveNumber >= 15)
10454 {
10456 }
10457 if (snowMoon && waveNumber >= 15)
10458 {
10459 forceXMasForToday = true;
10460 }
10461 Color color = default(Color);
10462 ((Color)(ref color))._002Ector(50, 255, 130);
10464 {
10465 WorldGen.BroadcastText(NetworkText.FromKey(forceHalloweenForToday ? "Misc.StartedVictoryHalloween" : "Misc.EndedVictoryHalloween"), color);
10466 }
10467 if (flag != forceXMasForToday)
10468 {
10469 WorldGen.BroadcastText(NetworkText.FromKey(forceXMasForToday ? "Misc.StartedVictoryXmas" : "Misc.EndedVictoryXmas"), color);
10470 }
10471 }
10472 }
static NetworkText FromKey(string key, params object[] substitutions)
Creates a NetworkText object from a localization key and optional substitutions. The receiving client...
Represents text that will be sent over the network in multiplayer and displayed to the receiving user...
static bool forceXMasForToday
Definition Main.cs:718
static bool forceHalloweenForToday
Definition Main.cs:720
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.WorldGen.BroadcastText(), Terraria.Graphics.Light.Color, Terraria.Main.forceHalloweenForToday, Terraria.Main.forceXMasForToday, Terraria.Localization.NetworkText.FromKey(), Terraria.Main.netMode, Terraria.Main.pumpkinMoon, Terraria.Main.snowMoon, Terraria.NPC.waveKills, and Terraria.NPC.waveNumber.

Referenced by Terraria.Main.UpdateTime_StartDay().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: