Skip to content

Commit

Permalink
feat(item sheet): the configurations of dropdowns has been added into…
Browse files Browse the repository at this point in the history
… the global var context

options for range, target, area, duration, resistance, element and degree
  • Loading branch information
SouOWendel committed Feb 28, 2024
1 parent 022fd9d commit 641194d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions module/sheets/item-sheet.mjs
Expand Up @@ -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,
Expand All @@ -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;
Expand Down

0 comments on commit 641194d

Please sign in to comment.