daggerheart/templates/ui/chat/ability-use.hbs
WBHarry 3eda3c4c05
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
[Feature] Action Areas (#1815)
* Functioning setup

* .

* Fixes

* Completed

* Apply suggestions from code review

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

* using function.call instead of function.bind

* Run lint fix on action areas PR (#1820)

* .

* .

* Restructured getTemplateShape to be a lot more readable

* .

* .

* Changed from 'area' to 'areas'

* .

* Moved the areas button to the left

* Fix regression with actions list

* Updated all SRD adversaries

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
2026-04-21 22:27:52 +02:00

29 lines
No EOL
1.1 KiB
Handlebars

<div class="daggerheart chat domain-card">
<img class="card-img" src="{{item.img}}" />
<details class="domain-card-move">
<summary class="domain-card-header">
<div class="domain-label">
<h2 class="title">{{item.name}}</h2>
<ul class="tags">
{{#each item.tags as |tag|}}
<li class="tag"><span>{{tag}}</span></li>
{{/each}}
</ul>
</div>
<i class="fa-solid fa-chevron-down"></i>
</summary>
<div class="description">{{{description}}}</div>
</details>
<footer class="ability-card-footer">
{{#each actions as |action|}}
<button class="ability-use-button" id="{{action.id}}">
<span>{{action.name}}</span>
</button>
{{#if (eq action.systemPath "attack")}}
<button class="ability-use-button" id="{{action.id}}" data-direct-damage="true">
<span>{{localize "DAGGERHEART.GENERAL.damage"}}</span>
</button>
{{/if}}
{{/each}}
</footer>
</div>