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

◆ checkHalloween()

static void Terraria.Main.checkHalloween ( )
inlinestatic

Definition at line 12677 of file Main.cs.

12678 {
12679 DateTime now = DateTime.Now;
12680 int day = now.Day;
12681 int month = now.Month;
12682 if (day >= 10 && month == 10)
12683 {
12684 halloween = true;
12685 }
12686 else if (day <= 1 && month == 11)
12687 {
12688 halloween = true;
12689 }
12690 else
12691 {
12692 halloween = false;
12693 }
12695 {
12696 halloween = true;
12697 }
12698 }
static bool halloween
Definition Main.cs:716
static bool forceHalloweenForToday
Definition Main.cs:720

References Terraria.Main.forceHalloweenForToday, and Terraria.Main.halloween.

Referenced by Terraria.WorldGen.AddGenPasses(), Terraria.WorldGen.clearWorld(), Terraria.MessageBuffer.GetData(), Terraria.WorldGen.Hooks.Initialize(), Terraria.IO.WorldFile.LoadWorld(), and Terraria.Main.UpdateTime_StartDay().

+ Here is the caller graph for this function: