forked from GitHub-Mirrors/foundry-sw5e
Super VJ Update
This commit is contained in:
parent
442212bdea
commit
1983b74bde
59 changed files with 4640 additions and 2462 deletions
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li></li>
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.source" value="{{data.source}}" placeholder="{{ localize 'SW5E.Source' }}"/>
|
||||
</li>
|
||||
|
@ -113,10 +113,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{!-- Granted Abilities (TODO) --}}
|
||||
<h3 class="form-header">{{ localize "SW5E.GrantedAbilities" }}</h3>
|
||||
<p class="notification warning">This is still to-do</p>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
{{lookup config.consumableTypes data.consumableType }}
|
||||
</li>
|
||||
|
@ -73,14 +73,8 @@
|
|||
|
||||
{{!-- Item Activation Template --}}
|
||||
{{> "systems/sw5e/templates/items/parts/item-activation.html"}}
|
||||
|
||||
{{!-- Consumable Usage --}}
|
||||
{{#if data.activation.type}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ItemConsumableUsage" }}</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.uses.autoUse" {{checked data.uses.autoUse}}/> {{ localize "SW5E.ItemConsumeOnUse" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.uses.autoDestroy" {{checked data.uses.autoDestroy}}/> {{ localize "SW5E.ItemDestroyEmpty" }}
|
||||
</label>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
{{lookup config.equipmentTypes data.armor.type }}
|
||||
</li>
|
||||
|
@ -57,6 +57,7 @@
|
|||
</select>
|
||||
</div>
|
||||
|
||||
{{#unless isMountable}}
|
||||
{{!-- Equipment Status --}}
|
||||
<div class="form-group stacked">
|
||||
<label>{{ localize "SW5E.ItemEquipmentStatus" }}</label>
|
||||
|
@ -73,33 +74,34 @@
|
|||
<input type="checkbox" name="data.attuned" {{checked data.attuned}}/> {{ localize "SW5E.Attuned" }}
|
||||
</label>
|
||||
</div>
|
||||
|
||||
{{#unless isWeapon }}
|
||||
{{!-- ArmorProperties Formula --}}
|
||||
<div class="form-group stacked weapon-properties">
|
||||
<h4 class="armorproperties-header">
|
||||
{{#unless isWeapon }}{{ localize "SW5E.ArmorProperties" }}{{ else }}{{ localize "SW5E.ItemWeaponProperties" }}{{/unless}}
|
||||
<a class="armorproperties-control add-armorproperties"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<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}}
|
||||
</ol>
|
||||
</div>
|
||||
{{/unless}}
|
||||
{{/unless}}
|
||||
|
||||
{{#unless isWeapon }}
|
||||
{{!-- ArmorProperties Formula --}}
|
||||
<div class="form-group stacked weapon-properties">
|
||||
<h4 class="armorproperties-header">
|
||||
{{#unless isWeapon }}{{ localize "SW5E.ArmorProperties" }}{{ else }}{{ localize "SW5E.ItemWeaponProperties" }}{{/unless}}
|
||||
<a class="armorproperties-control add-armorproperties"><i class="fas fa-plus"></i></a>
|
||||
</h4>
|
||||
<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}}
|
||||
</ol>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
{{!-- Armor Class --}}
|
||||
<div class="form-group">
|
||||
|
@ -109,6 +111,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{#unless isMountable}}
|
||||
{{!-- Dexterity Modifier --}}
|
||||
<div class="form-group">
|
||||
<label>{{ localize "SW5E.ItemEquipmentDexMod" }}</label>
|
||||
|
@ -130,6 +133,21 @@
|
|||
<label>{{ localize "SW5E.ItemEquipmentStealthDisav" }}</label>
|
||||
<input type="checkbox" name="data.stealth" value="1" {{checked data.stealth}}/>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#if isMountable}}
|
||||
{{> 'systems/sw5e/templates/items/parts/item-mountable.html'}}
|
||||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.Speed'}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.speed.value" value="{{data.speed.value}}"
|
||||
placeholder="0" data-dtype="Number">
|
||||
<span class="sep">{{localize 'SW5E.FeetAbbr'}}</span>
|
||||
<input type="text" name="data.speed.conditions"
|
||||
value="{{data.speed.conditions}}">
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<h3 class="form-header">{{ localize "SW5E.ItemEquipmentUsage" }}</h3>
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
{{labels.featType}}
|
||||
</li>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
</li>
|
||||
|
|
|
@ -23,6 +23,21 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{#if isCrewed}}
|
||||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.Cover'}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="data.cover" data-dtype="Number">
|
||||
{{#select data.cover}}
|
||||
<option value="">—</option>
|
||||
{{#each config.cover as |v k|}}
|
||||
<option value="{{k}}">{{v}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{!-- Ability Target --}}
|
||||
<div class="form-group input-select-select">
|
||||
|
@ -99,4 +114,28 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{!-- Consumption --}}
|
||||
<div class="form-group uses-per">
|
||||
<label>{{ localize "SW5E.ConsumeTitle" }}</label>
|
||||
<div class="form-fields">
|
||||
<select name="data.consume.type">
|
||||
{{#select data.consume.type}}
|
||||
<option value=""></option>
|
||||
{{#each config.abilityConsumptionTypes as |name key|}}
|
||||
<option value="{{key}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<select name="data.consume.target">
|
||||
{{#select data.consume.target}}
|
||||
<option value=""></option>
|
||||
{{#each abilityConsumptionTargets as |name key|}}
|
||||
<option value="{{key}}">{{name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
<input type="text" name="data.consume.amount" value="{{data.consume.amount}}" data-dtype="Number"/>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
19
templates/items/parts/item-mountable.html
Normal file
19
templates/items/parts/item-mountable.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.Health'}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.hp.value" value="{{data.hp.value}}"
|
||||
placeholder="0" data-dtype="Number">
|
||||
<span class="sep">/</span>
|
||||
<input type="text" name="data.hp.max" value="{{data.hp.max}}" placeholder="0"
|
||||
data-dtype="Number">
|
||||
<input type="text" name="data.hp.dt" value="{{data.hp.dt}}" data-dtype="Number"
|
||||
placeholder="{{localize 'SW5E.Threshold'}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.HealthConditions'}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.hp.conditions" value="{{data.hp.conditions}}">
|
||||
</div>
|
||||
</div>
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
{{labels.level}}
|
||||
</li>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
<input type="text" name="data.rarity" value="{{data.rarity}}" placeholder="{{ localize 'SW5E.Rarity' }}"/>
|
||||
</li>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<span class="item-status">{{itemStatus}}</span>
|
||||
</div>
|
||||
|
||||
<ul class="summary">
|
||||
<ul class="summary flexrow">
|
||||
<li>
|
||||
{{lookup config.weaponTypes data.weaponType }}
|
||||
</li>
|
||||
|
@ -56,22 +56,26 @@
|
|||
</select>
|
||||
</div>
|
||||
|
||||
{{#unless isMountable}}
|
||||
{{!-- Weapon Status --}}
|
||||
<div class="form-group stacked">
|
||||
<label>{{ localize "SW5E.ItemWeaponStatus" }}</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.proficient" {{checked data.proficient}}/> {{ localize "SW5E.Proficient" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.equipped" {{checked data.equipped}}/> {{ localize "SW5E.Equipped" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.identified" {{checked data.identified}}/> {{ localize "SW5E.Identified" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.attuned" {{checked data.attuned}}/> {{ localize "SW5E.Attuned" }}
|
||||
</label>
|
||||
<div class="form-fields">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.proficient" {{checked data.proficient}}/> {{ localize "SW5E.Proficient" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.equipped" {{checked data.equipped}}/> {{ localize "SW5E.Equipped" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.identified" {{checked data.identified}}/> {{ localize "SW5E.Identified" }}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="data.attuned" {{checked data.attuned}}/> {{ localize "SW5E.Attuned" }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
||||
{{#if sss}}
|
||||
{{!-- Weapon Properties --}}
|
||||
|
@ -85,33 +89,44 @@
|
|||
</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>
|
||||
{{/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}}
|
||||
|
||||
</div>
|
||||
{{#if isMountable}}
|
||||
<div class="form-group">
|
||||
<label>{{localize 'SW5E.ArmorClass'}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.armor.value" value="{{data.armor.value}}"
|
||||
data-dtype="Number">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{> 'systems/dnd5e/templates/items/parts/item-mountable.html'}}
|
||||
{{/if}}
|
||||
|
||||
<h3 class="form-header">{{ localize "SW5E.ItemWeaponUsage" }}</h3>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue