From 26166cbad30bdcd8bbda8eea090111fd93ee7b9a Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Mon, 6 May 2024 03:08:25 -0500 Subject: [PATCH] Boss minion stat scaling fixes. --- CalamityLists.cs | 18 ++++++++++++++++-- Events/BossRushEvent.cs | 2 +- NPCs/NormalNPCs/KingSlimeJewel.cs | 5 +++++ NPCs/NormalNPCs/KingSlimeJewel2.cs | 5 +++++ NPCs/NormalNPCs/KingSlimeJewel3.cs | 5 +++++ NPCs/NormalNPCs/PlanterasFreeTentacle.cs | 1 + 6 files changed, 33 insertions(+), 3 deletions(-) diff --git a/CalamityLists.cs b/CalamityLists.cs index 354f4a9b88..a8ada3753a 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -2428,6 +2428,9 @@ namespace CalamityMod { NPCID.UmbrellaSlime, 5400 }, { NPCID.RainbowSlime, 30000 }, { NPCID.Pinky, 15000 }, + { NPCType(), 21000 }, + { NPCType(), 18000 }, + { NPCType(), 24000 }, { NPCID.EyeofCthulhu, 450000 }, // 30 seconds { NPCID.ServantofCthulhu, 6000 }, @@ -2441,6 +2444,11 @@ namespace CalamityMod { NPCID.Creeper, 10000 }, { NPCID.QueenBee, 315000 }, // 30 seconds + { NPCID.Bee, 3000 }, + { NPCID.BeeSmall, 2000 }, + { NPCID.BigHornetHoney, 10000 }, + { NPCID.HornetHoney, 7500 }, + { NPCID.LittleHornetHoney, 5000 }, { NPCID.Deerclops, 315000 }, // 30 seconds @@ -2449,6 +2457,11 @@ namespace CalamityMod { NPCID.WallofFlesh, 450000 }, // 30 seconds { NPCID.WallofFleshEye, 450000 }, + { NPCID.TheHungry, 10000 }, + { NPCID.TheHungryII, 5000 }, + { NPCID.LeechHead, 5000 }, + { NPCID.LeechBody, 5000 }, + { NPCID.LeechTail, 5000 }, // Tier 2 { NPCID.QueenSlimeBoss, 150000 }, // 30 seconds @@ -2462,7 +2475,7 @@ namespace CalamityMod { NPCID.TheDestroyer, 250000 }, // 30 seconds + immunity timer at start { NPCID.TheDestroyerBody, 250000 }, { NPCID.TheDestroyerTail, 250000 }, - { NPCID.Probe, 10000 }, + { NPCID.Probe, 5000 }, { NPCID.SkeletronPrime, 160000 }, // 30 seconds { NPCType(), 160000 }, @@ -2472,7 +2485,8 @@ namespace CalamityMod { NPCID.PrimeLaser, 38000 }, { NPCID.Plantera, 160000 }, // 30 seconds - { NPCID.PlanterasTentacle, 40000 }, + { NPCID.PlanterasTentacle, 5000 }, + { NPCType(), 5000 }, // Tier 3 { NPCID.Golem, 50000 }, // 30 seconds diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index db1129961a..07e1b805da 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -182,7 +182,7 @@ namespace CalamityMod.Events ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType(), ModContent.NPCType() ,ModContent.NPCType() }), - new Boss(NPCID.QueenBee, permittedNPCs: new int[] { NPCID.Bee, NPCID.BeeSmall }), + new Boss(NPCID.QueenBee, permittedNPCs: new int[] { NPCID.Bee, NPCID.BeeSmall, NPCID.LittleHornetHoney, NPCID.HornetHoney, NPCID.BigHornetHoney }), new Boss(NPCID.Deerclops), diff --git a/NPCs/NormalNPCs/KingSlimeJewel.cs b/NPCs/NormalNPCs/KingSlimeJewel.cs index 1ed5bfcc29..a6edbdf1f8 100644 --- a/NPCs/NormalNPCs/KingSlimeJewel.cs +++ b/NPCs/NormalNPCs/KingSlimeJewel.cs @@ -181,6 +181,11 @@ namespace CalamityMod.NPCs.NormalNPCs return newColor; } + public override void ApplyDifficultyAndPlayerScaling(int numPlayers, float balance, float bossAdjustment) + { + NPC.lifeMax = (int)(NPC.lifeMax * balance); + } + public override bool CheckActive() => false; public override void HitEffect(NPC.HitInfo hit) diff --git a/NPCs/NormalNPCs/KingSlimeJewel2.cs b/NPCs/NormalNPCs/KingSlimeJewel2.cs index 058d0baf4d..d1df10f218 100644 --- a/NPCs/NormalNPCs/KingSlimeJewel2.cs +++ b/NPCs/NormalNPCs/KingSlimeJewel2.cs @@ -150,6 +150,11 @@ namespace CalamityMod.NPCs.NormalNPCs return newColor; } + public override void ApplyDifficultyAndPlayerScaling(int numPlayers, float balance, float bossAdjustment) + { + NPC.lifeMax = (int)(NPC.lifeMax * balance); + } + public override bool CheckActive() => false; public override void HitEffect(NPC.HitInfo hit) diff --git a/NPCs/NormalNPCs/KingSlimeJewel3.cs b/NPCs/NormalNPCs/KingSlimeJewel3.cs index 5f4f6eb15c..df9125952b 100644 --- a/NPCs/NormalNPCs/KingSlimeJewel3.cs +++ b/NPCs/NormalNPCs/KingSlimeJewel3.cs @@ -230,6 +230,11 @@ namespace CalamityMod.NPCs.NormalNPCs return newColor; } + public override void ApplyDifficultyAndPlayerScaling(int numPlayers, float balance, float bossAdjustment) + { + NPC.lifeMax = (int)(NPC.lifeMax * balance); + } + public override bool CheckActive() => false; public override void HitEffect(NPC.HitInfo hit) diff --git a/NPCs/NormalNPCs/PlanterasFreeTentacle.cs b/NPCs/NormalNPCs/PlanterasFreeTentacle.cs index b93dd4078f..0cbf988952 100644 --- a/NPCs/NormalNPCs/PlanterasFreeTentacle.cs +++ b/NPCs/NormalNPCs/PlanterasFreeTentacle.cs @@ -207,6 +207,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void ApplyDifficultyAndPlayerScaling(int numPlayers, float balance, float bossAdjustment) { + NPC.lifeMax = (int)(NPC.lifeMax * balance); NPC.damage = (int)(NPC.damage * NPC.GetExpertDamageMultiplier()); }