Armor categories

This commit is contained in:
sladecraven 2022-11-21 08:34:49 +01:00
parent 0b3a82f4b7
commit 8785a38a10
5 changed files with 16 additions and 2 deletions

View File

@ -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') {
}

View File

@ -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',

View File

@ -422,6 +422,7 @@
"commonitem"
],
"equipped": false,
"category": "",
"description": ""
},
"shield": {

View File

@ -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}} />

View 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>