Fix actor sheet modifications/updates

This commit is contained in:
2026-05-22 16:42:01 +02:00
parent c2811c9eb9
commit 78fa804dc5
15 changed files with 131 additions and 40 deletions
+11 -1
View File
@@ -4,7 +4,7 @@
<div class="roll-header">
<span class="roll-attr-name">{{attrLabel}}</span>
<span class="roll-formula-summary">
1d20
<span id="awe-dice-expr">1d20</span>
{{#if (gt modifier 0)}} + {{modifier}}{{else if (lt modifier 0)}} {{abs modifier}}{{/if}}
{{#if (gt attributeBonus 0)}} + <em>{{attributeBonus}}</em>{{else if (lt attributeBonus 0)}} <em>{{abs attributeBonus}}</em>{{/if}}
</span>
@@ -20,6 +20,16 @@
</div>
{{/if}}
{{!-- Roll twice --}}
<div class="dialog-row">
<label for="awe-roll-twice">{{localize "AWEMMY.Roll.RollTwice"}}</label>
<select id="awe-roll-twice" name="rollTwice">
<option value="">{{localize "AWEMMY.Roll.Normal"}}</option>
<option value="higher">{{localize "AWEMMY.Roll.TakeHigher"}}</option>
<option value="lower">{{localize "AWEMMY.Roll.TakeLower"}}</option>
</select>
</div>
{{!-- Situational bonus / penalty --}}
<div class="dialog-row">
<label for="awe-bonus">{{localize "AWEMMY.Roll.SituationalBonus"}}</label>