77 lines
2.4 KiB
Handlebars
77 lines
2.4 KiB
Handlebars
<div class="dice-roll m5-roll">
|
|
<div class="flexcol">
|
|
<h3 class="roll-title">{{res.label}}</h3>
|
|
|
|
<table>
|
|
<tbody>
|
|
{{#if (eq iType "spell")}}
|
|
<tr>
|
|
<td>{{localize "midgard5.actor-ap"}}</td>
|
|
<td class="roll-spell-details">{{i.ap}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{localize "midgard5.spell-castDuration"}}</td>
|
|
<td class="roll-spell-details">{{i.castDuration}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{localize "midgard5.spell-range"}}</td>
|
|
<td class="roll-spell-details">{{i.range}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{localize "midgard5.spell-effectTarget"}}</td>
|
|
<td class="roll-spell-details">{{localize (m5concat "midgard5.spell-target-" i.effectTarget)}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{localize "midgard5.spell-effectArea"}}</td>
|
|
<td class="roll-spell-details">{{i.effectArea}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{localize "midgard5.spell-effectDuration"}}</td>
|
|
<td class="roll-spell-details">{{i.effectDuration}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{localize "midgard5.spell-origin"}}</td>
|
|
<td class="roll-spell-details">{{i.origin}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{localize "midgard5.spell-type"}}</td>
|
|
<td class="roll-spell-details">{{localize (m5concat "midgard5.spell-type-" i.type)}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{localize "midgard5.spell-process"}}</td>
|
|
<td class="roll-spell-details">{{localize (m5concat "midgard5.spell-process-" i.process)}}</td>
|
|
</tr>
|
|
{{/if}}
|
|
|
|
{{#if (eq iType "kampfkunst")}}
|
|
<tr>
|
|
<td>{{localize "midgard5.actor-ap"}}</td>
|
|
<td class="roll-spell-details">{{i.ap}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>{{localize "midgard5.kampfkunst-type"}}</td>
|
|
<td class="roll-spell-details">{{localize (m5concat "midgard5.kampfkunst-type-" i.type)}}</td>
|
|
</tr>
|
|
{{#if (eq i.type "angriff")}}
|
|
<tr>
|
|
<td>{{localize "midgard5.kampfkunst-variante"}}</td>
|
|
<td class="roll-spell-details">{{localize (m5concat "midgard5.kampfkunst-variante-" i.variante)}}</td>
|
|
</tr>
|
|
{{/if}}
|
|
{{/if}}
|
|
|
|
{{#each rolls as |roll index|}}
|
|
{{#if roll.enabled}}
|
|
<tr class="roll-row {{roll.css}}">
|
|
<td>{{roll.label}}</td>
|
|
<td class="roll-result">
|
|
<span class="roll-total">{{roll.totalStr}}</span>
|
|
<span class="roll-detail">{{roll.result}}</span>
|
|
</td>
|
|
</tr>
|
|
{{/if}}
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div> |