Browse Source

mob resists

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
942288cee2
  1. 22
      src/engine/objects/Mob.java

22
src/engine/objects/Mob.java

@ -180,11 +180,8 @@ public class Mob extends AbstractIntelligenceAgent {
switch (raceType) { switch (raceType) {
case "Aelfborn": case "Aelfborn":
case "NPC": case "NPC":
case "Rat":
case "Reptile":
case "Grave": case "Grave":
case "Human": case "Human":
case "Goblin":
case "CSR": case "CSR":
case "Construct": case "Construct":
case "Celestial": case "Celestial":
@ -193,7 +190,7 @@ public class Mob extends AbstractIntelligenceAgent {
case "SiegeEngineer": case "SiegeEngineer":
int realmID = RealmMap.getRealmIDAtLocation(mob.bindLoc); int realmID = RealmMap.getRealmIDAtLocation(mob.bindLoc);
Realm realm = Realm.getRealm(realmID); Realm realm = Realm.getRealm(realmID);
if(realm != null) { if (realm != null) {
switch (realm.getRealmName()) { switch (realm.getRealmName()) {
//ice generics //ice generics
case "Hethlund": case "Hethlund":
@ -228,15 +225,23 @@ public class Mob extends AbstractIntelligenceAgent {
} }
} }
break; break;
case "Reptile":
case "Dragon":
resists.addResists(Resists.getResists(10));
break;
case "Goblin":
resists.addResists(Resists.getResists(9));
break;
case "Aracoix": case "Aracoix":
resists.addResists(Resists.getResists(22)); resists.addResists(Resists.getResists(22));
break; break;
case "Rat":
case "Troll":
resists.addResists(Resists.getResists(33));
break;
case "Centaur": case "Centaur":
resists.addResists(Resists.getResists(24)); resists.addResists(Resists.getResists(24));
break; break;
case "Dragon":
resists.addResists(Resists.getResists(10));
break;
case "Dwarf": case "Dwarf":
resists.addResists(Resists.getResists(25)); resists.addResists(Resists.getResists(25));
break; break;
@ -278,9 +283,6 @@ public class Mob extends AbstractIntelligenceAgent {
case "Siege": case "Siege":
resists.addResists(Resists.getResists(38)); resists.addResists(Resists.getResists(38));
break; break;
case "Troll":
resists.addResists(Resists.getResists(33));
break;
case "Undead": case "Undead":
resists.addResists(Resists.getResists(27)); resists.addResists(Resists.getResists(27));
break; break;

Loading…
Cancel
Save