|
|
@ -351,9 +351,9 @@ public enum NPCManager { |
|
|
|
int strength = guard.getStatStrCurrent(); |
|
|
|
int strength = guard.getStatStrCurrent(); |
|
|
|
int baseAtr = guard.mobBase.getAttackRating(); |
|
|
|
int baseAtr = guard.mobBase.getAttackRating(); |
|
|
|
if (guard.charItemManager.equipped.get(Enum.EquipSlotType.RHELD) != null) |
|
|
|
if (guard.charItemManager.equipped.get(Enum.EquipSlotType.RHELD) != null) |
|
|
|
guard.atrHandOne = baseAtr + (int) ((strength * 0.5f) + (guard.charItemManager.equipped.get(Enum.EquipSlotType.RHELD).getItemBase().getPercentRequired() * 4) + (guard.charItemManager.equipped.get(Enum.EquipSlotType.RHELD).getItemBase().getPercentRequired() * 3)); |
|
|
|
guard.atrHandOne = baseAtr + (int) ((strength * 0.5f) + ((int)guard.charItemManager.equipped.get(Enum.EquipSlotType.RHELD).template.item_skill_required.values().toArray()[0] * 4) + ((int)guard.charItemManager.equipped.get(Enum.EquipSlotType.RHELD).template.item_skill_required.values().toArray()[0] * 3)); |
|
|
|
else if (guard.charItemManager.equipped.get(Enum.EquipSlotType.LHELD) != null && !ItemTemplate.isShield(guard.charItemManager.equipped.get(Enum.EquipSlotType.LHELD).template)) |
|
|
|
else if (guard.charItemManager.equipped.get(Enum.EquipSlotType.LHELD) != null && !ItemTemplate.isShield(guard.charItemManager.equipped.get(Enum.EquipSlotType.LHELD).template)) |
|
|
|
guard.atrHandTwo = baseAtr + (int) ((strength * 0.5f) + (guard.charItemManager.equipped.get(Enum.EquipSlotType.LHELD).getItemBase().getPercentRequired() * 4) + (guard.charItemManager.equipped.get(Enum.EquipSlotType.LHELD).getItemBase().getPercentRequired() * 3)); |
|
|
|
guard.atrHandTwo = baseAtr + (int) ((strength * 0.5f) + ((int)guard.charItemManager.equipped.get(Enum.EquipSlotType.LHELD).template.item_skill_required.values().toArray()[0] * 4) + ((int)guard.charItemManager.equipped.get(Enum.EquipSlotType.LHELD).template.item_skill_required.values().toArray()[0] * 3)); |
|
|
|
else |
|
|
|
else |
|
|
|
guard.atrHandOne = baseAtr; |
|
|
|
guard.atrHandOne = baseAtr; |
|
|
|
} |
|
|
|
} |
|
|
@ -383,6 +383,7 @@ public enum NPCManager { |
|
|
|
guard.healthMax = 5412; |
|
|
|
guard.healthMax = 5412; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
guard.setHealth(guard.healthMax); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void applyMobbaseEffects(Mob mob) { |
|
|
|
public static void applyMobbaseEffects(Mob mob) { |
|
|
|