Browse Source

mob resist issue

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

86
src/engine/objects/Mob.java

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

Loading…
Cancel
Save