62 lines
2.1 KiB
Handlebars
62 lines
2.1 KiB
Handlebars
<div class="vermine-roll-message">
|
|
<h3>{{param.actor.name}} : {{localize "VERMINE.test_of"}} {{param.rollLabel}}</h3>
|
|
|
|
<div class="flexrow">
|
|
<h4>{{localize "VERMINE.difficulty"}}:</h4>
|
|
<span id="difficulty">{{param.difficulty}}</span>
|
|
</div>
|
|
|
|
<div class="reroll-fromroll">
|
|
<h4>{{localize "VERMINE.rerolls_possible"}} : <span id="allowed_reroll">{{param.Reroll}}</span></h4>
|
|
<div class="reroll flexrow">
|
|
<div class="reroll-from-effort flexrow">
|
|
<h4 class="flexcol">
|
|
<span>{{localize "VERMINE.effort"}}</span>
|
|
</h4>
|
|
<input type="range"
|
|
min="0"
|
|
max="{{param.max_effort}}"
|
|
value="0"
|
|
id="effort-reroll">
|
|
</input>
|
|
<button class="grant-reroll" data-tooltip="{{localize 'VERMINE.grant_reroll'}}">
|
|
<span id="granted-reroll">0</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<ul class="flexrow roll-results initial-roll" data-difficulty="{{param.difficulty}}">
|
|
{{#each roll.dice as |dieType index|}}
|
|
{{#each dieType.results as |die index|}}
|
|
{{! Determine dice class and type based on flavor }}
|
|
{{#ifincludes dieType.options.flavor "human"}}
|
|
{{set diceClass="human"}}
|
|
{{set diceTypeVal="human"}}
|
|
{{else ifincludes dieType.options.flavor "adapted"}}
|
|
{{set diceClass="adapted"}}
|
|
{{set diceTypeVal="adapted"}}
|
|
{{else}}
|
|
{{set diceClass="regular"}}
|
|
{{set diceTypeVal="regular"}}
|
|
{{/ifincludes}}
|
|
<li class="roll die flexcol {{diceClass}} {{#if die.success}}success{{/if}}"
|
|
data-dice-type="{{diceTypeVal}}"
|
|
data-result="{{die.result}}">
|
|
<span>{{die.result}}</span>
|
|
</li>
|
|
{{/each}}
|
|
{{/each}}
|
|
</ul>
|
|
|
|
<div class="roll-total flexrow">
|
|
<div class="flexcol">
|
|
<h4>{{localize "VERMINE.success_count"}}:</h4>
|
|
<span id="total">{{roll._total}}</span>
|
|
</div>
|
|
<div class="flexcol">
|
|
<h4>{{localize "VERMINE.success_required"}}:</h4>
|
|
<span id="required">{{param.handicap}}</span>
|
|
</div>
|
|
</div>
|
|
</div> |