{{!-- WEAPONS --}}

{{localize 'DS4.ItemTypeWeaponPlural'}}

{{#unless (isEmpty itemsByType.weapon)}}
    {{#> systems/ds4/templates/actor/partials/item-list-header.hbs isEquipable=true hasQuantity=true}} {{!-- attack type --}}
    {{localize 'DS4.AttackTypeAbbr'}}
    {{!-- weapon bonus --}}
    {{localize 'DS4.WeaponBonusAbbr'}}
    {{!-- opponent defense --}}
    {{localize 'DS4.OpponentDefenseAbbr'}}
    {{/systems/ds4/templates/actor/partials/item-list-header.hbs}} {{#each itemsByType.weapon as |itemData id|}} {{#> systems/ds4/templates/actor/partials/item-list-entry.hbs itemData=itemData isEquipable=true hasQuantity=true}} {{!-- attack type --}}
    {{!-- weapon bonus --}}
    {{ itemData.data.weaponBonus}}
    {{!-- opponent defense --}}
    {{ itemData.data.opponentDefense}}
    {{/systems/ds4/templates/actor/partials/item-list-entry.hbs}} {{/each}}
{{/unless}} {{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='weapon'}} {{!-- ARMOR --}}

{{localize 'DS4.ItemTypeArmorPlural'}}

{{#unless (isEmpty itemsByType.armor)}}
    {{#> systems/ds4/templates/actor/partials/item-list-header.hbs isEquipable=true hasQuantity=true}} {{!-- armor material type --}}
    {{localize 'DS4.ArmorMaterialTypeAbbr'}}
    {{!-- armor type --}}
    {{localize 'DS4.ArmorTypeAbbr'}}
    {{!-- armor value --}}
    {{localize 'DS4.ArmorValueAbbr'}}
    {{/systems/ds4/templates/actor/partials/item-list-header.hbs}} {{#each itemsByType.armor as |itemData id|}} {{#> systems/ds4/templates/actor/partials/item-list-entry.hbs itemData=itemData isEquipable=true hasQuantity=true}} {{!-- armor material type --}}
    {{lookup ../../config.i18n.armorMaterialTypesAbbr itemData.data.armorMaterialType}}
    {{!-- armor type --}}
    {{lookup ../../config.i18n.armorTypesAbbr itemData.dataData.armorType}}
    {{!-- armor value --}}
    {{ itemData.data.armorValue}}
    {{/systems/ds4/templates/actor/partials/item-list-entry.hbs}} {{/each}}
{{/unless}} {{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='armor'}} {{!-- SHIELD --}}

{{localize 'DS4.ItemTypeShieldPlural'}}

{{#unless (isEmpty itemsByType.shield)}}
    {{#> systems/ds4/templates/actor/partials/item-list-header.hbs isEquipable=true hasQuantity=true}} {{!-- armor value --}}
    {{localize 'DS4.ArmorValueAbbr'}}
    {{/systems/ds4/templates/actor/partials/item-list-header.hbs}} {{#each itemsByType.shield as |itemData id|}} {{#> systems/ds4/templates/actor/partials/item-list-entry.hbs itemData=itemData isEquipable=true hasQuantity=true}} {{!-- armor value --}}
    {{itemData.data.armorValue}}
    {{/systems/ds4/templates/actor/partials/item-list-entry.hbs}} {{/each}}
{{/unless}} {{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='shield'}} {{!-- EQUIPMENT --}}

{{localize 'DS4.ItemTypeEquipmentPlural'}}

{{#unless (isEmpty itemsByType.equipment)}}
    {{#> systems/ds4/templates/actor/partials/item-list-header.hbs isEquipable=true hasQuantity=true}} {{!-- storage location --}}
    {{localize 'DS4.StorageLocation'}}
    {{/systems/ds4/templates/actor/partials/item-list-header.hbs}} {{#each itemsByType.equipment as |itemData id|}} {{#> systems/ds4/templates/actor/partials/item-list-entry.hbs itemData=itemData isEquipable=true hasQuantity=true}} {{!-- storage location --}} {{/systems/ds4/templates/actor/partials/item-list-entry.hbs}} {{/each}}
{{/unless}} {{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='equipment'}} {{!-- LOOT --}}

{{localize 'DS4.ItemTypeLootPlural'}}

{{#unless (isEmpty itemsByType.loot)}}
    {{#> systems/ds4/templates/actor/partials/item-list-header.hbs hasQuantity=true}} {{!-- storage location --}}
    {{localize 'DS4.StorageLocation'}}
    {{/systems/ds4/templates/actor/partials/item-list-header.hbs}} {{#each itemsByType.loot as |itemData id|}} {{#> systems/ds4/templates/actor/partials/item-list-entry.hbs itemData=itemData hasQuantity=true}} {{!-- storage location --}} {{/systems/ds4/templates/actor/partials/item-list-entry.hbs}} {{/each}}
{{/unless}} {{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='loot'}}