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

◆ checkHalloween()

static void Terraria.Main.checkHalloween ( )
inlinestatic

Definition at line 12188 of file Main.cs.

12189 {
12191 int day = now.Day;
12192 int month = now.Month;
12193 if (day >= 10 && month == 10)
12194 {
12195 halloween = true;
12196 }
12197 else if (day <= 1 && month == 11)
12198 {
12199 halloween = true;
12200 }
12201 else
12202 {
12203 halloween = false;
12204 }
12206 {
12207 halloween = true;
12208 }
12209 }
static bool halloween
Definition Main.cs:688
static bool forceHalloweenForToday
Definition Main.cs:692
static DateTime Now
Definition DateTime.cs:103

References Terraria.Main.forceHalloweenForToday, Terraria.Main.halloween, and System.DateTime.Now.

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