Browse Source

mob resist issue

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
5822cb1ab4
  1. 159
      src/engine/objects/Mob.java

159
src/engine/objects/Mob.java

@ -216,84 +216,87 @@ public class Mob extends AbstractIntelligenceAgent {
break; break;
} }
} }
switch(mob.mobBase.raceType){ int mobbaseID = mob.getMobBaseID();
case "Aelfborn": if(mobbaseID != 0) {
case "NPC": switch (MobBase.mobbase_race_types.get(mobbaseID)) {
case "Rat": case "Aelfborn":
case "Reptile": case "NPC":
case "Grave": case "Rat":
case "Human": case "Reptile":
case "Goblin": case "Grave":
case "CSR": case "Human":
case "Construct": case "Goblin":
case "Celestial": case "CSR":
case "Animal": case "Construct":
case "All": case "Celestial":
case "SiegeEngineer": case "Animal":
resists.addResists(new Resists("Generic")); case "All":
break; case "SiegeEngineer":
case "Aracoix": resists.addResists(new Resists("Generic"));
resists.addResists(Resists.getResists(22)); break;
break; case "Aracoix":
case "Centaur": resists.addResists(Resists.getResists(22));
resists.addResists(Resists.getResists(24)); break;
break; case "Centaur":
case "Dragon": resists.addResists(Resists.getResists(24));
resists.addResists(Resists.getResists(10)); break;
break; case "Dragon":
case "Dwarf": resists.addResists(Resists.getResists(10));
resists.addResists(Resists.getResists(25)); break;
break; case "Dwarf":
case "Elf": resists.addResists(Resists.getResists(25));
resists.addResists(Resists.getResists(5)); break;
break; case "Elf":
case "Giant": resists.addResists(Resists.getResists(5));
resists.addResists(Resists.getResists(34)); break;
break; case "Giant":
case "HalfGiant": resists.addResists(Resists.getResists(34));
resists.addResists(Resists.getResists(6)); break;
break; case "HalfGiant":
case "Infernal": resists.addResists(Resists.getResists(6));
resists.addResists(Resists.getResists(18)); break;
break; case "Infernal":
case "Insect": resists.addResists(Resists.getResists(18));
case "Pet": break;
case "Summoned": case "Insect":
resists.addResists(Resists.getResists(19)); case "Pet":
break; case "Summoned":
case "Irekei": resists.addResists(Resists.getResists(19));
resists.addResists(Resists.getResists(12)); break;
break; case "Irekei":
case "Minotaur": resists.addResists(Resists.getResists(12));
resists.addResists(Resists.getResists(13)); break;
break; case "Minotaur":
case "Monster": resists.addResists(Resists.getResists(13));
resists.addResists(Resists.getResists(35)); break;
break; case "Monster":
case "NecroPet": resists.addResists(Resists.getResists(35));
resists.addResists(Resists.getResists(23)); break;
break; case "NecroPet":
case "Plant": resists.addResists(Resists.getResists(23));
resists.addResists(Resists.getResists(36)); break;
break; case "Plant":
case "Shade": resists.addResists(Resists.getResists(36));
resists.addResists(Resists.getResists(26)); break;
break; case "Shade":
case "Siege": resists.addResists(Resists.getResists(26));
resists.addResists(Resists.getResists(38)); break;
break; case "Siege":
case "Troll": resists.addResists(Resists.getResists(38));
resists.addResists(Resists.getResists(33)); break;
break; case "Troll":
case "Undead": resists.addResists(Resists.getResists(33));
resists.addResists(Resists.getResists(27)); break;
break; case "Undead":
case "Nephilim": resists.addResists(Resists.getResists(27));
resists.addResists(Resists.getResists(7)); break;
break; case "Nephilim":
case "Vampire": resists.addResists(Resists.getResists(7));
resists.addResists(Resists.getResists(11)); break;
break; case "Vampire":
resists.addResists(Resists.getResists(11));
break;
}
} }
mob.mobResists = resists; mob.mobResists = resists;
} }

Loading…
Cancel
Save