|
|
@ -1125,14 +1125,14 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this.atrHandOne = (short) this.mobBase.getAttackRating(); |
|
|
|
this.atrHandOne = (short) this.mobBase.getAttackRating(); |
|
|
|
this.minDamageHandOne = (short) this.mobBase.getMinDmg(); |
|
|
|
this.minDamageHandOne = (short) this.mobBase.getDamageMin(); |
|
|
|
this.maxDamageHandOne = (short) this.mobBase.getMaxDmg(); |
|
|
|
this.maxDamageHandOne = (short) this.mobBase.getDamageMax(); |
|
|
|
this.rangeHandOne = 6.5f; |
|
|
|
this.rangeHandOne = 6.5f; |
|
|
|
this.speedHandOne = 20; |
|
|
|
this.speedHandOne = 20; |
|
|
|
|
|
|
|
|
|
|
|
this.atrHandTwo = (short) this.mobBase.getAttackRating(); |
|
|
|
this.atrHandTwo = (short) this.mobBase.getAttackRating(); |
|
|
|
this.minDamageHandTwo = (short) this.mobBase.getMinDmg(); |
|
|
|
this.minDamageHandTwo = (short) this.mobBase.getDamageMin(); |
|
|
|
this.maxDamageHandTwo = (short) this.mobBase.getMaxDmg(); |
|
|
|
this.maxDamageHandTwo = (short) this.mobBase.getDamageMax(); |
|
|
|
this.rangeHandTwo = 6.5f; |
|
|
|
this.rangeHandTwo = 6.5f; |
|
|
|
this.speedHandTwo = 20; |
|
|
|
this.speedHandTwo = 20; |
|
|
|
|
|
|
|
|
|
|
@ -1150,8 +1150,8 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
|
|
|
|
this.atrHandOne = (short) this.mobBase.getAttackRating(); |
|
|
|
this.atrHandOne = (short) this.mobBase.getAttackRating(); |
|
|
|
this.minDamageHandOne = (short) this.mobBase.getMinDmg(); |
|
|
|
this.minDamageHandOne = (short) this.mobBase.getDamageMin(); |
|
|
|
this.maxDamageHandOne = (short) this.mobBase.getMaxDmg(); |
|
|
|
this.maxDamageHandOne = (short) this.mobBase.getDamageMax(); |
|
|
|
this.rangeHandOne = 6.5f; |
|
|
|
this.rangeHandOne = 6.5f; |
|
|
|
this.speedHandOne = 20; |
|
|
|
this.speedHandOne = 20; |
|
|
|
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. setting to default ATR and Damage." + e.getMessage()); |
|
|
|
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. setting to default ATR and Damage." + e.getMessage()); |
|
|
@ -1163,8 +1163,8 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
|
|
|
|
this.atrHandTwo = (short) this.mobBase.getAttackRating(); |
|
|
|
this.atrHandTwo = (short) this.mobBase.getAttackRating(); |
|
|
|
this.minDamageHandTwo = (short) this.mobBase.getMinDmg(); |
|
|
|
this.minDamageHandTwo = (short) this.mobBase.getDamageMin(); |
|
|
|
this.maxDamageHandTwo = (short) this.mobBase.getMaxDmg(); |
|
|
|
this.maxDamageHandTwo = (short) this.mobBase.getDamageMax(); |
|
|
|
this.rangeHandTwo = 6.5f; |
|
|
|
this.rangeHandTwo = 6.5f; |
|
|
|
this.speedHandTwo = 20; |
|
|
|
this.speedHandTwo = 20; |
|
|
|
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. setting to default ATR and Damage." + e.getMessage()); |
|
|
|
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. setting to default ATR and Damage." + e.getMessage()); |
|
|
@ -1208,7 +1208,7 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
this.defenseRating = (short) (defense + 0.5f); |
|
|
|
this.defenseRating = (short) (defense + 0.5f); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. Setting to Default Defense." + e.getMessage()); |
|
|
|
Logger.info("Mobbase ID " + this.getMobBaseID() + " returned an error. Setting to Default Defense." + e.getMessage()); |
|
|
|
this.defenseRating = (short) this.mobBase.getDefense(); |
|
|
|
this.defenseRating = (short) this.mobBase.getDefenseRating(); |
|
|
|
} |
|
|
|
} |
|
|
|
// calculate defense for equipment
|
|
|
|
// calculate defense for equipment
|
|
|
|
} |
|
|
|
} |
|
|
@ -1359,8 +1359,8 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
mastDam = masteryPercentage; |
|
|
|
mastDam = masteryPercentage; |
|
|
|
|
|
|
|
|
|
|
|
// TODO Correct these
|
|
|
|
// TODO Correct these
|
|
|
|
min = this.mobBase.getMinDmg(); |
|
|
|
min = this.mobBase.getDamageMin(); |
|
|
|
max = this.mobBase.getMaxDmg(); |
|
|
|
max = this.mobBase.getDamageMax(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
if (mainHand) |
|
|
|
if (mainHand) |
|
|
@ -1616,11 +1616,11 @@ public class Mob extends AbstractIntelligenceAgent { |
|
|
|
//TODO set these correctly later
|
|
|
|
//TODO set these correctly later
|
|
|
|
this.rangeHandOne = this.mobBase.getAttackRange(); |
|
|
|
this.rangeHandOne = this.mobBase.getAttackRange(); |
|
|
|
this.rangeHandTwo = -1; |
|
|
|
this.rangeHandTwo = -1; |
|
|
|
this.minDamageHandOne = (int) this.mobBase.getMinDmg(); |
|
|
|
this.minDamageHandOne = (int) this.mobBase.getDamageMin(); |
|
|
|
this.maxDamageHandOne = (int) this.mobBase.getMaxDmg(); |
|
|
|
this.maxDamageHandOne = (int) this.mobBase.getDamageMax(); |
|
|
|
this.minDamageHandTwo = 0; |
|
|
|
this.minDamageHandTwo = 0; |
|
|
|
this.maxDamageHandTwo = 0; |
|
|
|
this.maxDamageHandTwo = 0; |
|
|
|
this.atrHandOne = this.mobBase.getAtr(); |
|
|
|
this.atrHandOne = this.mobBase.getAttackRating(); |
|
|
|
this.defenseRating = (short) this.mobBase.getDefenseRating(); |
|
|
|
this.defenseRating = (short) this.mobBase.getDefenseRating(); |
|
|
|
this.isActive = true; |
|
|
|
this.isActive = true; |
|
|
|
|
|
|
|
|
|
|
|