Fix weapon sheet

This commit is contained in:
2026-03-08 17:27:59 +01:00
parent 31318317a7
commit e8d84615c5
15 changed files with 572 additions and 47 deletions

View File

@@ -3,14 +3,37 @@
<img class="item-img" src="{{item.img}}" data-edit="img" data-action="editImage" data-tooltip="{{item.name}}" />
{{formInput fields.name value=source.name}}
</div>
<div class="flexrow stats-row">
<div class="form-group">
{{formField systemFields.armorProficiency value=system.armorProficiency name="system.armorProficiency"}}
</div>
<div class="form-group">
{{formField systemFields.weaponProficiency value=system.weaponProficiency name="system.weaponProficiency"}}
</div>
<div class="proficiency-section">
<fieldset class="proficiency-fieldset">
<legend>{{localize "OATHHAMMER.Class.FIELDS.armorProficiency.label"}}</legend>
<div class="proficiency-checkboxes">
{{#each armorTypeChoices as |label key|}}
<label class="proficiency-option">
<input type="checkbox" name="system.armorProficiency"
value="{{key}}"
{{#if (includes system.armorProficiency key)}}checked{{/if}}>
{{localize label}}
</label>
{{/each}}
</div>
</fieldset>
<fieldset class="proficiency-fieldset">
<legend>{{localize "OATHHAMMER.Class.FIELDS.weaponProficiency.label"}}</legend>
<div class="proficiency-checkboxes">
{{#each weaponGroupChoices as |label key|}}
<label class="proficiency-option">
<input type="checkbox" name="system.weaponProficiency"
value="{{key}}"
{{#if (includes system.weaponProficiency key)}}checked{{/if}}>
{{localize label}}
</label>
{{/each}}
</div>
</fieldset>
</div>
<fieldset>
<legend>{{localize "OATHHAMMER.Label.Description"}}</legend>
{{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}