1 - GFB Nurse meteor is now undodgeable

2 - Fixed Daedalus armor melee set bonus and The Evolution's dodges working against undodgeable attacks
This commit is contained in:
CongratsIsTrash committed 2026-01-08 00:41:04 -05:00
1 parent ea5416a474
commit 74f55f1af5
3 files changed
+15 -1

No files matched your search

+1 -1
View File
@@ -883,7 +883,7 @@ namespace CalamityMod.CalPlayer
return;
}
}
if (proj.active && proj.hostile && proj.damage > 0)
if (proj.active && proj.hostile && modifiers.Dodgeable && proj.damage > 0)
{
double dodgeDamageGateValuePercent = 0.05;
int dodgeDamageGateValue = (int)Math.Round(Player.statLifeMax2 * dodgeDamageGateValuePercent);
+13
View File
@@ -1,6 +1,7 @@
using System;
using CalamityMod.Balancing;
using CalamityMod.Enums;
using CalamityMod.Projectiles.Boss;
using Microsoft.Xna.Framework;
using Mono.Cecil.Cil;
using MonoMod.Cil;
@@ -673,5 +674,17 @@ namespace CalamityMod.ILEditing
cursor.Emit(OpCodes.And);
}
#endregion
#region Make GFB Nurse Meteor Undodgeable
private static bool GFBNurseMeteorUndodgeable(On_Projectile.orig_IsDamageDodgable orig, Projectile self)
{
// Make the Leviathan meteor that spawns when talking to the Nurse in GFB undodgeable
// Unfortunately the Dodgeable value in HurtModifiers cannot be set in the hook, thus On editing a vanilla function
if (self.type == ModContent.ProjectileType<LeviathanBomb>() && self.damage == 9999)
return false;
else
return orig(self);
}
#endregion
}
}
+1
View File
@@ -109,6 +109,7 @@ namespace CalamityMod.ILEditing
IL_Projectile.AI_099_2 += LimitTerrarianProjectiles;
IL_Projectile.AI_120_StardustGuardian += StardustGuardianAttackBuffs;
On_Player.ConsumeSolarFlare += SolarWingsDashChange;
On_Projectile.IsDamageDodgable += GFBNurseMeteorUndodgeable;
IL_Player.UpdateBuffs += UpdateBuffsBalancingChanges;
IL_Player.ApplyVanillaHurtEffectModifiers += RemoveBeetleAndSolarFlareMultiplicativeDR;