Start mobequip refactor
This commit is contained in:
@@ -990,10 +990,10 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
||||
return 300;
|
||||
}
|
||||
float range = 8;
|
||||
if (((Mob) this).getEquip().get(1) != null) {
|
||||
range = ((Mob) this).getEquip().get(1).template.item_weapon_max_range;
|
||||
} else if (((Mob) this).getEquip().get(2) != null) {
|
||||
range = ((Mob) this).getEquip().get(2).template.item_weapon_max_range;
|
||||
if (( this).charItemManager.equipped.get(EquipSlotType.RHELD) != null) {
|
||||
range = ((Mob) this).charItemManager.equipped.get(EquipSlotType.RHELD).template.item_weapon_max_range;
|
||||
} else if (((Mob) this).charItemManager.equipped.get(EquipSlotType.LHELD) != null) {
|
||||
range = ((Mob) this).charItemManager.equipped.get(EquipSlotType.LHELD).template.item_weapon_max_range;
|
||||
}
|
||||
|
||||
// TODO Is this clamp from live?
|
||||
|
||||
Reference in New Issue
Block a user