Browse Source

Source types updated to match damage type

combat-2
MagicBot 8 months ago
parent
commit
fd73dbc349
  1. 8
      src/engine/Enum.java
  2. 8
      src/engine/objects/Resists.java

8
src/engine/Enum.java

@ -786,7 +786,7 @@ public class Enum {
Beastcraft, Beastcraft,
Benediction, Benediction,
BladeWeaving, BladeWeaving,
Bleed, Bleeding,
Blind, Blind,
Block, Block,
Bloodcraft, Bloodcraft,
@ -799,7 +799,7 @@ public class Enum {
Constitution, Constitution,
Corruption, Corruption,
Crossbow, Crossbow,
Crush, Crushing,
Dagger, Dagger,
DaggerMastery, DaggerMastery,
DeBuff, DeBuff,
@ -837,7 +837,7 @@ public class Enum {
NatureLore, NatureLore,
Necromancy, Necromancy,
Parry, Parry,
Pierce, Piercing,
Poison, Poison,
POISON, POISON,
PoleArm, PoleArm,
@ -848,7 +848,7 @@ public class Enum {
Root, Root,
Shadowmastery, Shadowmastery,
Siege, Siege,
Slash, Slashing,
Snare, Snare,
Sorcery, Sorcery,
Spear, Spear,

8
src/engine/objects/Resists.java

@ -368,11 +368,11 @@ public class Resists {
this.immuneTo.put(Enum.DamageType.SNARE, true); this.immuneTo.put(Enum.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.Bleeding);
poison += rb.getFloat(ModType.Resistance, SourceType.Poison); poison += rb.getFloat(ModType.Resistance, SourceType.Poison);
mental += rb.getFloat(ModType.Resistance, SourceType.Mental); mental += rb.getFloat(ModType.Resistance, SourceType.Mental);
holy += rb.getFloat(ModType.Resistance, SourceType.Holy); holy += rb.getFloat(ModType.Resistance, SourceType.Holy);

Loading…
Cancel
Save