ds4/templates/sheets/item/components/properties/weapon.hbs

32 lines
1.4 KiB
Handlebars
Raw Normal View History

2022-01-21 03:22:17 +01:00
{{!--
SPDX-FileCopyrightText: 2021 Johannes Loher
SPDX-License-Identifier: MIT
--}}
<div class="ds4-item-properties ds4-item-properties--weapon">
<h4 class="ds4-item-properties__title">{{localize 'DS4.ItemPropertiesWeapon'}}</h4>
<div class="form-group">
2022-11-21 03:00:46 +01:00
<label for="system.attackType-{{data._id}}">{{localize "DS4.AttackType"}}</label>
2022-01-21 03:22:17 +01:00
<div class="form-fields">
2022-11-21 03:00:46 +01:00
<select id="system.attackType-{{data._id}}" name="system.attackType" data-dtype="String">
{{#select data.system.attackType}}
2022-01-21 03:22:17 +01:00
{{#each config.i18n.attackTypes as |value key|}}
<option value="{{key}}">{{value}}</option>
{{/each}}
{{/select}}
</select>
</div>
</div>
<div class="form-group">
2022-11-21 03:00:46 +01:00
<label for="system.weaponBonus-{{data._id}}">{{localize "DS4.WeaponBonus"}}</label>
<input id="system.weaponBonus-{{data._id}}" data-dtype="Number" type="number" name="system.weaponBonus"
placeholder="0" value="{{data.system.weaponBonus}}" />
2022-01-21 03:22:17 +01:00
</div>
<div class="form-group">
2022-11-21 03:00:46 +01:00
<label for="system.opponentDefense-{{data._id}}">{{localize "DS4.OpponentDefense"}}</label>
<input id="system.opponentDefense-{{data._id}}" data-dtype="Number" type="number" name="system.opponentDefense"
placeholder="0" value="{{data.system.opponentDefense}}" />
2022-01-21 03:22:17 +01:00
</div>
</div>