[PR] Adding the ability to target downtime actions. (#1475)

* Adding the ability to target downtime actions.

* No longer using an arbitrary 100 healing. Changing the action's parent
This commit is contained in:
Nick Salyzyn 2025-12-29 13:55:13 -07:00 committed by GitHub
parent e8c541c002
commit 3b7b6258a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 69 additions and 16 deletions

View file

@ -15,9 +15,22 @@
</div>
</details>
{{#each move.actions as | action index |}}
<button class="action-use-button" data-move-index="{{@../key}}" data-action-index="{{index}}" data-move-path="{{../movePath}}" >
<span>{{localize action.name}}</span>
</button>
<div class="action-use-button-parent">
<button class="action-use-button" data-move-index="{{@../key}}" data-action-index="{{index}}" data-move-path="{{../movePath}}" >
<span>{{localize action.name}}</span>
</button>
{{#if move.needsTarget}}
<div class="action-use-target">
<label>{{localize "DAGGERHEART.GENERAL.Bonuses.rest.target"}}:</label>
<select>
<option value="{{../../selfId}}">{{localize "DAGGERHEART.GENERAL.Bonuses.rest.targetSelf"}}</option>
{{#each ../../characters as | character |}}
<option value="{{character.uuid}}">{{character.name}}</option>
{{/each}}
</select>
</div>
{{/if}}
</div>
{{/each}}
{{/each}}
</ul>