From 8785a38a1038758fefa7b878ecaf1bea5553c750 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Mon, 21 Nov 2022 08:34:49 +0100 Subject: [PATCH] Armor categories --- modules/avd12-actor.js | 2 -- modules/avd12-utility.js | 1 + template.json | 1 + templates/items/item-armor-sheet.hbs | 9 +++++++++ templates/items/partial-options-armor-types.hbs | 5 +++++ 5 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 templates/items/partial-options-armor-types.hbs diff --git a/modules/avd12-actor.js b/modules/avd12-actor.js index 8cdac4c..5411833 100644 --- a/modules/avd12-actor.js +++ b/modules/avd12-actor.js @@ -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') { } diff --git a/modules/avd12-utility.js b/modules/avd12-utility.js index 1e0b438..6665186 100644 --- a/modules/avd12-utility.js +++ b/modules/avd12-utility.js @@ -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', diff --git a/template.json b/template.json index f323259..7966d92 100644 --- a/template.json +++ b/template.json @@ -422,6 +422,7 @@ "commonitem" ], "equipped": false, + "category": "", "description": "" }, "shield": { diff --git a/templates/items/item-armor-sheet.hbs b/templates/items/item-armor-sheet.hbs index d2df3eb..232fce4 100644 --- a/templates/items/item-armor-sheet.hbs +++ b/templates/items/item-armor-sheet.hbs @@ -21,6 +21,15 @@ {{> systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs}} +
  • + + +
  • +
  • diff --git a/templates/items/partial-options-armor-types.hbs b/templates/items/partial-options-armor-types.hbs new file mode 100644 index 0000000..4ee7f7b --- /dev/null +++ b/templates/items/partial-options-armor-types.hbs @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file