From 99fdfe50cdcb824c815f285ccaa5dbfedc61d1e0 Mon Sep 17 00:00:00 2001 From: GinYuH Date: Sat, 28 Jan 2023 23:49:34 -0800 Subject: [PATCH] Hive Tumor --- Items/AntiTumorOintment.cs | 2 +- ModSupport/WeakReferenceSupport.cs | 6 +++--- NPCs/CalamityGlobalNPC.cs | 2 +- NPCs/HiveMind/HiveMind.cs | 4 ++-- NPCs/HiveMind/{HiveCyst.cs => HiveTumor.cs} | 6 +++--- NPCs/HiveMind/{HiveCyst.png => HiveTumor.png} | Bin 6 files changed, 10 insertions(+), 10 deletions(-) rename NPCs/HiveMind/{HiveCyst.cs => HiveTumor.cs} (97%) rename NPCs/HiveMind/{HiveCyst.png => HiveTumor.png} (100%) diff --git a/Items/AntiTumorOintment.cs b/Items/AntiTumorOintment.cs index cd141cf49d..ce8d47a6ec 100644 --- a/Items/AntiTumorOintment.cs +++ b/Items/AntiTumorOintment.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items public override void SetStaticDefaults() { DisplayName.SetDefault("Anti-Tumor Ointment"); - Tooltip.SetDefault("Favorite this item to prevent hive cysts from spawning near you"); + Tooltip.SetDefault("Favorite this item to prevent hive tumors from spawning near you"); SacrificeTotal = 1; } public override void SetDefaults() diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index 11b66329be..04dba66b45 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -279,7 +279,7 @@ namespace CalamityMod ItemRedirect(ModContent.ItemType(), "Lore#Lore_Items"); // Enemies - EnemyRedirect(ModContent.NPCType(), "Catfish (enemy)"); + EnemyRedirect(ModContent.NPCType(), "Catfish (enemy)"); EnemyRedirect(ModContent.NPCType(), "Hive (enemy)"); EnemyRedirect(ModContent.NPCType(), "Crown Jewel (enemy)"); EnemyRedirect(ModContent.NPCType(), "Tooth Ball (Old Duke)"); @@ -435,7 +435,7 @@ namespace CalamityMod int type = NPCType(); int summon = ItemType(); List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; - string instructions = $"Kill a Cyst in the Corruption or use a [i:{summon}] in the Corruption"; + string instructions = $"Kill a Tumor in the Corruption or use a [i:{summon}] in the Corruption"; string despawn = CalamityUtils.ColorMessage("The corrupted colony began searching for a new breeding ground.", new Color(0x94, 0x00, 0xD3)); string bossHeadTex = "CalamityMod/NPCs/HiveMind/HiveMindP2_Head_Boss"; AddBoss(bossChecklist, calamity, "The Hive Mind", order, type, DownedHiveMind, summon, collection, instructions, despawn, () => true, null, bossHeadTex); @@ -1112,7 +1112,7 @@ namespace CalamityMod RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); - RegisterSummon(ItemType(), BuffType(), ProjectileType()); + RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); RegisterSummon(ItemType(), BuffType(), ProjectileType()); diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 95a9f336da..47b21878f6 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -4509,7 +4509,7 @@ namespace CalamityMod.NPCs MakeTownNPCsTakeMoreDamage(npc, projectile, Mod, ref damage); //Block natural falling stars from killing boss spawners randomly - if ((projectile.type == ProjectileID.FallingStar && projectile.damage >= 1000) && (npc.type == NPCType() || npc.type == NPCType() || npc.type == NPCType())) + if ((projectile.type == ProjectileID.FallingStar && projectile.damage >= 1000) && (npc.type == NPCType() || npc.type == NPCType() || npc.type == NPCType())) damage = 0; // Supercrits diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index 1ae32b584a..44a61d307e 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -353,8 +353,8 @@ namespace CalamityMod.NPCs.HiveMind } //Spawn a Hive Cyst - if (CalamityWorld.getFixedBoi && NPC.CountNPCS(ModContent.NPCType()) < 3) - NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + Main.rand.Next(NPC.width), (int)NPC.position.Y + Main.rand.Next(NPC.height), ModContent.NPCType()); + if (CalamityWorld.getFixedBoi && NPC.CountNPCS(ModContent.NPCType()) < 3) + NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + Main.rand.Next(NPC.width), (int)NPC.position.Y + Main.rand.Next(NPC.height), ModContent.NPCType()); } private void ReelBack() diff --git a/NPCs/HiveMind/HiveCyst.cs b/NPCs/HiveMind/HiveTumor.cs similarity index 97% rename from NPCs/HiveMind/HiveCyst.cs rename to NPCs/HiveMind/HiveTumor.cs index 9cf74067d9..d2008f949d 100644 --- a/NPCs/HiveMind/HiveCyst.cs +++ b/NPCs/HiveMind/HiveTumor.cs @@ -7,11 +7,11 @@ using Terraria.ModLoader; namespace CalamityMod.NPCs.HiveMind { - public class HiveCyst : ModNPC + public class HiveTumor : ModNPC { public override void SetStaticDefaults() { - DisplayName.SetDefault("Hive Cyst"); + DisplayName.SetDefault("Hive Tumor"); Main.npcFrameCount[NPC.type] = 4; NPCID.Sets.BossBestiaryPriority.Add(Type); } @@ -99,7 +99,7 @@ namespace CalamityMod.NPCs.HiveMind if (spawnInfo.Player.Calamity().disableHiveCystSpawns) return 0f; - bool anyBossElements = NPC.AnyNPCs(ModContent.NPCType()) || NPC.AnyNPCs(ModContent.NPCType()); + bool anyBossElements = NPC.AnyNPCs(ModContent.NPCType()) || NPC.AnyNPCs(ModContent.NPCType()); bool corrupt = TileID.Sets.Corrupt[spawnInfo.SpawnTileType] || spawnInfo.SpawnTileType == TileID.Demonite && spawnInfo.Player.ZoneCorrupt; if (anyBossElements || spawnInfo.PlayerSafe || !corrupt) return 0f; diff --git a/NPCs/HiveMind/HiveCyst.png b/NPCs/HiveMind/HiveTumor.png similarity index 100% rename from NPCs/HiveMind/HiveCyst.png rename to NPCs/HiveMind/HiveTumor.png