This repository has been archived on 2023-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
fvtt-avd12/templates/items/partial-common-item-fields.hbs

210 lines
4.9 KiB
Handlebars

<li class='flexrow'>
<h3 class='item-field-label-long'>
Mitigations
</h3>
</li>
<li class='flexrow'>
{{#each system.mitigation as |mitigation key|}}
<div>
<label class='item-field-label-short'>
{{upperFirst key}}
</label>
<input
type='text'
class='item-field-label-short padd-right'
name="system.mitigation.{{key}}.value"
value="{{mitigation.value}}"
data-dtype='Number'
/>
<label>
&nbsp;
</label>
</div>
{{/each}}
</li>
<li class='flexrow'>
<h3 class='item-field-label-long'>
Bonus
</h3>
</li>
<li class='flexrow'>
{{#each system.bonus as |bonus key|}}
<div>
<label class='item-field-label-short'>
{{upperFirst key}}
</label>
<input
type='text'
class='item-field-label-short padd-right'
name="system.bonus.{{key}}.value"
value="{{bonus.value}}"
data-dtype='Number'
/>
<label>
&nbsp;
</label>
</div>
{{/each}}
</li>
{{#if (eq type "weapon")}}
<li class='flexrow'>
<div>
<label class='item-field-label-short'>
Attack Bonus
</label>
<input
type='text'
class='item-field-label-short padd-right'
name="system.attackbonus"
value="{{system.attackbonus}}"
data-dtype='Number'
/>
<label>
&nbsp;
</label>
</div>
</li>
{{/if}}
<li class='flexrow'>
<h3 class='item-field-label-long'>
Focus
</h3>
<input type="checkbox" class="item-field-label-short" name="system.focus.isfocus" {{checked system.focus.isfocus}} />
</li>
{{#if system.focus.isfocus}}
<li class='flexrow'>
<select class="item-field-label-long" type="text" name="system.focus.core" value="{{system.focus.core}}" data-dtype="String">
{{#select system.focus.core}}
{{> systems/fvtt-avd12/templates/items/partial-options-focus-core.hbs}}
{{/select}}
</select>
<select class="item-field-label-long" type="text" name="system.focus.treatment" value="{{system.focus.treatment}}" data-dtype="String">
{{#select system.focus.treatment}}
{{> systems/fvtt-avd12/templates/items/partial-options-focus-treatment.hbs}}
{{/select}}
</select>
<select class="item-field-label-long" type="text" name="system.focus.bond" value="{{system.focus.bond}}" data-dtype="String">
{{#select system.focus.bond}}
{{> systems/fvtt-avd12/templates/items/partial-options-focus-bond.hbs}}
{{/select}}
</select>
</li>
<li class='flexrow'>
<span>Focus Points : {{focusData.focusPoints}} </span>
<span>Burn Chance : {{focusData.burnChance}} </span>
<span>Focus Regen : {{focusData.focusRegen}} </span>
</li>
<li class='flexrow'>
<span>Spell Attack Bonus : {{focusData.spellAttackBonus}} </span>
<span>Spell Damage Bonus : {{focusData.spellDamageBonus}} </span>
</li>
{{/if}}
<li class='flexrow'>
<label class='item-field-label-long'>
Focus Points Bonus
</label>
<input
type='text'
class='item-field-label-short'
name='system.focuspointsbonus'
value="{{system.focuspointsbonus}}"
data-dtype='Number'
/>
<label class='item-field-label-short'>
&nbsp;
</label>
<label class='item-field-label-long'>
Focus Regen Bonus
</label>
<input
type='text'
class='item-field-label-short'
name='system.focusregenbonus'
value="{{system.focusregenbonus}}"
data-dtype='Number'
/>
</li>
<li class='flexrow'>
<label class='item-field-label-long'>
Burn Chance Bonus
</label>
<input
type='text'
class='item-field-label-short'
name='system.burnchancebonus'
value="{{system.burnchancebonus}}"
data-dtype='Number'
/>
</li>
<li class='flexrow'>
<h3 class='item-field-label-long'>
Various
</h3>
</li>
<li class='flexrow'>
<label class='item-field-label-long'>
Weight
</label>
<input
type='text'
class='item-field-label-short'
name='system.weight'
value="{{system.weight}}"
data-dtype='Number'
/>
<label class='item-field-label-short'>
&nbsp;
</label>
<label class='item-field-label-long'>
Cost
</label>
<input
type='text'
class='item-field-label-short'
name='system.cost'
value="{{system.cost}}"
data-dtype='Number'
/>
</li>
<li class='flexrow'>
<label class='item-field-label-long'>
Health
</label>
<input
type='text'
class='item-field-label-short'
name='system.health'
value="{{system.health}}"
data-dtype='Number'
/>
<label class='item-field-label-short'>
&nbsp;
</label>
<label class='item-field-label-long'>
Move speed
</label>
<input
type='text'
class='item-field-label-short'
name='system.movespeed'
value="{{system.movespeed}}"
data-dtype='Number'
/>
</li>