Files
l5rx-chiaroscuro/system/templates/dice/chat-roll.html

69 lines
1.8 KiB
HTML

<div class="l5r5e dice-roll">
{{#if isPublicRoll }}
<div class="l5r5e dice-formula">{{formula}}</div>
{{#if l5r5e.stance}}
<div class="l5r5e dice-stance">
<i class="i_{{l5r5e.stance}}"></i> {{l5r5e.skillName}}
</div>
{{/if}}
<div class="l5r5e dice-result">
{{#if l5r5e.dicesTypes.l5r}}
<div class="l5r5e item-display dices-l5r">
{{#each l5r5e.dices}}
{{#if this.diceTypeL5r}}
{{#each this.rolls}}
<span class="l5r5e chat-dice">{{{this.result}}}</span>
{{/each}}
{{/if}}
{{/each}}
<!-- TODO add Button for Roll & Keep dialog -->
{{#l5r5e.summary}}
<ul>
<li>{{localize "l5r5e.chatdices.successes"}}: {{this.success}}</li>
{{#if explosive}}
<li>{{localize "l5r5e.chatdices.explosives"}}: {{this.explosive}}</li>
{{/if}}
{{#if opportunity}}
<li>{{localize "l5r5e.chatdices.opportunities"}}: {{this.opportunity}}</li>
{{/if}}
{{#if strife}}
<li>{{localize "l5r5e.chatdices.strives"}}: {{this.strife}}</li>
{{/if}}
{{#if difficulty}}
<li>{{localize "l5r5e.chatdices.difficulty"}}: {{this.difficulty}}</li>
{{/if}}
</ul>
{{/l5r5e.summary}}
</div>
{{/if}}
{{#if l5r5e.dicesTypes.std}}
<div class="l5r5e dices-std">
{{#each results}}
{{#each this.rolls}}
<span class="l5r5e chat-dice">{{{this.result}}}</span>
{{/each}}
{{/each}}
</div>
{{{tooltip}}}
<h4 class="l5r5e dice-total dice-total-std">{{total}}</h4>
{{/if}}
</div>
{{/if}}
</div>