From 942288cee26932237f12fc2489c74b4cc5b8dd93 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 17 May 2024 18:19:24 -0500 Subject: [PATCH] mob resists --- src/engine/objects/Mob.java | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 7d1e966c..c6348d78 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -180,11 +180,8 @@ public class Mob extends AbstractIntelligenceAgent { switch (raceType) { case "Aelfborn": case "NPC": - case "Rat": - case "Reptile": case "Grave": case "Human": - case "Goblin": case "CSR": case "Construct": case "Celestial": @@ -193,7 +190,7 @@ public class Mob extends AbstractIntelligenceAgent { case "SiegeEngineer": int realmID = RealmMap.getRealmIDAtLocation(mob.bindLoc); Realm realm = Realm.getRealm(realmID); - if(realm != null) { + if (realm != null) { switch (realm.getRealmName()) { //ice generics case "Hethlund": @@ -228,15 +225,23 @@ public class Mob extends AbstractIntelligenceAgent { } } break; + case "Reptile": + case "Dragon": + resists.addResists(Resists.getResists(10)); + break; + case "Goblin": + resists.addResists(Resists.getResists(9)); + break; case "Aracoix": resists.addResists(Resists.getResists(22)); break; + case "Rat": + case "Troll": + resists.addResists(Resists.getResists(33)); + break; case "Centaur": resists.addResists(Resists.getResists(24)); break; - case "Dragon": - resists.addResists(Resists.getResists(10)); - break; case "Dwarf": resists.addResists(Resists.getResists(25)); break; @@ -278,9 +283,6 @@ public class Mob extends AbstractIntelligenceAgent { case "Siege": resists.addResists(Resists.getResists(38)); break; - case "Troll": - resists.addResists(Resists.getResists(33)); - break; case "Undead": resists.addResists(Resists.getResists(27)); break;