{{!-- {{> 'daggerheart.inventory-item' }} Parameters: - type {string} : The type of items in the list - isActor {boolean} : Passed through to inventory-item partials. - categoryAdversary {string} : Category adversary id. - hideLabels {boolean} : If true, hide label-tags else show label-tags. - hideTags {boolean} : If true, hide simple-tags else show simple-tags. - hideTooltip {boolean} : If true, disables the tooltip on the item image. - hideControls {boolean} : If true, hides the controls inside inventory-item partials. - hideDescription {boolean} : If true, hides the item's description. --}}
  • {{!-- Image --}} {{!-- Name & Tags --}}
    {{!-- Item Name --}}
    {{item.name}}
    {{!-- Weapon Block Start --}} {{#if (eq type 'weapon')}} {{#if (not hideTags)}}
    {{localize (concat 'DAGGERHEART.CONFIG.Traits.' item.system.attack.roll.trait '.name')}}
    {{localize (concat 'DAGGERHEART.CONFIG.Range.' item.system.attack.range '.name')}}
    {{item.system.attack.damage.parts.0.value.dice}}{{#if item.system.attack.damage.parts.0.value.bonus}} + {{item.system.attack.damage.parts.0.value.bonus}}{{/if}} ({{localize (concat 'DAGGERHEART.CONFIG.DamageType.' item.system.attack.damage.parts.0.type '.abbreviation')}})
    {{localize (concat 'DAGGERHEART.CONFIG.Burden.' item.system.burden)}}
    {{else if (not hideLabels)}}
    {{localize (concat 'DAGGERHEART.CONFIG.Range.' item.system.attack.range '.short')}} - {{item.system.attack.damage.parts.0.value.dice}} {{#if item.system.attack.damage.parts.0.value.bonus}} + {{item.system.attack.damage.parts.0.value.bonus}} {{/if}} {{#with (lookup @root.config.GENERAL.damageTypes item.system.attack.damage.parts.0.type)}} {{#each icon}}{{/each}} {{/with}}
    {{/if}} {{/if}} {{!-- Weapon Block End --}} {{!-- Armor Block Start --}} {{#if (eq type 'armor')}} {{#if (not hideTags)}}
    {{localize "DAGGERHEART.ITEMS.Armor.baseScore"}}: {{item.system.baseScore}}
    {{localize "DAGGERHEART.ITEMS.Armor.baseThresholds.base"}}: {{item.system.baseThresholds.major}} / {{item.system.baseThresholds.severe}}
    {{else if (not hideLabels)}}
    {{localize "DAGGERHEART.ITEMS.Armor.baseScore"}}: {{item.system.baseScore}}
    {{/if}} {{/if}} {{!-- Armor Block End --}} {{!-- Domain Card Block Start --}} {{#if (eq type 'domainCard')}} {{#if (not hideTags)}}
    {{localize (concat 'DAGGERHEART.CONFIG.DomainCardTypes.' item.system.type)}}
    {{localize (concat 'DAGGERHEART.GENERAL.Domain.' item.system.domain '.label')}}
    {{localize "DAGGERHEART.ITEMS.DomainCard.recallCost"}}: {{item.system.recallCost}}
    {{else if (not hideLabels)}}
    {{localize (concat 'DAGGERHEART.CONFIG.DomainCardTypes.' item.system.type)}} - {{localize (concat 'DAGGERHEART.GENERAL.Domain.' item.system.domain '.label')}} - {{item.system.recallCost}}
    {{/if}} {{/if}} {{!-- Domain Card Block End --}} {{!-- Effect Block Start --}} {{#if (eq type 'effect')}} {{#if (not hideTags)}}
    {{localize item.parent.system.metadata.label}}: {{item.parent.name}}
    {{#if item.duration.duration}} {{localize 'DAGGERHEART.EFFECTS.Duration.temporary'}} {{else}} {{localize 'DAGGERHEART.EFFECTS.Duration.passive'}} {{/if}}
    {{#each item.statuses as |status|}}
    {{localize (concat 'DAGGERHEART.CONFIG.Condition.' status '.name')}}
    {{/each}}
    {{else if (not hideLabels)}} {{!-- Empty --}} {{/if}} {{/if}} {{!-- Effect Block End --}} {{!-- Action Block Start --}} {{#if (eq type 'action')}} {{#if (not hideTags)}}
    {{localize (concat 'DAGGERHEART.ACTIONS.TYPES.' item.type '.name')}}
    {{localize (concat 'DAGGERHEART.CONFIG.ActionType.' item.actionType)}}
    {{else if (not hideLabels)}} {{!-- Empty --}} {{/if}} {{/if}} {{!-- Action Block End --}}
    {{!-- Controls --}} {{#unless hideControls}}
    {{#if isActor}} {{#if (eq type 'adversary')}} {{/if}} {{else}} {{#if (eq type 'weapon')}} {{else if (eq type 'armor')}} {{else if (eq type 'domainCard')}} {{else if (eq type 'effect')}} {{/if}} {{!-- I had to use the {{not}} helper because otherwise the function is called when rendering --}} {{#unless (not item.toChat)}} {{/unless}} {{/if}}
    {{else}} {{/unless}} {{!-- Description --}} {{#unless hideDescription}}
    {{{item.system.description}}}
    {{/unless}}