mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
* Fix action for items * Cost & Range #1 * remove log * actions * Split methods * Roll classes * Begin damage * g * Actions * before main merge * Fix d20RollDialog costs check * Fix submit on close * Add uses in action dialog * Adversary Attack * 166 - Damage Reduction (#180) * Temp * Fixed Stress Reductions * Changed from index based to object * Fixed stress resources management for DamageReduction * Fix Adversary attack multiplier * Auto add Attack action to newly created weapon * Few fixes * 164 - Add Hope/Fear formula * 163 - Actor Sub Datas (#182) * Added rules/bonuses for all classes and subclasses * More * Add Save * Fix delete action button --------- Co-authored-by: WBHarry <williambjrklund@gmail.com> Co-authored-by: WBHarry <89362246+WBHarry@users.noreply.github.com>
47 lines
No EOL
2.3 KiB
Handlebars
47 lines
No EOL
2.3 KiB
Handlebars
<div class="dice-roll daggerheart chat roll" data-action="expandRoll">
|
|
<div class="dice-flavor">{{localize "DAGGERHEART.Chat.AttackRoll.Title" attack=this.title}}</div>
|
|
<div class="dice-result">
|
|
<div class="dice-formula">{{roll.formula}}</div>
|
|
<div class="dice-tooltip">
|
|
<div class="wrapper">
|
|
<section class="tooltip-part">
|
|
<div class="dice">
|
|
{{#each dice}}
|
|
<header class="part-header flexrow">
|
|
<span class="part-formula">{{number}}{{denomination}}</span>
|
|
<span class="part-total">{{total}}</span>
|
|
</header>
|
|
<div class="flexrow">
|
|
<ol class="dice-rolls">
|
|
{{#each results}}
|
|
<li class="roll die {{../denomination}}{{#if discarded}} discarded{{/if}} min">{{result}}</li>
|
|
{{/each}}
|
|
</ol>
|
|
<div class="attack-roll-advantage-container">{{#if ../advantageState}}{{localize "DAGGERHEART.General.Advantage.Full"}}{{/if}}{{#if (eq ../advantageState false)}}{{localize "DAGGERHEART.General.Disadvantage.Full"}}{{/if}}</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="dice-total">
|
|
<div class="dice-total-value">{{roll.total}}</div>
|
|
</div>
|
|
{{#if (gt targets.length 0)}}
|
|
<div class="target-section">
|
|
{{#each targets as |target|}}
|
|
<div class="dice-total target-container {{#if target.hit}}hit{{else}}miss{{/if}}" data-token="{{target.id}}">
|
|
<img src="{{target.img}}" />
|
|
<div class="target-inner-container">
|
|
{{#if target.hit}}{{localize "Hit"}}{{else}}{{localize "Miss"}}{{/if}}
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
{{/if}}
|
|
<div class="flexrow">
|
|
<button class="duality-action" data-value="{{roll.total}}"><span>Roll Damage</span></button>
|
|
</div>
|
|
</div>
|
|
</div> |