First row of tests and fixes

This commit is contained in:
2026-03-05 22:50:53 +01:00
parent 12458925a1
commit f28df2ae76
23 changed files with 442 additions and 126 deletions
+31
View File
@@ -0,0 +1,31 @@
<form class="awemmy-roll-dialog">
{{! Attribute name + base modifier (read-only) }}
<div class="dialog-row check-label">
<span class="attr-name">{{attrLabel}}</span>
<span class="base-modifier">
{{#if (gt modifier 0)}}+{{modifier}}{{else}}{{modifier}}{{/if}}
</span>
</div>
{{! Situational bonus / penalty }}
<div class="dialog-row">
<label for="awe-bonus">{{localize "AWEMMY.Roll.SituationalBonus"}}</label>
<input type="number" id="awe-bonus" name="bonus" value="0" />
</div>
{{! DC (optional) }}
<div class="dialog-row">
<label for="awe-dc">{{localize "AWEMMY.Roll.DC"}}</label>
<input type="number" id="awe-dc" name="dc" value="{{dc}}" placeholder="—" />
</div>
{{! Roll visibility }}
<div class="dialog-row">
<label for="awe-visibility">{{localize "AWEMMY.Roll.Visibility"}}</label>
<select id="awe-visibility" name="visibility">
{{selectOptions rollModes selected=visibility localize=true}}
</select>
</div>
</form>