mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
174 lines
No EOL
9.3 KiB
Handlebars
174 lines
No EOL
9.3 KiB
Handlebars
<li class="inventory-item" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-type="{{type}}">
|
|
<img src="{{item.img}}" class="item-img {{#if isActor}}actor-img{{/if}}" data-action="useItem" {{#if (not noTooltip)}}data-tooltip="{{concat "#item#" item.uuid}}"{{/if}} />
|
|
<div class="item-label">
|
|
{{#if isCompanion}}
|
|
<a class="item-name" data-action="attackRoll">{{item.name}}</a>
|
|
{{else}}
|
|
<div class="item-name">{{item.name}}</div>
|
|
{{/if}}
|
|
{{#if (eq type 'weapon')}}
|
|
<div class="item-tags">
|
|
{{#if isSidebar}}
|
|
<div class="item-labels">
|
|
<div class="label">
|
|
{{!-- {{localize (concat 'DAGGERHEART.CONFIG.Traits.' item.system.attack.roll.trait '.short')}} --}}
|
|
{{localize (concat 'DAGGERHEART.CONFIG.Range.' item.system.attack.range '.short')}}
|
|
<span> - </span>
|
|
{{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')}}) --}}
|
|
{{#with (lookup @root.config.GENERAL.damageTypes item.system.attack.damage.parts.0.type)}}
|
|
{{#each icon}}
|
|
<i class="fa-solid {{this}}"></i>
|
|
{{/each}}
|
|
{{/with}}
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div class="tag">
|
|
{{localize (concat 'DAGGERHEART.CONFIG.Traits.' item.system.attack.roll.trait '.name')}}
|
|
</div>
|
|
<div class="tag">
|
|
{{localize (concat 'DAGGERHEART.CONFIG.Range.' item.system.attack.range '.name')}}
|
|
</div>
|
|
<div class="tag">
|
|
{{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')}})
|
|
</div>
|
|
<div class="tag">
|
|
{{localize (concat 'DAGGERHEART.CONFIG.Burden.' item.system.burden)}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if (eq type 'armor')}}
|
|
{{#if isSidebar}}
|
|
<div class="item-labels">
|
|
<div class="label">
|
|
{{localize "DAGGERHEART.ITEMS.Armor.baseScore"}}:
|
|
{{item.system.baseScore}}
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div class="item-tags">
|
|
<div class="tag">
|
|
{{localize "DAGGERHEART.ITEMS.Armor.baseScore"}}:
|
|
{{item.system.baseScore}}
|
|
</div>
|
|
<div class="tag">
|
|
{{localize "DAGGERHEART.ITEMS.Armor.baseThresholds.base"}}:
|
|
{{item.system.baseThresholds.major}}
|
|
<span>/</span>
|
|
{{item.system.baseThresholds.severe}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{#if (eq type 'domainCard')}}
|
|
{{#if isSidebar}}
|
|
<div class="item-labels">
|
|
<div class="label">
|
|
{{localize (concat 'DAGGERHEART.CONFIG.DomainCardTypes.' item.system.type)}}
|
|
<span> - </span>
|
|
{{localize (concat 'DAGGERHEART.GENERAL.Domain.' item.system.domain '.label')}}
|
|
<span> - </span>
|
|
<span class="recall-value">{{item.system.recallCost}}</span>
|
|
<i class="fa-solid fa-bolt"></i>
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div class="item-tags">
|
|
<div class="tag">
|
|
{{localize (concat 'DAGGERHEART.CONFIG.DomainCardTypes.' item.system.type)}}
|
|
</div>
|
|
<div class="tag">
|
|
{{localize (concat 'DAGGERHEART.GENERAL.Domain.' item.system.domain '.label')}}
|
|
</div>
|
|
<div class="tag">
|
|
<span class="recall-label">{{localize "DAGGERHEART.ITEMS.DomainCard.recallCost"}}: </span>
|
|
<span class="recall-value">{{item.system.recallCost}}</span>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{#if (eq type 'effect')}}
|
|
<div class="item-tags">
|
|
<div class="tag">
|
|
{{localize (concat 'TYPES.Item.' item.parent.type)}}
|
|
<span>: </span>
|
|
{{item.parent.name}}
|
|
</div>
|
|
<div class="tag">
|
|
{{#if item.duration.duration}}
|
|
{{localize 'DAGGERHEART.EFFECTS.Duration.temporary'}}
|
|
{{else}}
|
|
{{localize 'DAGGERHEART.EFFECTS.Duration.passive'}}
|
|
{{/if}}
|
|
</div>
|
|
{{#each item.statuses as |status|}}
|
|
<div class="tag">
|
|
{{localize (concat 'DAGGERHEART.CONFIG.Condition.' status '.name')}}
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if (eq type 'action')}}
|
|
<div class="item-tags">
|
|
<div class="tag">
|
|
{{localize (concat 'DAGGERHEART.ACTIONS.TYPES.' item.type '.name')}}
|
|
</div>
|
|
<div class="tag">
|
|
{{localize (concat 'DAGGERHEART.CONFIG.ActionType.' item.actionType)}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
{{#unless hideControls}}
|
|
{{#if isActor}}
|
|
<div class="controls">
|
|
{{#if (eq type 'actor')}}
|
|
<a data-action="viewActor" data-potential-adversary="{{categoryAdversary}}" data-adversary="{{item.uuid}}" data-tooltip='{{localize "DAGGERHEART.UI.Tooltip.openActorWorld"}}'>
|
|
<i class="fa-solid fa-globe"></i>
|
|
</a>
|
|
{{/if}}
|
|
{{#if (eq type 'adversary')}}
|
|
<a data-action="viewAdversary" data-potential-adversary="{{categoryAdversary}}" data-adversary="{{item.uuid}}" data-tooltip='{{localize "DAGGERHEART.UI.Tooltip.openActorWorld"}}'>
|
|
<i class="fa-solid fa-globe"></i>
|
|
</a>
|
|
<a data-action='deleteAdversary' data-potential-adversary="{{categoryAdversary}}" data-adversary="{{item.uuid}}" data-tooltip='{{localize "CONTROLS.CommonDelete"}}'>
|
|
<i class='fas fa-trash'></i>
|
|
</a>
|
|
{{/if}}
|
|
</div>
|
|
{{else}}
|
|
<div class="controls">
|
|
{{#if (eq type 'weapon')}}
|
|
<a class="{{#unless item.system.equipped}}unequipped{{/unless}}" data-action="toggleEquipItem" data-tooltip="{{#unless item.system.equipped}}{{localize 'CONTROLS.CommonEdit'}}{{else}}{{localize 'DAGGERHEART.UI.Tooltip.unequip'}}{{/unless}}">
|
|
<i class="fa-solid fa-hands"></i>
|
|
</a>
|
|
{{/if}}
|
|
{{#if (eq type 'armor')}}
|
|
<a class="{{#unless item.system.equipped}}unequipped{{/unless}}" data-action="toggleEquipItem" data-tooltip="{{#unless item.system.equipped}}{{localize 'CONTROLS.CommonEdit'}}{{else}}{{localize 'DAGGERHEART.UI.Tooltip.unequip'}}{{/unless}}">
|
|
<i class="fa-solid fa-shield"></i>
|
|
</a>
|
|
{{/if}}
|
|
{{#if (eq type 'domainCard')}}
|
|
{{#unless item.system.inVault}}
|
|
<a data-action="toggleVault" data-tooltip="{{localize 'DAGGERHEART.UI.Tooltip.sendToVault'}}">
|
|
<i class="fa-solid fa-arrow-down"></i>
|
|
</a>
|
|
{{else}}
|
|
<a data-action="toggleVault" data-tooltip="{{localize 'DAGGERHEART.UI.Tooltip.sendToLoadout'}}">
|
|
<i class="fa-solid fa-arrow-up"></i>
|
|
</a>
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
|
<a data-action="toChat" data-tooltip="{{localize 'DAGGERHEART.UI.Tooltip.sendToChat'}}"><i class="fa-regular fa-message"></i></a>
|
|
<a data-action="triggerContextMenu" data-tooltip="{{localize 'DAGGERHEART.UI.Tooltip.moreOptions'}}"><i class="fa-solid fa-ellipsis-vertical"></i></a>
|
|
</div>
|
|
{{/if}}
|
|
{{else}}
|
|
<span></span>
|
|
{{/unless}}
|
|
<div class="item-description">{{#unless isSidebar}}{{{item.system.description}}}{{/unless}}</div>
|
|
</li> |