Files
fvtt-machine-gods-noxian-ex…/templates/weapon.hbs
T
2026-05-05 13:55:42 +02:00

53 lines
2.3 KiB
Handlebars

<section class="mgne-sheet">
<div class="sheet-header">
<img class="item-portrait" src="{{item.img}}" data-edit="img" data-action="editImage" alt="{{item.name}}" />
<div class="header-fields">
<input type="text" name="name" value="{{source.name}}" />
</div>
</div>
<div class="item-form-grid item-form-grid-three">
<div class="item-form-row">
<label>{{localize "MGNE.Common.Category"}}</label>
<select name="system.category">
{{#each selectOptions.weaponCategories}}
<option value="{{value}}" {{#if (isEqual ../source.system.category value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Damage"}}</label>
<input type="text" name="system.damage" value="{{source.system.damage}}" />
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Range"}}</label>
<input type="text" name="system.range" value="{{source.system.range}}" />
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Properties"}}</label>
<input type="text" name="system.properties" value="{{source.system.properties}}" />
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.UsageDie"}}</label>
<select name="system.usageDie">
{{#each selectOptions.usageDice}}
<option value="{{value}}" {{#if (isEqual ../source.system.usageDie value)}}selected{{/if}}>{{label}}</option>
{{/each}}
</select>
</div>
<div class="item-form-row">
<label>{{localize "MGNE.Common.Quantity"}}</label>
<input type="number" name="system.quantity" value="{{source.system.quantity}}" />
</div>
</div>
<div class="item-check-grid check-grid">
<label><input type="checkbox" name="system.equipped" {{#if source.system.equipped}}checked{{/if}} /> {{localize "MGNE.Common.Equipped"}}</label>
<label><input type="checkbox" name="system.broken" {{#if source.system.broken}}checked{{/if}} /> {{localize "MGNE.Common.Broken"}}</label>
</div>
<div class="inventory-header">
<h3>{{localize "MGNE.Common.Description"}}</h3>
</div>
<fieldset>
{{formInput systemFields.description enriched=(lookup enrichedFields "description") value=system.description name="system.description" toggled=true}}
</fieldset>
</section>