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

◆ OnGameEventClearedForTheFirstTime()

static void Terraria.NPC.OnGameEventClearedForTheFirstTime ( int gameEventId)
inlinestatic

Definition at line 84447 of file NPC.cs.

84448 {
84449 switch (gameEventId)
84450 {
84451 default:
84452 LanternNight.NextNightIsLanternNight = true;
84453 break;
84454 case 10:
84455 LanternNight.NextNightIsLanternNight = true;
84457 break;
84458 case 16:
84459 case 17:
84460 case 18:
84461 LanternNight.NextNightIsLanternNight = true;
84462 if (Main.netMode != 1 && Main.hardMode && downedMechBoss1 && downedMechBoss2 && downedMechBoss3)
84463 {
84464 WorldGen.GeneratePlanteraBulbOnAllMechsDefeated();
84465 }
84466 break;
84467 case 4:
84468 case 21:
84469 case 22:
84470 break;
84471 }
84472 }
static bool downedMechBoss2
Denotes whether or not the Twins have been defeated at least once in the current world.
Definition NPC.cs:959
static bool downedMechBoss3
Denotes whether or not Skeletron Prime has been defeated at least once in the current world.
Definition NPC.cs:964
static bool downedMechBoss1
Denotes whether or not the Destroyer has been defeated at least once in the current world.
Definition NPC.cs:954

References Terraria.NPC.downedMechBoss1, Terraria.NPC.downedMechBoss2, Terraria.NPC.downedMechBoss3, Terraria.WorldGen.GeneratePlanteraBulbOnAllMechsDefeated(), Terraria.Main.hardMode, Terraria.Main.netMode, and Terraria.GameContent.Events.CreditsRollEvent.TryStartingCreditsRoll().

Referenced by Terraria.NPC.SetEventFlagCleared().

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