daggerheart/templates/ui/tooltip/attack.hbs
WBHarry effab8db0c
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
[Rework] ChatMessage Damage (#2079)
* Initial rework

* Removed unneeded method

* Removed outcommented code

* Added migration

* Fixed DamageActions

* Semi-corrected reroll of one of multiple results on a die

* Code improvement

* Added aseDie.rerollResult method to specifically reroll a specific result die in a grouping

* TagTeamDialog somewhat working

* Added migration for TagTeamData

* Fix for mean tagTeamDialog.finish

* .

* Improved migration

* Internalised ChatDamageData.prepareRolls to its own constructor

* Moved DamageTypes to roll.options

* TagTeamDialog fixes to accomodate new flat damage.types structure

* Changed so all default rolls become BaseRolls to access convenience functions and getters

* .

* Fixed so that party.tagTeam now uses a declared damageRollData(ChatDamageData) field. rollData.options.damage is retired.

* Critical damage fixes

* Corrected TagTeamDialog rerender logic when selecting a roll

* Fixed so that DamageTypes are retained and joined together throughout TagTeamDialog

* Removed some remaining types.<>.roll references

* [Rework] Damage and Damage Resource split (#2094)

* Changed the label of ActionSheet damage.resources to Mark Resources

* Fix assigning includeBase

* Localize add resource

* Maybe simplify API

* Fix onRollSimple

* Handle erroring action update differently

---------

Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
2026-07-19 03:02:57 +02:00

36 lines
No EOL
1.4 KiB
Handlebars

<div class="daggerheart dh-style tooltip card-style">
<img class="tooltip-image" src="{{attack.img}}" />
<h2 class="tooltip-title">{{localize attack.name}}</h2>
<div class="tags">
{{#if (lookup config.ACTOR.abilities attack.roll.trait)}}
<div class="tag">
<span>
{{localize "DAGGERHEART.GENERAL.Trait.single"}}
{{#with (lookup config.ACTOR.abilities attack.roll.trait) as | trait |}}
{{localize trait.label}}
{{/with}}
</span>
</div>
{{/if}}
{{#if (lookup config.GENERAL.range attack.range)}}
<div class="tag">
<span>
{{localize "DAGGERHEART.GENERAL.range"}}
{{#with (lookup config.GENERAL.range attack.range) as | range |}}
{{localize range.label}}
{{/with}}
</span>
</div>
{{/if}}
<div class="tag">
<span>{{{damageFormula attack}}} {{{damageSymbols attack.damage.main}}}</span>
</div>
</div>
{{#if description}}
<div class="tooltip-description">{{{description}}}</div>
{{/if}}
<p class="tooltip-hint">
<i class="fa-solid fa-computer-mouse"></i> {{localize "DAGGERHEART.UI.Tooltip.middleClick"}}
</p>
</div>