use of delta.games.lotro.lore.items.Armour in project lotro-tools by dmorcellet.
the class ItemsMerger method updateArmourType.
private void updateArmourType(ArmourType type, Item item) {
if (type != null) {
if (item instanceof Armour) {
Armour armour = (Armour) item;
if (item.getEquipmentLocation() == EquipmentLocation.OFF_HAND) {
if (type == ArmourType.HEAVY)
type = ArmourType.HEAVY_SHIELD;
else if (type == ArmourType.MEDIUM)
type = ArmourType.WARDEN_SHIELD;
else if (type == ArmourType.LIGHT)
type = ArmourType.SHIELD;
}
armour.setArmourType(type);
}
}
}
Aggregations