48 lines
2.0 KiB
HTML
48 lines
2.0 KiB
HTML
<div class="kopparhavet roll-item">
|
|
<div class="border">
|
|
<h3>{{localize name}}</h3>
|
|
|
|
{{#if closed}}
|
|
<div style="text-align: center; margin-bottom: 0.5rem;">
|
|
{{localize "ROLL.CLOSED"}}: {{closed}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if opened}}
|
|
<div style="text-align: center; margin-bottom: 0.5rem;">
|
|
{{localize "ROLL.OPENED"}}: {{opened}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="roll" style="padding-bottom: 10px; border-bottom: 1px solid #782e22; margin-bottom: 5px;">
|
|
|
|
{{#each res as |res1 key|}}
|
|
<div class="dice-roll">
|
|
<div class="dice-result">
|
|
{{#if showFormula}}
|
|
<div class="dice-formula-kh">{{res1.result.formula}}</div>
|
|
{{/if}}
|
|
{{#if res1.success}}
|
|
<div style="border: none; text-align: center; width: 100%; font-weight: bold; color: limegreen;">
|
|
{{res1.name}}: {{res1.result.total}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if res1.failure}}
|
|
<div style="border: none; text-align: center; width: 100%; font-weight: bold; color: darkred;">
|
|
{{res1.name}}: {{res1.result.total}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
|
|
</div>
|
|
<h2 style="border: none; text-align: center; width: 100%; font-weight: bold;">
|
|
{{#iff result '==' "0"}}{{localize "ROLL.SUBPAR"}}{{/iff}}
|
|
{{#iff result '==' "1"}}{{localize "ROLL.LOW"}}{{/iff}}
|
|
{{#iff result '==' "2"}}{{localize "ROLL.LIMITED"}}{{/iff}}
|
|
{{#iff result '==' "3"}}{{localize "ROLL.GOOD"}}{{/iff}}
|
|
{{#iff result '==' "4"}}{{localize "ROLL.SUPERIOR"}}{{/iff}}
|
|
</h2>
|
|
</div>
|
|
</div>
|