Mod applies to roll not total

Changes:
 + modifier wird auf den wurf gerechnet und nicht auf das gesamt ergebniss (Wichtig für d100 würfe
 + Zeig modifier hinter dem wurf label an
This commit is contained in:
2024-03-28 17:05:28 +01:00
parent 05bed77ce5
commit 4ce31a97df
5 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -125,7 +125,7 @@
{{#each rolls as |roll index|}}
{{#if roll.enabled}}
<tr class="roll-row {{roll.css}}">
<td>{{roll.label}}</td>
<td>{{roll.label}} {{#if (eq index '0')}} {{#if (gt ../b.modifier 0)}}+{{../b.modifier}}{{/if}}{{#if (gt 0 ../b.modifier)}}{{../b.modifier}}{{/if}}{{/if}}</td>
<td class="roll-result">
<span class="roll-total {{#if (contains roll.label "Schaden")}}apply damage{{/if}}{{#if (contains roll.label "Heilung")}}apply heal{{/if}}">{{roll.totalStr}}</span>
<span class="roll-detail">{{roll.result}}</span>