{{!-- ======================================================================== --}} {{!-- INLINE PARTIAL DEFINITIONS --}} {{!-- ======================================================================== --}} {{!-- !-- Two templates for displaying values with unit. !-- @param unitDatum: the object to display; must have a value and a unit attribute !-- @param localizationString !-- @param config: the config object --}} {{#*inline "temporalUnit"}}
{{unitDatum.value}}{{lookup config.temporalUnitsAbbr unitDatum.unit}}
{{/inline}} {{#*inline "distanceUnit"}}
{{unitDatum.value}}{{lookup config.distanceUnitsAbbr unitDatum.unit}}
{{/inline}} {{!-- ======================================================================== --}}
  1. {{!-- equipped --}}
    {{localize 'DS4.ItemEquippedAbbr'}}
    {{!-- image --}}
    {{!-- name --}}
    {{localize 'DS4.ItemName'}}
    {{!-- spell type --}}
    {{localize 'DS4.SpellTypeAbbr'}}
    {{!-- spell bonus --}}
    {{localize 'DS4.SpellBonusAbbr'}}
    {{!-- max. distance --}}
    {{!-- duration --}}
    {{!-- cooldown duration --}}
    {{!-- description --}} {{!--
    {{localize 'DS4.Description'}}
    --}} {{!-- add button --}} {{> systems/ds4/templates/actor/partials/overview-add-button.hbs dataType='spell' }}
  2. {{#each itemsByType.spell as |item id|}}
  3. {{!-- image --}}
    {{!-- name --}} {{!-- spell type --}}
    {{!-- spell bonus --}} {{!-- max. distance --}} {{> distanceUnit localizationString='DS4.SpellMaxDistance' unitDatum=item.data.data.maxDistance config=../config}} {{!-- duration --}} {{> temporalUnit localizationString='DS4.SpellDuration' unitDatum=item.data.data.duration config=../config}} {{!-- cooldown duration --}} {{> temporalUnit localizationString='DS4.SpellCooldownDuration' unitDatum=item.data.data.cooldownDuration config=../config}} {{!-- description --}} {{!--
    {{{item.data.data.description}}}
    --}} {{!-- control buttons --}} {{> systems/ds4/templates/actor/partials/overview-control-buttons.hbs }}
  4. {{/each}}