mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
* Restructured all the files * Moved build/daggerheart.js to ./daggerheart.js. Changed rollup to use the css file instead of the less * Restored build/ folder * Mvoed config out form under application * Moved roll.mjs to module/dice and renamed to dhRolls.mjs * Update module/canvas/placeables/_module.mjs Co-authored-by: joaquinpereyra98 <24190917+joaquinpereyra98@users.noreply.github.com> * Le massive export update * Removed unncessary import --------- Co-authored-by: joaquinpereyra98 <24190917+joaquinpereyra98@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> |