From 34e5a3878c54bfe6ac776a0264e9f605d234c7f1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Jun 2024 14:17:43 -0500 Subject: [PATCH] SpurceType lookup fixes for Piercing Crushing and Slashing --- src/engine/Enum.java | 8 ++++---- src/engine/objects/Resists.java | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/engine/Enum.java b/src/engine/Enum.java index bbfdb3be..5b3c7058 100644 --- a/src/engine/Enum.java +++ b/src/engine/Enum.java @@ -830,7 +830,7 @@ public class Enum { Constitution, Corruption, Crossbow, - Crush, + Crushing, Dagger, DaggerMastery, DeBuff, @@ -868,7 +868,7 @@ public class Enum { NatureLore, Necromancy, Parry, - Pierce, + Piercing, Poison, POISON, PoleArm, @@ -879,7 +879,7 @@ public class Enum { Root, Shadowmastery, Siege, - Slash, + Slashing, Snare, Sorcery, Spear, @@ -986,7 +986,7 @@ public class Enum { Cold, Combat, ConstitutionBuff, - Crush, + Crushing, DamageShield, DeathShroud, DeBuff, diff --git a/src/engine/objects/Resists.java b/src/engine/objects/Resists.java index e72b1827..b94e5207 100644 --- a/src/engine/objects/Resists.java +++ b/src/engine/objects/Resists.java @@ -451,9 +451,9 @@ public class Resists { this.immuneTo.put(DamageType.Snare, true); // Handle resists - slash += rb.getFloat(ModType.Resistance, SourceType.Slash); - crush += rb.getFloat(ModType.Resistance, SourceType.Crush); - pierce += rb.getFloat(ModType.Resistance, SourceType.Pierce); + slash += rb.getFloat(ModType.Resistance, SourceType.Slashing); + crush += rb.getFloat(ModType.Resistance, SourceType.Crushing); + pierce += rb.getFloat(ModType.Resistance, SourceType.Piercing); magic += rb.getFloat(ModType.Resistance, SourceType.Magic); bleed += rb.getFloat(ModType.Resistance, SourceType.Bleed); poison += rb.getFloat(ModType.Resistance, SourceType.Poison);