|
|
|
@ -1127,6 +1127,26 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1127,6 +1127,26 @@ public class Mob extends AbstractIntelligenceAgent {
|
|
|
|
|
this.defenseRating = 0; |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
this.atrHandOne = (short) this.mobBase.getAttackRating(); |
|
|
|
|
this.minDamageHandOne = (short) this.mobBase.getMinDmg(); |
|
|
|
|
this.maxDamageHandOne = (short) this.mobBase.getMaxDmg(); |
|
|
|
|
this.rangeHandOne = 6.5f; |
|
|
|
|
this.speedHandOne = 20; |
|
|
|
|
|
|
|
|
|
this.atrHandTwo = (short) this.mobBase.getAttackRating(); |
|
|
|
|
this.minDamageHandTwo = (short) this.mobBase.getMinDmg(); |
|
|
|
|
this.maxDamageHandTwo = (short) this.mobBase.getMaxDmg(); |
|
|
|
|
this.rangeHandTwo = 6.5f; |
|
|
|
|
this.speedHandTwo = 20; |
|
|
|
|
|
|
|
|
|
if(this.equip.get(MBServerStatics.SLOT_MAINHAND) != null){ |
|
|
|
|
//has mainhand weapon to calculate
|
|
|
|
|
calculateAtrDamageForWeapon(this.equip.get(MBServerStatics.SLOT_MAINHAND), true); |
|
|
|
|
} |
|
|
|
|
if(this.equip.get(MBServerStatics.SLOT_OFFHAND) != null && !this.equip.get(MBServerStatics.SLOT_OFFHAND).getItemBase().isShield()){ |
|
|
|
|
//has offhand weapon to calculate
|
|
|
|
|
calculateAtrDamageForWeapon(this.equip.get(MBServerStatics.SLOT_OFFHAND), false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
calculateAtrDamageForWeapon(this.equip.get(MBServerStatics.SLOT_MAINHAND), true); |
|
|
|
@ -1666,6 +1686,7 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1666,6 +1686,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
|
|
|
|
} |
|
|
|
|
NPCManager.applyMobbaseEffects(this); |
|
|
|
|
NPCManager.applyEquipmentResists(this); |
|
|
|
|
NPCManager.applyMobbaseSkills(this); |
|
|
|
|
this.recalculateStats(); |
|
|
|
|
this.setHealth(this.healthMax); |
|
|
|
|
|
|
|
|
|