Browse Source

SpurceType lookup fixes for Piercing Crushing and Slashing

lakebane-new
FatBoy-DOTC 5 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 { @@ -830,7 +830,7 @@ public class Enum {
Constitution,
Corruption,
Crossbow,
Crush,
Crushing,
Dagger,
DaggerMastery,
DeBuff,
@ -868,7 +868,7 @@ public class Enum { @@ -868,7 +868,7 @@ public class Enum {
NatureLore,
Necromancy,
Parry,
Pierce,
Piercing,
Poison,
POISON,
PoleArm,
@ -879,7 +879,7 @@ public class Enum { @@ -879,7 +879,7 @@ public class Enum {
Root,
Shadowmastery,
Siege,
Slash,
Slashing,
Snare,
Sorcery,
Spear,
@ -986,7 +986,7 @@ public class Enum { @@ -986,7 +986,7 @@ public class Enum {
Cold,
Combat,
ConstitutionBuff,
Crush,
Crushing,
DamageShield,
DeathShroud,
DeBuff,

6
src/engine/objects/Resists.java

@ -451,9 +451,9 @@ public class Resists { @@ -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);

Loading…
Cancel
Save