Compare commits

..

1 commit
1.1.0 ... main

Author SHA1 Message Date
264b83bc88 add metadata validation for actor and item processing 2026-04-13 22:23:20 +02:00
2 changed files with 4 additions and 3 deletions

View file

@ -4,8 +4,8 @@
"description": "Adds a browser to easily find and copy Active Effect data paths in Daggerheart.", "description": "Adds a browser to easily find and copy Active Effect data paths in Daggerheart.",
"url": "https://git.geeks.gay/cosmo/dh-path-browser", "url": "https://git.geeks.gay/cosmo/dh-path-browser",
"manifest": "https://git.geeks.gay/cosmo/dh-path-browser/raw/branch/main/module.json", "manifest": "https://git.geeks.gay/cosmo/dh-path-browser/raw/branch/main/module.json",
"download": "https://git.geeks.gay/cosmo/dh-path-browser/releases/download/1.1.0/dh-path-browser.zip", "download": "https://git.geeks.gay/cosmo/dh-path-browser/releases/download/1.1.1/dh-path-browser.zip",
"version": "1.1.0", "version": "1.1.1",
"compatibility": { "compatibility": {
"minimum": "13", "minimum": "13",
"verified": "14" "verified": "14"

View file

@ -143,7 +143,7 @@ export class DhPathBrowserApp extends HandlebarsApplicationMixin(ApplicationV2)
// Process Actors // Process Actors
for (const [key, model] of Object.entries(game.system.api.models.actors)) { for (const [key, model] of Object.entries(game.system.api.models.actors)) {
if (ignoredActorKeys.includes(key)) continue; if (ignoredActorKeys.includes(key) || !model?.metadata) continue;
const group = game.i18n.localize(model.metadata.label); const group = game.i18n.localize(model.metadata.label);
const attributes = CONFIG.Token.documentClass.getTrackedAttributes(model.metadata.type); const attributes = CONFIG.Token.documentClass.getTrackedAttributes(model.metadata.type);
@ -169,6 +169,7 @@ export class DhPathBrowserApp extends HandlebarsApplicationMixin(ApplicationV2)
// Process Items // Process Items
for (const [key, model] of Object.entries(game.system.api.models.items)) { for (const [key, model] of Object.entries(game.system.api.models.items)) {
if (!model?.metadata) continue;
const group = `${game.i18n.localize('DOCUMENT.Item')} (${game.i18n.localize(model.metadata.label)})`; const group = `${game.i18n.localize('DOCUMENT.Item')} (${game.i18n.localize(model.metadata.label)})`;
const bonuses = getAllLeaves(model, model.schema.fields.bonuses, group); const bonuses = getAllLeaves(model, model.schema.fields.bonuses, group);