Finished up for version 0.0.6

This commit is contained in:
2021-03-19 05:08:28 +01:00
parent 5c74186066
commit 20565d8409
12 changed files with 680 additions and 133 deletions

View File

@@ -0,0 +1,47 @@
<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>

View File

@@ -21,6 +21,11 @@
<h2>{{res.total}}</h2>
</div>
</div>
{{#if opposite}}
<div class="dice-roll" style="text-align: center; margin-bottom: 0.5rem;">
{{localize "ROLL.OPPOSITE"}}: {{opposite}}
</div>
{{/if}}
</div>
{{#if success}}
<h2 style="border: none; text-align: center; width: 100%; font-weight: bold; color: limegreen;">