forked from GitHub-Mirrors/foundry-sw5e
Weapon & Armor Properties Update
This was now baked into the system so I had to remove our custom code and tweak it for armor.
This commit is contained in:
parent
fd4ad744bc
commit
1be5e907c2
2 changed files with 7 additions and 53 deletions
|
@ -76,32 +76,15 @@
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{#unless isWeapon }}
|
{{!-- Armor Properties --}}
|
||||||
{{!-- ArmorProperties Formula --}}
|
<div class="form-group stacked armor-properties">
|
||||||
<div class="form-group stacked weapon-properties">
|
<label>{{ localize "SW5E.ArmorProperties" }}</label>
|
||||||
<h4 class="armorproperties-header">
|
{{#each config.armorPropertiesTypes as |name prop|}}
|
||||||
{{#unless isWeapon }}{{ localize "SW5E.ArmorProperties" }}{{ else }}{{ localize "SW5E.ItemWeaponProperties" }}{{/unless}}
|
<label class="checkbox">
|
||||||
<a class="armorproperties-control add-armorproperties"><i class="fas fa-plus"></i></a>
|
<input type="checkbox" name="data.properties.{{prop}}" {{checked (lookup ../data.properties prop)}}/> {{ name }}
|
||||||
</h4>
|
</label>
|
||||||
<ol class="armorproperties-parts form-group">
|
|
||||||
{{#each data.armorproperties.parts as |part i| }}
|
|
||||||
<li class="armorproperties-part flexrow" data-armorproperties-part="{{i}}">
|
|
||||||
|
|
||||||
<select name="data.armorproperties.parts.{{i}}.1">
|
|
||||||
{{#select (lookup this "1") }}
|
|
||||||
<option value="">{{ localize "SW5E.None" }}</option>
|
|
||||||
{{#each ../config.armorpropertiesTypes as |name type|}}
|
|
||||||
<option value="{{type}}">{{name}}</option>
|
|
||||||
{{/each}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
<input type="text" name="data.armorproperties.parts.{{i}}.0" value="{{lookup this "0"}}"/>
|
|
||||||
<a class="armorproperties-control delete-armorproperties"><i class="fas fa-minus"></i></a>
|
|
||||||
</li>
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ol>
|
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
|
||||||
|
|
||||||
{{!-- Armor Class --}}
|
{{!-- Armor Class --}}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -77,7 +77,6 @@
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
{{#if sss}}
|
|
||||||
{{!-- Weapon Properties --}}
|
{{!-- Weapon Properties --}}
|
||||||
<div class="form-group stacked weapon-properties">
|
<div class="form-group stacked weapon-properties">
|
||||||
<label>{{ localize "SW5E.ItemWeaponProperties" }}</label>
|
<label>{{ localize "SW5E.ItemWeaponProperties" }}</label>
|
||||||
|
@ -87,34 +86,6 @@
|
||||||
</label>
|
</label>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if isWeapon }}
|
|
||||||
<div class="form-group stacked weapon-properties">
|
|
||||||
{{!-- weaponproperties Formula --}}
|
|
||||||
<h4 class="weaponproperties-header">
|
|
||||||
{{#unless isWeapon }}{{ localize "SW5E.ArmorProperties" }}{{ else }}{{ localize "SW5E.ItemWeaponProperties" }}{{/unless}}
|
|
||||||
<a class="weaponproperties-control add-weaponproperties"><i class="fas fa-plus"></i></a>
|
|
||||||
</h4>
|
|
||||||
<ol class="weaponproperties-parts form-group">
|
|
||||||
{{#each data.weaponproperties.parts as |part i| }}
|
|
||||||
<li class="weaponproperties-part flexrow" data-weaponproperties-part="{{i}}">
|
|
||||||
|
|
||||||
<select name="data.weaponproperties.parts.{{i}}.1">
|
|
||||||
{{#select (lookup this "1") }}
|
|
||||||
<option value="">{{ localize "SW5E.None" }}</option>
|
|
||||||
{{#each ../config.weaponProperties as |name type|}}
|
|
||||||
<option value="{{type}}">{{name}}</option>
|
|
||||||
{{/each}}
|
|
||||||
{{/select}}
|
|
||||||
</select>
|
|
||||||
<input type="text" name="data.weaponproperties.parts.{{i}}.0" value="{{lookup this "0"}}"/>
|
|
||||||
<a class="weaponproperties-control delete-weaponproperties"><i class="fas fa-minus"></i></a>
|
|
||||||
</li>
|
|
||||||
{{/each}}
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{#if isMountable}}
|
{{#if isMountable}}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue