diff --git a/module/system/config.js b/module/system/config.js index 92dd123..cce742e 100644 --- a/module/system/config.js +++ b/module/system/config.js @@ -190,6 +190,7 @@ BOL.itemProperties2 = { "activable" : "BOL.itemProperty.activable", "powder" : "BOL.itemProperty.powder", "damage" : "BOL.itemProperty.damage" + } BOL.itemStats = { diff --git a/module/system/templates.js b/module/system/templates.js index aabc003..8fab31f 100644 --- a/module/system/templates.js +++ b/module/system/templates.js @@ -29,6 +29,7 @@ export const preloadHandlebarsTemplates = async function () { "systems/bol/templates/item/parts/properties/feature/flaw-properties.hbs", "systems/bol/templates/item/parts/properties/feature/origin-properties.hbs", "systems/bol/templates/item/parts/properties/feature/race-properties.hbs", + "systems/bol/templates/item/parts/properties/feature/spell-properties.hbs", // DIALOGS "systems/bol/templates/roll/parts/roll-dialog-modifiers.hbs", "systems/bol/templates/roll/parts/roll-dialog-attribute.hbs" diff --git a/templates/item/item-sheet.hbs b/templates/item/item-sheet.hbs index 35bff17..122fc41 100644 --- a/templates/item/item-sheet.hbs +++ b/templates/item/item-sheet.hbs @@ -23,10 +23,10 @@ {{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
- {{#if (equals item.type "item")}} + {{#if (eq item.type "item")}} {{> "systems/bol/templates/item/parts/properties/item-properties.hbs"}} {{/if}} - {{#if (equals item.type "feature")}} + {{#if (eq item.type "feature")}} {{> "systems/bol/templates/item/parts/properties/feature-properties.hbs"}} {{/if}}
diff --git a/templates/item/parts/properties/item-properties.hbs b/templates/item/parts/properties/item-properties.hbs index 57260e1..fd69f4c 100644 --- a/templates/item/parts/properties/item-properties.hbs +++ b/templates/item/parts/properties/item-properties.hbs @@ -11,12 +11,15 @@ -{{#if (equals data.category "equipment")}} +{{#if (eq data.category "equipment")}} {{> "systems/bol/templates/item/parts/properties/item/equipment-properties.hbs"}} {{/if}} -{{#if (equals data.category "capacity")}} +{{#if (eq data.category "capacity")}} {{> "systems/bol/templates/item/parts/properties/item/capacity-properties.hbs"}} {{/if}} -{{#if (equals data.category "vehicle")}} +{{#if (eq data.category "vehicle")}} {{> "systems/bol/templates/item/parts/properties/item/vehicle-properties.hbs"}} {{/if}} +{{#if (eq data.category "spell")}} + {{> "systems/bol/templates/item/parts/properties/item/spell-properties.hbs"}} +{{/if}} diff --git a/templates/item/parts/properties/item/spell-properties.hbs b/templates/item/parts/properties/item/spell-properties.hbs new file mode 100644 index 0000000..b96b439 --- /dev/null +++ b/templates/item/parts/properties/item/spell-properties.hbs @@ -0,0 +1,7 @@ +

{{localize "BOL.ui.spellProperties"}}

+
+
+ + +
+
\ No newline at end of file