Initial rework

This commit is contained in:
2024-12-10 17:22:28 +01:00
parent 9b25cc053a
commit 2b9361d3bd
16 changed files with 299 additions and 232 deletions

View File

@@ -1,16 +1,16 @@
<section class="flexcol">
{{#each system.stats as |stat key|}}
<Fieldset class="flexrow">
<legend>{{capitalizeFirst key}}</legend>
<legend><input type="text" value="{{capitalizeFirst stat.name}}" name="system.stats.{{key}}.name"></legend>
<div class="flexrow flex-group-center">
<!-- Die type dropdown -->
<select name="system.stats.{{key}}.value">
<option value="d20" {{#if (eq stat.value 'd20')}}selected{{/if}}>Superb</option>
<option value="d12" {{#if (eq stat.value 'd12')}}selected{{/if}}>Impressive</option>
<option value="d10" {{#if (eq stat.value 'd10')}}selected{{/if}}>Above Average</option>
<option value="d8" {{#if (eq stat.value 'd8')}}selected{{/if}}>Below Average</option>
<option value="d6" {{#if (eq stat.value 'd6')}}selected{{/if}}>Bad</option>
<option value="d4" {{#if (eq stat.value 'd4')}}selected{{/if}}>Terrible</option>
<option value="d20" {{#if (eq stat.value 'd20')}}selected{{/if}}>d20</option>
<option value="d12" {{#if (eq stat.value 'd12')}}selected{{/if}}>d12</option>
<option value="d10" {{#if (eq stat.value 'd10')}}selected{{/if}}>d10</option>
<option value="d8" {{#if (eq stat.value 'd8')}}selected{{/if}}>d8</option>
<option value="d6" {{#if (eq stat.value 'd6')}}selected{{/if}}>d6</option>
<option value="d4" {{#if (eq stat.value 'd4')}}selected{{/if}}>d4</option>
</select>
<!-- Stat rolling and input -->
@@ -22,13 +22,13 @@
<input type="number" name="system.stats.{{key}}.stat" value="{{stat.stat}}" data-dtype="Number"/>
</Fieldset>
<!-- Magic rolling and input -->
<!-- Magic rolling and input
<Fieldset class="flexrow flex-group-center">
<legend>Magic</legend>
<span class="ability-mod rollable" data-roll="1{{stat.value}}x+1d4x+{{stat.stat}}" data-label="Magic Roll for {{key}}" data-key="{{key}}">
<i class="fas fa-dice-d20"></i>
</span>
</Fieldset>
</Fieldset>-->
</div>