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

◆ MessageLunarApocalypse()

static void Terraria.WorldGen.MessageLunarApocalypse ( )
inlinestatic

Definition at line 80485 of file WorldGen.cs.

80486 {
80487 if (NPC.LunarApocalypseIsUp)
80488 {
80489 int num = 0;
80490 if (!NPC.TowerActiveSolar)
80491 {
80492 num++;
80493 }
80494 if (!NPC.TowerActiveVortex)
80495 {
80496 num++;
80497 }
80498 if (!NPC.TowerActiveNebula)
80499 {
80500 num++;
80501 }
80502 if (!NPC.TowerActiveStardust)
80503 {
80504 num++;
80505 }
80506 BroadcastText(NetworkText.FromKey(Lang.misc[43 + num].Key), 175, 75, 255);
80507 }
80508 }
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)

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().

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