From 24c85a514006ff57c01be4b0a7fef96a9f324a97 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Jun 2024 14:21:57 -0500 Subject: [PATCH] revert sourcetype lookup fix --- src/engine/Enum.java | 12 ++++++------ src/engine/objects/Resists.java | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/engine/Enum.java b/src/engine/Enum.java index bbfdb3be..314b6f2d 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, @@ -1007,7 +1007,7 @@ public class Enum { Mental, Multielement, PetBuff, - Pierce, + Piercing, Poison, Powerblock, RecoveryManaBuff, @@ -1017,7 +1017,7 @@ public class Enum { SiegeBuff, SiegeDamage, Silence, - Slash, + Slashing, Snare, Stance, Stun, 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);