From ca1b8b07f8361cdff2ff53ae9f969e9ee744876d Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 19 Jan 2020 18:57:04 -0500 Subject: [PATCH] defeating plantera now gives a message about GSS --- Localization/CalamityLocalization.cs | 1 + NPCs/CalamityGlobalNPC.cs | 14 +++++++------- NPCs/CalamityGlobalNPCLoot.cs | 4 ++++ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Localization/CalamityLocalization.cs b/Localization/CalamityLocalization.cs index ec8bac23ca..dc71a2c8ec 100644 --- a/Localization/CalamityLocalization.cs +++ b/Localization/CalamityLocalization.cs @@ -99,6 +99,7 @@ namespace CalamityMod.Localization new [] { "SandSharkText", "Something stirs in the warm desert sands..." }, new [] { "SandSharkText2", "An enormous apex predator approaches..." }, + new [] { "SandSharkText3", "The desert sand shifts intensely!" }, new [] { "CryogenBossText", "Cryogen is derping out!" }, diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 22c088ef95..5ab5b65544 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -2703,13 +2703,13 @@ namespace CalamityMod.NPCs for (int num262 = 0; num262 < num261; num262 = num + 1) { int num263 = NPC.NewNPC((int)(npc.position.X + npc.width / 2), (int)(npc.position.Y + npc.height), 1, 0, 0f, 0f, 0f, 0f, 255); - NPC npc = Main.npc[num263]; - npc.SetDefaults(-5, -1f); - npc.velocity.X = npc.velocity.X * 2f; - npc.velocity.Y = npc.velocity.Y; - npc.velocity.X += Main.rand.Next(-20, 20) * 0.1f + num262 * npc.direction * 0.3f; - npc.velocity.Y -= Main.rand.Next(0, 10) * 0.1f + num262; - npc.ai[0] = -1000 * Main.rand.Next(3); + NPC npc2 = Main.npc[num263]; + npc2.SetDefaults(-5, -1f); + npc2.velocity.X = npc.velocity.X * 2f; + npc2.velocity.Y = npc.velocity.Y; + npc2.velocity.X += Main.rand.Next(-20, 20) * 0.1f + num262 * npc.direction * 0.3f; + npc2.velocity.Y -= Main.rand.Next(0, 10) * 0.1f + num262; + npc2.ai[0] = -1000 * Main.rand.Next(3); if (Main.netMode == NetmodeID.Server && num263 < 200) { diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 1bdb5f6f4e..0f4bfb427b 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -188,6 +188,8 @@ namespace CalamityMod.NPCs { string key2 = "Mods.CalamityMod.PlantOreText"; Color messageColor2 = Color.GreenYellow; + string key3 = "Mods.CalamityMod.SandSharkText3"; + Color messageColor3 = Color.Goldenrod; WorldGenerationMethods.SpawnOre(ModContent.TileType(), 12E-05, .5f, .7f); ; @@ -195,10 +197,12 @@ namespace CalamityMod.NPCs if (Main.netMode == NetmodeID.SinglePlayer) { Main.NewText(Language.GetTextValue(key2), messageColor2); + Main.NewText(Language.GetTextValue(key3), messageColor3); } else if (Main.netMode == NetmodeID.Server) { NetMessage.BroadcastChatMessage(NetworkText.FromKey(key2), messageColor2); + NetMessage.BroadcastChatMessage(NetworkText.FromKey(key3), messageColor3); } }