From fd73dbc3496df85f99a4f7ee3612685d58e0aefb Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 1 Apr 2024 12:53:49 -0400 Subject: [PATCH] Source types updated to match damage type --- src/engine/Enum.java | 8 ++++---- src/engine/objects/Resists.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/engine/Enum.java b/src/engine/Enum.java index ce1ed466..f6166074 100644 --- a/src/engine/Enum.java +++ b/src/engine/Enum.java @@ -786,7 +786,7 @@ public class Enum { Beastcraft, Benediction, BladeWeaving, - Bleed, + Bleeding, Blind, Block, Bloodcraft, @@ -799,7 +799,7 @@ public class Enum { Constitution, Corruption, Crossbow, - Crush, + Crushing, Dagger, DaggerMastery, DeBuff, @@ -837,7 +837,7 @@ public class Enum { NatureLore, Necromancy, Parry, - Pierce, + Piercing, Poison, POISON, PoleArm, @@ -848,7 +848,7 @@ public class Enum { Root, Shadowmastery, Siege, - Slash, + Slashing, Snare, Sorcery, Spear, diff --git a/src/engine/objects/Resists.java b/src/engine/objects/Resists.java index 316490c1..912ed11e 100644 --- a/src/engine/objects/Resists.java +++ b/src/engine/objects/Resists.java @@ -368,11 +368,11 @@ public class Resists { this.immuneTo.put(Enum.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); + bleed += rb.getFloat(ModType.Resistance, SourceType.Bleeding); poison += rb.getFloat(ModType.Resistance, SourceType.Poison); mental += rb.getFloat(ModType.Resistance, SourceType.Mental); holy += rb.getFloat(ModType.Resistance, SourceType.Holy);