From 641194db2125e0e39ea7582f55a5c3803429c3e9 Mon Sep 17 00:00:00 2001 From: "Wendel Henrique (SouOWendel)" Date: Tue, 27 Feb 2024 21:45:35 -0300 Subject: [PATCH] feat(item sheet): the configurations of dropdowns has been added into the global var context options for range, target, area, duration, resistance, element and degree --- module/sheets/item-sheet.mjs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/module/sheets/item-sheet.mjs b/module/sheets/item-sheet.mjs index 1e61cee..69ce6f8 100644 --- a/module/sheets/item-sheet.mjs +++ b/module/sheets/item-sheet.mjs @@ -55,6 +55,12 @@ export class OrdemItemSheet extends ItemSheet { optionProficiency: CONFIG.ordemparanormal.dropdownProficiency, optionDamageType: CONFIG.ordemparanormal.dropdownDamageType, optionPowerType: CONFIG.ordemparanormal.dropdownPowerType, + optionRange: CONFIG.ordemparanormal.dropdownRange, + optionTarget: CONFIG.ordemparanormal.dropdownTarget, + optionArea: CONFIG.ordemparanormal.dropdownArea, + optionDuration: CONFIG.ordemparanormal.dropdownDuration, + optionResistance: CONFIG.ordemparanormal.dropdownResistance, + optionElement: CONFIG.ordemparanormal.dropdownElement, // Attack and Damage Dropdown attributes: CONFIG.ordemparanormal.attributes, @@ -65,8 +71,12 @@ export class OrdemItemSheet extends ItemSheet { // Item's Radiobox categories: CONFIG.ordemparanormal.categories, + degree: CONFIG.ordemparanormal.ritualDegree, }); + // https://foundryvtt.com/api/classes/foundry.abstract.Document.html#updateDocuments + // https://foundryvtt.com/api/classes/foundry.abstract.Document.html#deleteDocuments + // TODO: Fix the incompatibilities (Temporary) // if (itemData.system.types?.damageType) { // itemData.system.formulas.damage.type = itemData.system.types.damageType;