2024-09-22 16:28:59 +02:00
|
|
|
<section class="flexcol">
|
|
|
|
{{#each system.stats as |stat key|}}
|
|
|
|
<Fieldset class="flexrow">
|
2024-12-10 17:22:28 +01:00
|
|
|
<legend><input type="text" value="{{capitalizeFirst stat.name}}" name="system.stats.{{key}}.name"></legend>
|
2024-09-22 16:28:59 +02:00
|
|
|
<div class="flexrow flex-group-center">
|
|
|
|
<!-- Die type dropdown -->
|
|
|
|
<select name="system.stats.{{key}}.value">
|
2024-12-10 17:22:28 +01:00
|
|
|
<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>
|
2024-09-22 16:28:59 +02:00
|
|
|
</select>
|
|
|
|
|
|
|
|
<!-- Stat rolling and input -->
|
|
|
|
<Fieldset class="flexrow flex-group-center">
|
|
|
|
<legend>Stat</legend>
|
|
|
|
<span class="ability-mod rollable" data-roll="1{{stat.value}}x+{{stat.stat}}" data-label="Stat Roll for {{key}}" data-key="{{key}}">
|
|
|
|
<i class="fas fa-dice-d20"></i>
|
|
|
|
</span>
|
|
|
|
<input type="number" name="system.stats.{{key}}.stat" value="{{stat.stat}}" data-dtype="Number"/>
|
|
|
|
</Fieldset>
|
|
|
|
|
2024-12-10 17:22:28 +01:00
|
|
|
<!-- Magic rolling and input
|
2024-09-22 16:28:59 +02:00
|
|
|
<Fieldset class="flexrow flex-group-center">
|
|
|
|
<legend>Magic</legend>
|
2024-09-27 23:26:54 +02:00
|
|
|
<span class="ability-mod rollable" data-roll="1{{stat.value}}x+1d4x+{{stat.stat}}" data-label="Magic Roll for {{key}}" data-key="{{key}}">
|
2024-09-22 16:28:59 +02:00
|
|
|
<i class="fas fa-dice-d20"></i>
|
|
|
|
</span>
|
2024-12-10 17:22:28 +01:00
|
|
|
</Fieldset>-->
|
2024-09-22 16:28:59 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</Fieldset>
|
|
|
|
{{/each}}
|
|
|
|
</section>
|