diff --git a/Balancing/BalancingChangesManager.cs b/Balancing/BalancingChangesManager.cs index 413bd7a7ee..4528b71cc6 100644 --- a/Balancing/BalancingChangesManager.cs +++ b/Balancing/BalancingChangesManager.cs @@ -75,6 +75,13 @@ namespace CalamityMod.Balancing #endregion Desert Scourge + #region Crabulon + + // 50% resist to true melee. + NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType(), new TrueMeleeResistBalancingRule(0.5f))); + + #endregion + #region Brain of Cthulhu / Creepers // 50% resist to true melee. diff --git a/CalamityLists.cs b/CalamityLists.cs index da3470cd13..36176ba696 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -149,6 +149,7 @@ namespace CalamityMod public static List PerforatorIDs; public static List DesertScourgeIDs; public static List EaterofWorldsIDs; + public static List SlimeGodIDs; public static List DeathModeSplittingWormIDs; public static List DestroyerIDs; public static List ThanatosIDs; @@ -2130,6 +2131,15 @@ namespace CalamityMod NPCID.EaterofWorldsTail }; + SlimeGodIDs = new List + { + NPCType(), + NPCType(), + NPCType(), + NPCType(), + NPCType() + }; + DeathModeSplittingWormIDs = new List { NPCID.DuneSplicerHead, @@ -2779,6 +2789,7 @@ namespace CalamityMod PerforatorIDs = null; DesertScourgeIDs = null; EaterofWorldsIDs = null; + SlimeGodIDs = null; DeathModeSplittingWormIDs = null; DestroyerIDs = null; ThanatosIDs = null; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index aa65ef000e..1a45f695c2 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -571,14 +571,16 @@ namespace CalamityMod.NPCs // Debuff vulnerabilities and resistances. // Damage multiplier calcs. - // Worms that are vulnerable to debuffs take reduced damage from vulnerabilities. + // Worms that are vulnerable to debuffs and Slime God slimes take reduced damage from vulnerabilities. bool wormBoss = CalamityLists.DesertScourgeIDs.Contains(npc.type) || CalamityLists.EaterofWorldsIDs.Contains(npc.type) || CalamityLists.PerforatorIDs.Contains(npc.type) || CalamityLists.AquaticScourgeIDs.Contains(npc.type) || CalamityLists.AstrumDeusIDs.Contains(npc.type) || CalamityLists.StormWeaverIDs.Contains(npc.type); - double heatDamageMult = npc.drippingSlime ? (wormBoss ? 3D : 5D) : 1D; + bool slimeGod = CalamityLists.SlimeGodIDs.Contains(npc.type); + + double heatDamageMult = npc.drippingSlime ? ((wormBoss || slimeGod) ? 3D : 5D) : 1D; if (VulnerableToHeat.HasValue) { if (VulnerableToHeat.Value) - heatDamageMult *= npc.drippingSlime ? (wormBoss ? 1.5 : 2D) : (wormBoss ? 3D : 5D); + heatDamageMult *= npc.drippingSlime ? ((wormBoss || slimeGod) ? 1.5 : 2D) : ((wormBoss || slimeGod) ? 3D : 5D); else heatDamageMult *= npc.drippingSlime ? 0.2 : 0.5; } @@ -3890,7 +3892,7 @@ namespace CalamityMod.NPCs if (CalamityLists.DesertScourgeIDs.Contains(npc.type) || CalamityLists.EaterofWorldsIDs.Contains(npc.type) || npc.type == NPCID.Creeper || CalamityLists.PerforatorIDs.Contains(npc.type) || CalamityLists.AquaticScourgeIDs.Contains(npc.type) || CalamityLists.DestroyerIDs.Contains(npc.type) || CalamityLists.AstrumDeusIDs.Contains(npc.type) || CalamityLists.StormWeaverIDs.Contains(npc.type) || CalamityLists.ThanatosIDs.Contains(npc.type) || - npc.type == NPCType() || npc.type == NPCType() || CalamityLists.AresIDs.Contains(npc.type)) + npc.type == NPCType() || npc.type == NPCType() || CalamityLists.AresIDs.Contains(npc.type) || npc.type == NPCType()) { double damageMult = CalamityLists.ThanatosIDs.Contains(npc.type) ? 0.35 : 0.5; if (item.melee && item.type != ItemType() && item.type != ItemType())