mob resist issue

This commit is contained in:
2024-05-11 18:44:16 -05:00
parent 8156f261fc
commit a202a0544e
2 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -684,7 +684,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
return new Resists("Dropper"); return new Resists("Dropper");
} }
if(this.getObjectType().equals(GameObjectType.Mob) && ((Mob)this).behaviourType.equals(MobBehaviourType.HamletGuard)) if(this.getObjectType().equals(GameObjectType.Mob) && ((Mob)this).behaviourType.equals(MobBehaviourType.HamletGuard))
return new Resists("HamletGuard"); return new Resists("HamletGuard");
return this.resists; return this.resists;
} }
+13 -1
View File
@@ -71,7 +71,19 @@ public class Resists {
this.resists.put(DamageType.Fire, 75f); this.resists.put(DamageType.Fire, 75f);
this.resists.put(DamageType.Cold, 75f); this.resists.put(DamageType.Cold, 75f);
this.resists.put(DamageType.Healing, 75f); this.resists.put(DamageType.Healing, 75f);
this.immuneTo.put(DamageType.Siege, true); this.immuneTo.put(DamageType.Slash, false);
this.immuneTo.put(DamageType.Crush, false);
this.immuneTo.put(DamageType.Pierce, false);
this.immuneTo.put(DamageType.Magic, false);
this.immuneTo.put(DamageType.Bleed, false);
this.immuneTo.put(DamageType.Poison, false);
this.immuneTo.put(DamageType.Mental, false);
this.immuneTo.put(DamageType.Holy, false);
this.immuneTo.put(DamageType.Unholy, false);
this.immuneTo.put(DamageType.Lightning, false);
this.immuneTo.put(DamageType.Fire, false);
this.immuneTo.put(DamageType.Cold, false);
this.immuneTo.put(DamageType.Siege, false);
} }
public Resists(Resists r) { public Resists(Resists r) {