Working on the spells panel, which resulted in a lot of weird structural changes that aren't *really* functional yet

This commit is contained in:
Oliver-Akins 2024-01-07 22:27:26 -07:00
parent 227029ffcd
commit dfc51a5899
31 changed files with 499 additions and 84 deletions

View file

@ -7,5 +7,6 @@
* @returns {"open"|null} The HTML insertion indicating the details is expanded
*/
export function detailsExpanded(expanded, collapseId) {
console.log(`.dungeon |`, collapseId, expanded)
return expanded.has(collapseId) ? "open" : null;
};

View file

@ -1 +1,10 @@
export function schemaOptions() {};
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;
};