Browse Source

SpurceType lookup fixes for Piercing Crushing and Slashing

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
34e5a3878c
  1. 8
      src/engine/Enum.java
  2. 6
      src/engine/objects/Resists.java

8
src/engine/Enum.java

@ -830,7 +830,7 @@ public class Enum {
Constitution, Constitution,
Corruption, Corruption,
Crossbow, Crossbow,
Crush, Crushing,
Dagger, Dagger,
DaggerMastery, DaggerMastery,
DeBuff, DeBuff,
@ -868,7 +868,7 @@ public class Enum {
NatureLore, NatureLore,
Necromancy, Necromancy,
Parry, Parry,
Pierce, Piercing,
Poison, Poison,
POISON, POISON,
PoleArm, PoleArm,
@ -879,7 +879,7 @@ public class Enum {
Root, Root,
Shadowmastery, Shadowmastery,
Siege, Siege,
Slash, Slashing,
Snare, Snare,
Sorcery, Sorcery,
Spear, Spear,
@ -986,7 +986,7 @@ public class Enum {
Cold, Cold,
Combat, Combat,
ConstitutionBuff, ConstitutionBuff,
Crush, Crushing,
DamageShield, DamageShield,
DeathShroud, DeathShroud,
DeBuff, DeBuff,

6
src/engine/objects/Resists.java

@ -451,9 +451,9 @@ public class Resists {
this.immuneTo.put(DamageType.Snare, true); this.immuneTo.put(DamageType.Snare, true);
// Handle resists // Handle resists
slash += rb.getFloat(ModType.Resistance, SourceType.Slash); slash += rb.getFloat(ModType.Resistance, SourceType.Slashing);
crush += rb.getFloat(ModType.Resistance, SourceType.Crush); crush += rb.getFloat(ModType.Resistance, SourceType.Crushing);
pierce += rb.getFloat(ModType.Resistance, SourceType.Pierce); pierce += rb.getFloat(ModType.Resistance, SourceType.Piercing);
magic += rb.getFloat(ModType.Resistance, SourceType.Magic); magic += rb.getFloat(ModType.Resistance, SourceType.Magic);
bleed += rb.getFloat(ModType.Resistance, SourceType.Bleed); bleed += rb.getFloat(ModType.Resistance, SourceType.Bleed);
poison += rb.getFloat(ModType.Resistance, SourceType.Poison); poison += rb.getFloat(ModType.Resistance, SourceType.Poison);

Loading…
Cancel
Save