{{!-- TODO: Refactor to avoid code duplication with items-overview and talents-overview --}} {{!-- ======================================================================== --}} {{!-- INLINE PARTIAL DEFINITIONS --}} {{!-- ======================================================================== --}} {{!-- !-- Render a list row for a base item from a given item. !-- Base item means it just has an image, a description, and a name (and effects). !-- It is a flexbox with a child for each item value of interest. !-- The partial assumes a variable item to be given in the context. !-- !-- @param item: hand over the item to the partial as hash parameter --}} {{#*inline "baseItemListEntry"}}
  • {{!-- image --}}
    {{!-- name --}} {{!-- description --}}
    {{{item.data.data.description}}}
    {{!-- control buttons --}} {{> systems/ds4/templates/actor/partials/overview-control-buttons.hbs }}
  • {{/inline}} {{!-- !-- Render a list header for a base item list entries from a given item. !-- The partial assumes a variable dataType to be given in the context. !-- !-- @param dataType: the string item type for the list --}} {{#*inline "baseItemListHeader"}}
  • {{!-- image --}}
    {{!-- name --}}
    {{localize 'DS4.ItemName'}}
    {{!-- description --}}
    {{localize 'DS4.Description'}}
    {{!-- control buttons placeholder --}}
  • {{/inline}} {{!-- ======================================================================== --}}
      {{> baseItemListHeader dataType='specialCreatureAbility' }} {{#each itemsByType.specialCreatureAbility as |item id|}} {{> baseItemListEntry item=item}} {{/each}}
    {{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='specialCreatureAbility' }}