{{!-- {{> '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. - noExtensible {boolean} : If true, the inventory-item-content would be collapsable/extendible else it always be showed - 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. - hideResources {boolean} : If true, hides the item's resources. - showActions {boolean} : If true show feature's actions. --}}
  • {{!-- Image --}}
    d20
    {{!-- Name & Tags --}}
    {{!-- Item Name --}}
    {{localize item.name}}
    {{!-- Attack Block Start --}} {{#if (eq type 'attack')}}
    {{localize 'DAGGERHEART.GENERAL.unarmed'}}
    {{localize 'DAGGERHEART.CONFIG.ActionType.action'}}
    {{/if}} {{!-- Attack Block End --}} {{!-- 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}} ( {{#each item.system.attack.damage.parts.0.type as |type|}} {{localize (concat 'DAGGERHEART.CONFIG.DamageType.' type '.abbreviation')}} {{#unless @last}}|{{/unless}} {{/each}} )
    {{localize (concat 'DAGGERHEART.CONFIG.Burden.' item.system.burden)}}
    {{else if (not hideLabels)}}
    {{localize (concat 'DAGGERHEART.CONFIG.Traits.' item.system.attack.roll.trait '.short')}} {{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 --}}
    {{!-- Simple Resource --}} {{#if (and (not hideResources) (eq item.system.resource.type 'simple'))}} {{> "systems/daggerheart/templates/sheets/global/partials/item-resource.hbs"}} {{/if}} {{#if (and (not hideResources) item.system.quantity)}}
    {{/if}} {{!-- 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}} {{#if (hasProperty item "toChat")}} {{/if}} {{/if}}
    {{/unless}}
    {{!-- Description --}} {{#unless hideDescription}}
    {{/unless}} {{!-- Dice Resource --}} {{#if (and (not hideResources) (eq item.system.resource.type 'diceValue'))}} {{> "systems/daggerheart/templates/sheets/global/partials/item-resource.hbs"}} {{/if}} {{!-- Actions Buttons --}} {{#if (and showActions (eq item.type 'feature'))}}
    {{#each item.system.actions as | action |}} {{/each}}
    {{/if}}