.dungeon/module/helpers/schemaOptions.mjs

10 lines
No EOL
335 B
JavaScript

export function schemaOptions(document, schemaPath) {
let splitPath = schemaPath.split(`.`);
let tempLocation = document.schema.fields.system;
for (const part of splitPath) {
tempLocation = tempLocation[part].fields
}
return CONFIG.Actor.dataModels.player.schema.fields.weapon.fields.mainHand.fields.damage.options.options;
};