Debuff Fix
- Fixes crossmod debuff calculations being off - fixes shadowflame always doing 15 dps less than intended. Nerfed to 20 dps to compensate. (slightly worse on fire weak enemies / with amplifiers than before, better on fire resists / de-amplifiers than before)
This commit is contained in:
1 parent
2aae6879d3
commit
412d00ebf0
1 file changed
+6
-7
@@ -359,8 +359,8 @@ namespace CalamityMod.DataStructures
|
||||
};
|
||||
public static DebuffData Shadowflame = new DebuffData()
|
||||
{
|
||||
EnemyLostRegen = 60,
|
||||
EnemyVanillaRegenToCancelOut = 60,
|
||||
EnemyLostRegen = 40,
|
||||
EnemyVanillaRegenToCancelOut = 30,
|
||||
HeatDebuffScaling = 1
|
||||
};
|
||||
public static DebuffData Daybroken = new DebuffData()
|
||||
@@ -436,13 +436,12 @@ namespace CalamityMod.DataStructures
|
||||
|
||||
if (debuffData == Oiled)
|
||||
{
|
||||
bool hasVanillaOil = npc.onFrostBurn || npc.onFrostBurn2 || npc.onFire || npc.onFire2 || npc.onFire3 || npc.shadowFlame;
|
||||
if (hasVanillaOil)
|
||||
npc.lifeRegen -= Oiled.EnemyVanillaRegenToCancelOut;
|
||||
Oiled.NPCLifeRegenMethod(npc, BuffID.Oiled, ref index, ref dmg);
|
||||
}
|
||||
|
||||
debuffData.NPCLifeRegenMethod(npc, type, ref index, ref dmg);
|
||||
else {
|
||||
debuffData.NPCLifeRegenMethod(npc, type, ref index, ref dmg);
|
||||
npc.lifeRegen -= debuffData.EnemyVanillaRegenToCancelOut; //ensure vanilla dmg values aren't counted
|
||||
}
|
||||
|
||||
int done = npc.lifeRegen;
|
||||
npc.lifeRegen = oldRegen;
|
||||
|
||||
Reference in new issue
Block a user