{{!-- 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}} {{!-- 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 --}} {{> systems/ds4/templates/sheets/actor/components/talent-rank-equation.hbs talentRank=itemData.data.rank}} {{/systems/ds4/templates/sheets/actor/components/item-list-entry.hbs}} {{/each}}
{{/unless}} {{> systems/ds4/templates/sheets/actor/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}} {{#each itemsByType.racialAbility as |itemData id|}} {{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData}} {{/each}}
{{/unless}} {{> systems/ds4/templates/sheets/actor/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}} {{#each itemsByType.language as |itemData id|}} {{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData}} {{/each}}
{{/unless}} {{> systems/ds4/templates/sheets/actor/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}} {{#each itemsByType.alphabet as |itemData id|}} {{> systems/ds4/templates/sheets/actor/components/item-list-entry.hbs itemData=itemData}} {{/each}}
{{/unless}} {{> systems/ds4/templates/sheets/actor/components/add-button.hbs title='DS4.UserInteractionAddItemTitle' documentType='item' type='alphabet'}}