Search in sources :

Example 21 with Armour

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);
        }
    }
}
Also used : Armour(delta.games.lotro.lore.items.Armour)

Aggregations

Armour (delta.games.lotro.lore.items.Armour)21 Item (delta.games.lotro.lore.items.Item)15 EquipmentLocation (delta.games.lotro.lore.items.EquipmentLocation)10 Weapon (delta.games.lotro.lore.items.Weapon)10 BasicStatsSet (delta.games.lotro.character.stats.BasicStatsSet)9 ArmourType (delta.games.lotro.lore.items.ArmourType)8 FixedDecimalsInteger (delta.games.lotro.utils.FixedDecimalsInteger)7 CharacterClass (delta.games.lotro.common.CharacterClass)6 WeaponType (delta.games.lotro.lore.items.WeaponType)6 ItemQuality (delta.games.lotro.lore.items.ItemQuality)5 STAT (delta.games.lotro.character.stats.STAT)3 DamageType (delta.games.lotro.lore.items.DamageType)3 Legendary (delta.games.lotro.lore.items.legendary.Legendary)3 LegendaryItem (delta.games.lotro.lore.items.legendary.LegendaryItem)3 HashMap (java.util.HashMap)3 SlicesBasedItemStatsProvider (delta.games.lotro.lore.items.stats.SlicesBasedItemStatsProvider)2 ArrayList (java.util.ArrayList)2 ComboBoxController (delta.common.ui.swing.combobox.ComboBoxController)1 FloatEditionController (delta.common.ui.swing.text.FloatEditionController)1 IntegerEditionController (delta.common.ui.swing.text.IntegerEditionController)1