From 7ee2d0605a6d521dfa0525987f4fe587889f5ddd Mon Sep 17 00:00:00 2001 From: GinYuH Date: Sat, 28 Jan 2023 23:49:11 -0800 Subject: [PATCH] Sulflounder and Toxicatfish --- .../Flounder.png => Sulflounder/Sulflounder.png} | Bin .../Flounder2.png => Sulflounder/Sulflounder2.png} | Bin .../Catfish.png => Toxicatfish/Toxicatfish.png} | Bin .../Catfish2.png => Toxicatfish/Toxicatfish2.png} | Bin .../{FlounderBanner.cs => SulflounderBanner.cs} | 7 ++++--- .../{FlounderBanner.png => SulflounderBanner.png} | Bin .../{CatfishBanner.cs => ToxicatfishBanner.cs} | 7 ++++--- .../{CatfishBanner.png => ToxicatfishBanner.png} | Bin NPCs/CalamityAI.cs | 4 ++-- NPCs/SulphurousSea/{Flounder.cs => Sulflounder.cs} | 10 +++++----- .../SulphurousSea/{Flounder.png => Sulflounder.png} | Bin NPCs/SulphurousSea/{Catfish.cs => Toxicatfish.cs} | 10 +++++----- NPCs/SulphurousSea/{Catfish.png => Toxicatfish.png} | Bin Utilities/MiscUtils.cs | 8 ++++---- Utilities/NPCDebuffs.cs | 4 ++-- 15 files changed, 26 insertions(+), 24 deletions(-) rename Gores/{Flounder/Flounder.png => Sulflounder/Sulflounder.png} (100%) rename Gores/{Flounder/Flounder2.png => Sulflounder/Sulflounder2.png} (100%) rename Gores/{Catfish/Catfish.png => Toxicatfish/Toxicatfish.png} (100%) rename Gores/{Catfish/Catfish2.png => Toxicatfish/Toxicatfish2.png} (100%) rename Items/Placeables/Banners/{FlounderBanner.cs => SulflounderBanner.cs} (87%) rename Items/Placeables/Banners/{FlounderBanner.png => SulflounderBanner.png} (100%) rename Items/Placeables/Banners/{CatfishBanner.cs => ToxicatfishBanner.cs} (87%) rename Items/Placeables/Banners/{CatfishBanner.png => ToxicatfishBanner.png} (100%) rename NPCs/SulphurousSea/{Flounder.cs => Sulflounder.cs} (95%) rename NPCs/SulphurousSea/{Flounder.png => Sulflounder.png} (100%) rename NPCs/SulphurousSea/{Catfish.cs => Toxicatfish.cs} (94%) rename NPCs/SulphurousSea/{Catfish.png => Toxicatfish.png} (100%) diff --git a/Gores/Flounder/Flounder.png b/Gores/Sulflounder/Sulflounder.png similarity index 100% rename from Gores/Flounder/Flounder.png rename to Gores/Sulflounder/Sulflounder.png diff --git a/Gores/Flounder/Flounder2.png b/Gores/Sulflounder/Sulflounder2.png similarity index 100% rename from Gores/Flounder/Flounder2.png rename to Gores/Sulflounder/Sulflounder2.png diff --git a/Gores/Catfish/Catfish.png b/Gores/Toxicatfish/Toxicatfish.png similarity index 100% rename from Gores/Catfish/Catfish.png rename to Gores/Toxicatfish/Toxicatfish.png diff --git a/Gores/Catfish/Catfish2.png b/Gores/Toxicatfish/Toxicatfish2.png similarity index 100% rename from Gores/Catfish/Catfish2.png rename to Gores/Toxicatfish/Toxicatfish2.png diff --git a/Items/Placeables/Banners/FlounderBanner.cs b/Items/Placeables/Banners/SulflounderBanner.cs similarity index 87% rename from Items/Placeables/Banners/FlounderBanner.cs rename to Items/Placeables/Banners/SulflounderBanner.cs index c8f9ec5261..23ba22740b 100644 --- a/Items/Placeables/Banners/FlounderBanner.cs +++ b/Items/Placeables/Banners/SulflounderBanner.cs @@ -1,16 +1,17 @@ -using CalamityMod.Tiles; +using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; using Terraria.ID; namespace CalamityMod.Items.Placeables.Banners { - public class FlounderBanner : ModItem + [LegacyName("FlounderBanner")] + public class SulflounderBanner : ModItem { public override void SetStaticDefaults() { SacrificeTotal = 1; - Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Flounder"); + Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Sulflounder"); } public override void SetDefaults() diff --git a/Items/Placeables/Banners/FlounderBanner.png b/Items/Placeables/Banners/SulflounderBanner.png similarity index 100% rename from Items/Placeables/Banners/FlounderBanner.png rename to Items/Placeables/Banners/SulflounderBanner.png diff --git a/Items/Placeables/Banners/CatfishBanner.cs b/Items/Placeables/Banners/ToxicatfishBanner.cs similarity index 87% rename from Items/Placeables/Banners/CatfishBanner.cs rename to Items/Placeables/Banners/ToxicatfishBanner.cs index 4732da74cd..8e066907e3 100644 --- a/Items/Placeables/Banners/CatfishBanner.cs +++ b/Items/Placeables/Banners/ToxicatfishBanner.cs @@ -1,16 +1,17 @@ -using CalamityMod.Tiles; +using CalamityMod.Tiles; using Terraria; using Terraria.ModLoader; using Terraria.ID; namespace CalamityMod.Items.Placeables.Banners { - public class CatfishBanner : ModItem + [LegacyName("CatfishBanner")] + public class ToxicatfishBanner : ModItem { public override void SetStaticDefaults() { SacrificeTotal = 1; - Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Catfish"); + Tooltip.SetDefault("{$CommonItemTooltip.BannerBonus}Toxicatfish"); } public override void SetDefaults() diff --git a/Items/Placeables/Banners/CatfishBanner.png b/Items/Placeables/Banners/ToxicatfishBanner.png similarity index 100% rename from Items/Placeables/Banners/CatfishBanner.png rename to Items/Placeables/Banners/ToxicatfishBanner.png diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 4255998613..9c57390a69 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -7682,7 +7682,7 @@ namespace CalamityMod.NPCs npc.chaseable = true; //once the enemy has detected the player, let minions fuck it up } } - if (npc.type == ModContent.NPCType()) + if (npc.type == ModContent.NPCType()) { if (!target.dead) { @@ -7790,7 +7790,7 @@ namespace CalamityMod.NPCs } // Flounder shoot Sulphuric Mist at the player - if (npc.type == ModContent.NPCType()) + if (npc.type == ModContent.NPCType()) { if ((target.Center - npc.Center).Length() < 350f) { diff --git a/NPCs/SulphurousSea/Flounder.cs b/NPCs/SulphurousSea/Sulflounder.cs similarity index 95% rename from NPCs/SulphurousSea/Flounder.cs rename to NPCs/SulphurousSea/Sulflounder.cs index 429a5eab6c..d7140d463e 100644 --- a/NPCs/SulphurousSea/Flounder.cs +++ b/NPCs/SulphurousSea/Sulflounder.cs @@ -9,11 +9,11 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.SulphurousSea { - public class Flounder : ModNPC + public class Sulflounder : ModNPC { public override void SetStaticDefaults() { - DisplayName.SetDefault("Flounder"); + DisplayName.SetDefault("Sulflounder"); Main.npcFrameCount[NPC.type] = 4; } @@ -32,7 +32,7 @@ namespace CalamityMod.NPCs.SulphurousSea NPC.DeathSound = SoundID.NPCDeath53; NPC.knockBackResist = 0.35f; Banner = NPC.type; - BannerItem = ModContent.ItemType(); + BannerItem = ModContent.ItemType(); NPC.chaseable = false; NPC.Calamity().VulnerableToHeat = false; NPC.Calamity().VulnerableToSickness = false; @@ -159,8 +159,8 @@ namespace CalamityMod.NPCs.SulphurousSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Flounder").Type, 1f); - Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Flounder2").Type, 1f); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Sulflounder").Type, 1f); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Sulflounder2").Type, 1f); } } } diff --git a/NPCs/SulphurousSea/Flounder.png b/NPCs/SulphurousSea/Sulflounder.png similarity index 100% rename from NPCs/SulphurousSea/Flounder.png rename to NPCs/SulphurousSea/Sulflounder.png diff --git a/NPCs/SulphurousSea/Catfish.cs b/NPCs/SulphurousSea/Toxicatfish.cs similarity index 94% rename from NPCs/SulphurousSea/Catfish.cs rename to NPCs/SulphurousSea/Toxicatfish.cs index d99dd79d73..83f0188e6a 100644 --- a/NPCs/SulphurousSea/Catfish.cs +++ b/NPCs/SulphurousSea/Toxicatfish.cs @@ -9,11 +9,11 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.SulphurousSea { - public class Catfish : ModNPC + public class Toxicatfish : ModNPC { public override void SetStaticDefaults() { - DisplayName.SetDefault("Catfish"); + DisplayName.SetDefault("Toxicatfish"); Main.npcFrameCount[NPC.type] = 4; NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0); value.Position.X += 10f; @@ -35,7 +35,7 @@ namespace CalamityMod.NPCs.SulphurousSea NPC.DeathSound = SoundID.NPCDeath40; NPC.knockBackResist = 0.8f; Banner = NPC.type; - BannerItem = ModContent.ItemType(); + BannerItem = ModContent.ItemType(); NPC.chaseable = false; NPC.Calamity().VulnerableToHeat = false; NPC.Calamity().VulnerableToSickness = false; @@ -125,8 +125,8 @@ namespace CalamityMod.NPCs.SulphurousSea } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Catfish").Type, 1f); - Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Catfish2").Type, 1f); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Toxicatfish").Type, 1f); + Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Toxicatfish2").Type, 1f); } } } diff --git a/NPCs/SulphurousSea/Catfish.png b/NPCs/SulphurousSea/Toxicatfish.png similarity index 100% rename from NPCs/SulphurousSea/Catfish.png rename to NPCs/SulphurousSea/Toxicatfish.png diff --git a/Utilities/MiscUtils.cs b/Utilities/MiscUtils.cs index 61a7d491fe..425c558295 100644 --- a/Utilities/MiscUtils.cs +++ b/Utilities/MiscUtils.cs @@ -384,7 +384,7 @@ namespace CalamityMod item = ModContent.ItemType(); break; case 1: - item = ModContent.ItemType(); + item = ModContent.ItemType(); break; case 2: item = ModContent.ItemType(); @@ -393,7 +393,7 @@ namespace CalamityMod item = ModContent.ItemType(); break; case 4: - item = ModContent.ItemType(); + item = ModContent.ItemType(); break; case 6: item = ModContent.ItemType(); @@ -746,7 +746,7 @@ namespace CalamityMod npc = ModContent.NPCType(); break; case 1: - npc = ModContent.NPCType(); + npc = ModContent.NPCType(); break; case 2: npc = ModContent.NPCType(); @@ -755,7 +755,7 @@ namespace CalamityMod npc = ModContent.NPCType(); break; case 4: - npc = ModContent.NPCType(); + npc = ModContent.NPCType(); break; case 6: npc = ModContent.NPCType(); diff --git a/Utilities/NPCDebuffs.cs b/Utilities/NPCDebuffs.cs index 44b07f10db..fa4c8d05e9 100644 --- a/Utilities/NPCDebuffs.cs +++ b/Utilities/NPCDebuffs.cs @@ -224,8 +224,8 @@ namespace CalamityMod { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, - { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, - { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, + { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, + { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) }, { ModContent.NPCType(), new Tuple(false, CalamityMod.sulphurEnemyImmunities) },