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

◆ DoDeathEvents_CelebrateBossDeath()

void Terraria.NPC.DoDeathEvents_CelebrateBossDeath ( )
inlineprivate

Definition at line 71268 of file NPC.cs.

71269 {
71270 if (type == 125 || type == 126)
71271 {
71272 if (Main.netMode == 0)
71273 {
71274 Main.NewText(Language.GetTextValue("Announcement.HasBeenDefeated_Plural", Language.GetTextValue("Enemies.TheTwins")), 175, 75);
71275 }
71276 else if (Main.netMode == 2)
71277 {
71278 ChatHelper.BroadcastChatMessage(NetworkText.FromKey("Announcement.HasBeenDefeated_Plural", NetworkText.FromKey("Enemies.TheTwins")), new Color(175, 75, 255));
71279 }
71280 }
71281 else if (type == 398)
71282 {
71283 if (Main.netMode == 0)
71284 {
71285 Main.NewText(Language.GetTextValue("Announcement.HasBeenDefeated_Single", Language.GetTextValue("Enemies.MoonLord")), 175, 75);
71286 }
71287 else if (Main.netMode == 2)
71288 {
71289 ChatHelper.BroadcastChatMessage(NetworkText.FromKey("Announcement.HasBeenDefeated_Single", NetworkText.FromKey("Enemies.MoonLord")), new Color(175, 75, 255));
71290 }
71291 }
71292 else if (Main.netMode == 0)
71293 {
71294 Main.NewText(Language.GetTextValue("Announcement.HasBeenDefeated_Single", TypeName), 175, 75);
71295 }
71296 else if (Main.netMode == 2)
71297 {
71298 ChatHelper.BroadcastChatMessage(NetworkText.FromKey("Announcement.HasBeenDefeated_Single", GetTypeNetName()), new Color(175, 75, 255));
71299 }
71300 }
static void BroadcastChatMessage(NetworkText text, Color color, int excludedPlayer=-1)
Definition ChatHelper.cs:46
static string GetTextValue(string key)
Definition Language.cs:15
static NetworkText FromKey(string key, params object[] substitutions)
NetworkText GetTypeNetName()
Definition NPC.cs:1468
string TypeName
Definition NPC.cs:732
int type
Definition NPC.cs:445

References Terraria.Chat.ChatHelper.BroadcastChatMessage(), Microsoft.Xna.Framework.Graphics.Color, Terraria.Localization.NetworkText.FromKey(), Terraria.Localization.Language.GetTextValue(), Terraria.NPC.GetTypeNetName(), Terraria.Main.netMode, Terraria.Main.NewText(), Terraria.NPC.type, and Terraria.NPC.TypeName.

Referenced by Terraria.NPC.DoDeathEvents().