From 3e7b5cf9d04d83688a88eff0c96fd1d446f2af31 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sat, 11 Apr 2026 22:27:56 +0200 Subject: [PATCH] . --- module/config/itemBrowserConfig.mjs | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/module/config/itemBrowserConfig.mjs b/module/config/itemBrowserConfig.mjs index c2e87c20..0a4154a8 100644 --- a/module/config/itemBrowserConfig.mjs +++ b/module/config/itemBrowserConfig.mjs @@ -8,7 +8,11 @@ export const typeConfig = { { key: 'system.type', label: 'DAGGERHEART.GENERAL.type', - format: type => (type ? `DAGGERHEART.CONFIG.AdversaryType.${type}.label` : '-') + format: type => { + if (!type) return '-'; + + return CONFIG.DH.ACTOR.allAdversaryTypes()[type].label; + } } ], filters: [ @@ -320,11 +324,13 @@ export const typeConfig = { { key: 'system.domains', label: 'DAGGERHEART.GENERAL.Domain.plural', - format: domains => - domains - .map(x => (!x ? null : game.i18n.localize(`DAGGERHEART.GENERAL.Domain.${x}.label`))) + format: domains => { + const config = CONFIG.DH.DOMAIN.allDomains(); + return domains + .map(x => (x ? game.i18n.localize(config[x].label) : null)) .filter(x => x) - .join(', ') + .join(', '); + } } ], filters: [