1 - Crabulon resists true melee by 50%.

2 - Slime God takes less damage from fire debuffs.
This commit is contained in:
mountaindrew10 committed 2022-03-14 04:25:39 -06:00
1 parent 702f84eabd
commit 0e1d230bca
3 files changed
+24 -4

No files matched your search

+7
View File
@@ -75,6 +75,13 @@ namespace CalamityMod.Balancing
#endregion Desert Scourge
#region Crabulon
// 50% resist to true melee.
NPCSpecificBalancingChanges.Add(new NPCBalancingChange(NPCType<CrabulonIdle>(), new TrueMeleeResistBalancingRule(0.5f)));
#endregion
#region Brain of Cthulhu / Creepers
// 50% resist to true melee.
+11
View File
@@ -149,6 +149,7 @@ namespace CalamityMod
public static List<int> PerforatorIDs;
public static List<int> DesertScourgeIDs;
public static List<int> EaterofWorldsIDs;
public static List<int> SlimeGodIDs;
public static List<int> DeathModeSplittingWormIDs;
public static List<int> DestroyerIDs;
public static List<int> ThanatosIDs;
@@ -2130,6 +2131,15 @@ namespace CalamityMod
NPCID.EaterofWorldsTail
};
SlimeGodIDs = new List<int>
{
NPCType<SlimeGod>(),
NPCType<SlimeGodRun>(),
NPCType<SlimeGodSplit>(),
NPCType<SlimeGodRunSplit>(),
NPCType<SlimeGodCore>()
};
DeathModeSplittingWormIDs = new List<int>
{
NPCID.DuneSplicerHead,
@@ -2779,6 +2789,7 @@ namespace CalamityMod
PerforatorIDs = null;
DesertScourgeIDs = null;
EaterofWorldsIDs = null;
SlimeGodIDs = null;
DeathModeSplittingWormIDs = null;
DestroyerIDs = null;
ThanatosIDs = null;
+6 -4
View File
@@ -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<DarkEnergy>() || npc.type == NPCType<RavagerBody>() || CalamityLists.AresIDs.Contains(npc.type))
npc.type == NPCType<DarkEnergy>() || npc.type == NPCType<RavagerBody>() || CalamityLists.AresIDs.Contains(npc.type) || npc.type == NPCType<CrabulonIdle>())
{
double damageMult = CalamityLists.ThanatosIDs.Contains(npc.type) ? 0.35 : 0.5;
if (item.melee && item.type != ItemType<UltimusCleaver>() && item.type != ItemType<InfernaCutter>())