Browse Source

mob resist issue

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
5858aabc83
  1. 84
      src/engine/objects/Mob.java

84
src/engine/objects/Mob.java

@ -172,7 +172,9 @@ public class Mob extends AbstractIntelligenceAgent {
} }
public static void setResistsForMob(Mob mob){ public static void setResistsForMob(Mob mob){
if(mob.getResists() == null){
mob.resists = new Resists("Generic"); mob.resists = new Resists("Generic");
}
Zone parentMacro = null; Zone parentMacro = null;
for(Zone zone : ZoneManager.getAllZonesIn(mob.loc)){ for(Zone zone : ZoneManager.getAllZonesIn(mob.loc)){
if(zone.isMacroZone() == false) if(zone.isMacroZone() == false)
@ -186,143 +188,143 @@ public class Mob extends AbstractIntelligenceAgent {
case "Kralgaar Holm": case "Kralgaar Holm":
case "Ecklund Wilds": case "Ecklund Wilds":
case "Aurrochs Skrae": case "Aurrochs Skrae":
mob.resists.addResists(Resists.getResists(28)); mob.getResists().addResists(Resists.getResists(28));
break; break;
//Desert Generics //Desert Generics
case "Leth'khalivar Desert": case "Leth'khalivar Desert":
case "Kharsoom": case "Kharsoom":
case "Vale of Nar Addad": case "Vale of Nar Addad":
case "The Blood Sands": case "The Blood Sands":
mob.resists.addResists(Resists.getResists(2)); mob.getResists().addResists(Resists.getResists(2));
break; break;
//Swamp Generics //Swamp Generics
case "Thollok Marsh": case "Thollok Marsh":
case "The Black Bog": case "The Black Bog":
case "Sevaath Mere": case "Sevaath Mere":
mob.resists.addResists(Resists.getResists(8)); mob.getResists().addResists(Resists.getResists(8));
break; break;
//Oblivion Generics //Oblivion Generics
case "Plain of Ashes": case "Plain of Ashes":
case "Bone Marches": case "Bone Marches":
case "The Doomplain": case "The Doomplain":
case "Greensward Pyre": case "Greensward Pyre":
mob.resists.addResists(Resists.getResists(4)); mob.getResists().addResists(Resists.getResists(4));
break; break;
//Maelstrom Generics //Maelstrom Generics
case "Pandemonium": case "Pandemonium":
case "Western Battleground": case "Western Battleground":
mob.resists.addResists(Resists.getResists(32)); mob.getResists().addResists(Resists.getResists(32));
break; break;
} }
} }
if(mob.getNameOverride().length() > 1){ if(mob.getNameOverride().length() > 1){
mob.resists.addResists(Resists.getResists(3)); mob.getResists().addResists(Resists.getResists(3));
} }
switch(mob.mobBase.raceType){ switch(mob.mobBase.raceType){
case "Aelfborn": case "Aelfborn":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "All": case "All":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "Animal": case "Animal":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "Aracoix": case "Aracoix":
mob.resists.addResists(Resists.getResists(22)); mob.getResists().addResists(Resists.getResists(22));
break; break;
case "Celestial": case "Celestial":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "Centaur": case "Centaur":
mob.resists.addResists(Resists.getResists(24)); mob.getResists().addResists(Resists.getResists(24));
break; break;
case "Construct": case "Construct":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "CSR": case "CSR":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "Dragon": case "Dragon":
mob.resists.addResists(Resists.getResists(10)); mob.getResists().addResists(Resists.getResists(10));
break; break;
case "Dwarf": case "Dwarf":
mob.resists.addResists(Resists.getResists(25)); mob.getResists().addResists(Resists.getResists(25));
break; break;
case "Elf": case "Elf":
mob.resists.addResists(Resists.getResists(5)); mob.getResists().addResists(Resists.getResists(5));
break; break;
case "Giant": case "Giant":
mob.resists.addResists(Resists.getResists(34)); mob.getResists().addResists(Resists.getResists(34));
break; break;
case "Goblin": case "Goblin":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "Grave": case "Grave":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "HalfGiant": case "HalfGiant":
mob.resists.addResists(Resists.getResists(6)); mob.getResists().addResists(Resists.getResists(6));
break; break;
case "Human": case "Human":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "Infernal": case "Infernal":
mob.resists.addResists(Resists.getResists(18)); mob.getResists().addResists(Resists.getResists(18));
break; break;
case "Insect": case "Insect":
mob.resists.addResists(Resists.getResists(19)); mob.getResists().addResists(Resists.getResists(19));
break; break;
case "Irekei": case "Irekei":
mob.resists.addResists(Resists.getResists(12)); mob.getResists().addResists(Resists.getResists(12));
break; break;
case "Minotaur": case "Minotaur":
mob.resists.addResists(Resists.getResists(13)); mob.getResists().addResists(Resists.getResists(13));
break; break;
case "Monster": case "Monster":
mob.resists.addResists(Resists.getResists(35)); mob.getResists().addResists(Resists.getResists(35));
break; break;
case "NecroPet": case "NecroPet":
mob.resists.addResists(Resists.getResists(23)); mob.getResists().addResists(Resists.getResists(23));
break; break;
case "NPC": case "NPC":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "Pet": case "Pet":
mob.resists.addResists(Resists.getResists(19)); mob.getResists().addResists(Resists.getResists(19));
break; break;
case "Plant": case "Plant":
mob.resists.addResists(Resists.getResists(36)); mob.getResists().addResists(Resists.getResists(36));
break; break;
case "Rat": case "Rat":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "Reptile": case "Reptile":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
case "Shade": case "Shade":
mob.resists.addResists(Resists.getResists(26)); mob.getResists().addResists(Resists.getResists(26));
break; break;
case "Siege": case "Siege":
mob.resists.addResists(Resists.getResists(38)); mob.getResists().addResists(Resists.getResists(38));
break; break;
case "Summoned": case "Summoned":
mob.resists.addResists(Resists.getResists(19)); mob.getResists().addResists(Resists.getResists(19));
break; break;
case "Troll": case "Troll":
mob.resists.addResists(Resists.getResists(33)); mob.getResists().addResists(Resists.getResists(33));
break; break;
case "Undead": case "Undead":
mob.resists.addResists(Resists.getResists(27)); mob.getResists().addResists(Resists.getResists(27));
break; break;
case "Nephilim": case "Nephilim":
mob.resists.addResists(Resists.getResists(7)); mob.getResists().addResists(Resists.getResists(7));
break; break;
case "Vampire": case "Vampire":
mob.resists.addResists(Resists.getResists(11)); mob.getResists().addResists(Resists.getResists(11));
break; break;
case "SiegeEngineer": case "SiegeEngineer":
mob.resists.addResists(Resists.getResists(0)); mob.getResists().addResists(Resists.getResists(0));
break; break;
} }
} }

Loading…
Cancel
Save