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

8
src/engine/objects/Resists.java

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

Loading…
Cancel
Save