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

◆ MessageLunarApocalypse()

static void Terraria.WorldGen.MessageLunarApocalypse ( )
inlinestatic

Definition at line 76832 of file WorldGen.cs.

76833 {
76834 if (NPC.LunarApocalypseIsUp)
76835 {
76836 int num = 0;
76837 if (!NPC.TowerActiveSolar)
76838 {
76839 num++;
76840 }
76841 if (!NPC.TowerActiveVortex)
76842 {
76843 num++;
76844 }
76845 if (!NPC.TowerActiveNebula)
76846 {
76847 num++;
76848 }
76849 if (!NPC.TowerActiveStardust)
76850 {
76851 num++;
76852 }
76853 BroadcastText(NetworkText.FromKey(Lang.misc[43 + num].Key), 175, 75, 255);
76854 }
76855 }
static NetworkText FromKey(string key, params object[] substitutions)
static void BroadcastText(NetworkText text, Vector4 color)

References Terraria.Localization.NetworkText.FromKey(), Terraria.NPC.LunarApocalypseIsUp, Terraria.Lang.misc, Terraria.NPC.TowerActiveNebula, Terraria.NPC.TowerActiveSolar, Terraria.NPC.TowerActiveStardust, and Terraria.NPC.TowerActiveVortex.

Referenced by Terraria.NPC.DoDeathEvents().