@ -1570,20 +1570,41 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1570,20 +1570,41 @@ public class Mob extends AbstractIntelligenceAgent {
if(this.StrongholdCommander){
this.maxDamageHandOne=3500;
this.minDamageHandOne=1500;
this.atrHandOne=3500;
this.defenseRating=3500;
intatr=3500;
intdefense=3500;
if(this.bonuses!=null){
defense=GetDefense(defense,this);
atr=GetAttackRating(atr,this);
}
this.defenseRating=defense;
this.atrHandOne=atr;
return;
}elseif(this.StrongholdGuardian){
this.maxDamageHandOne=1550;
this.minDamageHandOne=750;
this.atrHandOne=1800;
this.defenseRating=2200;
intatr=1800;
intdefense=2200;
if(this.bonuses!=null){
defense=GetDefense(defense,this);
atr=GetAttackRating(atr,this);
}
this.defenseRating=defense;
this.atrHandOne=atr;
return;
}elseif(this.StrongholdEpic){
this.maxDamageHandOne=5000;
this.minDamageHandOne=2500;
this.atrHandOne=5000;
this.defenseRating=3500;
intatr=5000;
intdefense=3500;
if(this.bonuses!=null){
defense=GetDefense(defense,this);
atr=GetAttackRating(atr,this);
}
this.defenseRating=defense;
this.atrHandOne=atr;
return;
}
if(this.charItemManager==null||this.equip==null){
@ -1598,7 +1619,7 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1598,7 +1619,7 @@ public class Mob extends AbstractIntelligenceAgent {
@ -1632,36 +1653,55 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1632,36 +1653,55 @@ public class Mob extends AbstractIntelligenceAgent {
// TODO add error log here
if(this.bonuses!=null){
defense=GetDefense((int)defense,this);
}else
Logger.error("Error: missing bonuses");
defense=(defense<1)?1:defense;
this.defenseRating=(short)(defense+0.5f);
}catch(Exceptione){
Logger.info("Mobbase ID "+this.getMobBaseID()+" returned an error. Setting to Default Defense."+e.getMessage());