{{!-- ======================================================================== --}} {{!-- INLINE PARTIAL DEFINITIONS --}} {{!-- ======================================================================== --}} {{!-- TODO: remove duplicate add and delete button definition --}} {{!-- !-- Render an input element for a rank value property of an item. !-- !-- @param item: the item !-- @param property: the key of the property in item.data.data (if 'base', the max value is set automatically) !-- @param disabled: if given, is placed plainly into the input as HTML property; !-- meant to be set to "disabled" to disable the input element --}} {{#*inline "talentRankValue"}} {{/inline}} {{!-- !-- Render a talent list row from a given item. !-- 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 !-- @param partial-block: hand over custom children of the flexbox in the partial block. --}} {{#*inline "talentListEntry"}}
  • {{!-- image --}}
    {{!-- name --}}
    {{!-- acquired rank --}} {{> talentRankValue item=item property='base' localizeString='DS4.TalentRankBase'}} ( of {{!-- maximum acquirable rank --}} {{> talentRankValue item=item property='max' localizeString='DS4.TalentRankMax'}} ) + {{!-- additional ranks --}} {{> talentRankValue item=item property='mod' localizeString='DS4.TalentRankMod'}} = {{!-- derived total rank --}} {{> talentRankValue item=item property='total' localizeString='DS4.TalentRankTotal' disabled='disabled'}}
    {{!-- description --}}
    {{{item.data.data.description}}}
    {{!-- control buttons --}} {{> systems/ds4/templates/actor/partials/overview-control-buttons.hbs }}
  • {{/inline}} {{!-- ======================================================================== --}}
    1. {{!-- image --}}
      {{!-- name --}}
      {{localize 'DS4.ItemName'}}
      {{!-- rank info --}}
      {{localize 'DS4.TalentRank'}}
      {{!-- description --}}
      {{localize 'DS4.HeadingDescription'}}
      {{!-- add button --}} {{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='talent' }}
    2. {{#each itemsByType.talent as |item id|}} {{> talentListEntry item=item}} {{/each}}