Added unarmed strike in sidebar

This commit is contained in:
WBHarry 2025-07-19 13:59:58 +02:00
parent 87f29c3bb3
commit be625ecdc7
4 changed files with 27 additions and 4 deletions

View file

@ -92,6 +92,9 @@
<side-line-div></side-line-div>
</div>
<ul class="items-sidebar-list">
{{#if document.system.usedUnarmed}}
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=document.system.usedUnarmed type='attack' isSidebar=true}}
{{/if}}
{{#each document.items as |item|}}
{{#if item.system.equipped}}
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=item type=item.type isSidebar=true}}

View file

@ -5,7 +5,7 @@
{{#if isCompanion}}
<a class="item-name" data-action="attackRoll">{{item.name}}</a>
{{else}}
<div class="item-name">{{item.name}}</div>
<div class="item-name">{{localize item.name}}</div>
{{/if}}
{{#if (eq type 'weapon')}}
<div class="item-tags">
@ -125,6 +125,16 @@
</div>
</div>
{{/if}}
{{#if (eq type 'attack')}}
<div class="item-tags">
<div class="tag">
{{localize 'DAGGERHEART.GENERAL.unarmed'}}
</div>
<div class="tag">
{{localize 'DAGGERHEART.CONFIG.ActionType.action'}}
</div>
</div>
{{/if}}
</div>
{{#if (and (not isSidebar) (eq item.system.resource.type 'simple'))}}
{{> "systems/daggerheart/templates/sheets/global/partials/item-resource.hbs"}}