{{!-- SPDX-FileCopyrightText: 2021 Johannes Loher SPDX-FileCopyrightText: 2021 Gesina Schwalbe SPDX-License-Identifier: MIT --}}
{{!-- TALENT --}}

{{localize 'DS4.ItemTypeTalentPlural'}}

{{#unless (isEmpty itemsByType.talent)}}
    {{#> systems/ds4/templates/sheets/actor/components/item-list-header.hbs type='talent'}} {{!-- rank --}}
    {{localize 'DS4.TalentRank'}}
    {{/systems/ds4/templates/sheets/actor/components/item-list-header.hbs}} {{#each itemsByType.talent as |itemData id|}} {{#> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData}} {{!-- rank --}}
    {{toRomanNumerals itemData.data.rank.total}}
    {{/systems/ds4/templates/sheets/actor/components/item-list-entry.hbs}} {{/each}}
{{/unless}} {{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle' documentType='item' type='talent'}} {{!-- RACIAL ABILITY --}}

{{localize 'DS4.ItemTypeRacialAbilityPlural'}}

{{#unless (isEmpty itemsByType.racialAbility)}}
    {{> systems/ds4/templates/sheets/actor/components/item-list-header.hbs type='racialAbility'}} {{#each itemsByType.racialAbility as |itemData id|}} {{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData}} {{/each}}
{{/unless}} {{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle' documentType='item' type='racialAbility'}} {{!-- LANGUAGE --}}

{{localize 'DS4.ItemTypeLanguagePlural'}}

{{#unless (isEmpty itemsByType.language)}}
    {{> systems/ds4/templates/sheets/actor/components/item-list-header.hbs type='language'}} {{#each itemsByType.language as |itemData id|}} {{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData}} {{/each}}
{{/unless}} {{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle' documentType='item' type='language'}} {{!-- ALPHABET --}}

{{localize 'DS4.ItemTypeAlphabetPlural'}}

{{#unless (isEmpty itemsByType.alphabet)}}
    {{> systems/ds4/templates/sheets/actor/components/item-list-header.hbs type='alphabet'}} {{#each itemsByType.alphabet as |itemData id|}} {{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData}} {{/each}}
{{/unless}} {{> systems/ds4/templates/sheets/shared/components/add-button.hbs title='DS4.UserInteractionAddItemTitle' documentType='item' type='alphabet'}}