Armor categories
This commit is contained in:
parent
0b3a82f4b7
commit
8785a38a10
@ -36,8 +36,6 @@ export class Avd12Actor extends Actor {
|
||||
}
|
||||
|
||||
if (data.type == 'character') {
|
||||
const skills = await Avd12Utility.loadCompendium("fvtt-avd12.skills")
|
||||
data.items = skills.map(i => i.toObject())
|
||||
}
|
||||
if (data.type == 'npc') {
|
||||
}
|
||||
|
@ -157,6 +157,7 @@ export class Avd12Utility {
|
||||
'systems/fvtt-avd12/templates/items/partial-options-weapon-categories.hbs',
|
||||
'systems/fvtt-avd12/templates/items/partial-options-attributes.hbs',
|
||||
'systems/fvtt-avd12/templates/items/partial-options-equipment-types.hbs',
|
||||
'systems/fvtt-avd12/templates/items/partial-options-armor-types.hbs',
|
||||
'systems/fvtt-avd12/templates/items/partial-options-spell-types.hbs',
|
||||
'systems/fvtt-avd12/templates/items/partial-options-spell-levels.hbs',
|
||||
'systems/fvtt-avd12/templates/items/partial-options-spell-schools.hbs',
|
||||
|
@ -422,6 +422,7 @@
|
||||
"commonitem"
|
||||
],
|
||||
"equipped": false,
|
||||
"category": "",
|
||||
"description": ""
|
||||
},
|
||||
"shield": {
|
||||
|
@ -21,6 +21,15 @@
|
||||
|
||||
{{> systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs}}
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Armor type</label>
|
||||
<select class="item-field-label-long" type="text" name="system.category" value="{{system.category}}" data-dtype="String">
|
||||
{{#select system.category}}
|
||||
{{> systems/fvtt-avd12/templates/items/partial-options-armor-types.hbs}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-long">Equipped</label>
|
||||
<input type="checkbox" class="item-field-label-short" name="system.equipped" {{checked system.equipped}} />
|
||||
|
5
templates/items/partial-options-armor-types.hbs
Normal file
5
templates/items/partial-options-armor-types.hbs
Normal file
@ -0,0 +1,5 @@
|
||||
<option value="unarmed">Unarmed</option>
|
||||
<option value="light">Light Armor</option>
|
||||
<option value="medium">Medium Armor</option>
|
||||
<option value="heavy">Heavy Armor</option>
|
||||
<option value="ultraheavy">Ultra-Heavy Armor</option>
|
Reference in New Issue
Block a user