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

◆ StartImpendingDoom()

static void Terraria.WorldGen.StartImpendingDoom ( int countdownTime)
inlinestatic

Definition at line 80457 of file WorldGen.cs.

80458 {
80459 NPC.LunarApocalypseIsUp = false;
80460 NPC.MaxMoonLordCountdown = countdownTime;
80461 NPC.MoonLordCountdown = NPC.MaxMoonLordCountdown;
80462 NetMessage.SendData(103);
80463 BroadcastText(NetworkText.FromKey(Lang.misc[52].Key), 50, 255, 130);
80464 if (Main.netMode != 1)
80465 {
80467 }
80468 }
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 void BroadcastText(NetworkText text, Vector4 color)
static void GetRidOfCultists()

References Terraria.Localization.NetworkText.FromKey(), Terraria.NPC.MaxMoonLordCountdown, Terraria.Lang.misc, Terraria.Main.netMode, and Terraria.NetMessage.SendData().

Referenced by Terraria.MessageBuffer.GetData(), and Terraria.Player.ItemCheck_UseEventItems().

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