Fixed so Adversary features can be sent to chat. Fixed so ability-card.hbs works again (#525)

This commit is contained in:
WBHarry 2025-08-02 22:33:21 +02:00 committed by GitHub
parent 1df0852df3
commit af40f9d712
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 28 additions and 26 deletions

View file

@ -2,12 +2,12 @@
data-group='{{tabs.features.group}}'>
<div class="feature-section">
{{> 'daggerheart.inventory-items'
title=tabs.features.label
type='feature'
collection=document.system.features
hideControls=true
canCreate=true
showActions=true
title=tabs.features.label
type='feature'
collection=document.system.features
hideContextMenu=true
canCreate=true
showActions=true
}}
</div>
</section>

View file

@ -55,6 +55,7 @@ Parameters:
item=item
type=../type
hideControls=../hideControls
hideContextMenu=../hideContextMenu
isActor=../isActor
categoryAdversary=../categoryAdversary
hideTooltip=../hideTooltip

View file

@ -123,9 +123,11 @@ Parameters:
<i class="fa-regular fa-message"></i>
</a>
{{/if}}
{{#unless hideContextMenu}}
<a data-action="triggerContextMenu" data-tooltip="DAGGERHEART.UI.Tooltip.moreOptions">
<i class="fa-solid fa-ellipsis-vertical"></i>
</a>
{{/unless}}
{{/if}}
</div>
{{/unless}}

View file

@ -15,8 +15,8 @@
<div class="description">{{{description}}}</div>
</details>
<footer class="ability-card-footer">
{{#each actions as |action index|}}
<button class="ability-use-button" data-index="{{index}}">
{{#each actions as |action|}}
<button class="ability-use-button" id="{{action.id}}">
{{action.name}}
</button>
{{#if action.cost.value}}<div class="ability-card-action-cost">{{action.cost.value}} {{action.cost.type}}</div>{{/if}}