Changed to use the config labels and src

This commit is contained in:
WBHarry 2025-08-10 10:05:00 +02:00
parent 4d2c72fb84
commit f8d9257cd0
7 changed files with 29 additions and 10 deletions

View file

@ -60,6 +60,17 @@ export default class DHClass extends BaseDataItem {
/* -------------------------------------------- */
get domainData() {
const allDomainData = CONFIG.DH.DOMAIN.allDomains();
return this.domains.map(key => {
const domain = allDomainData[key];
return {
...domain,
label: game.i18n.localize(domain.label)
};
});
}
get hopeFeatures() {
return this.features.filter(x => x.type === CONFIG.DH.ITEM.featureSubTypes.hope).map(x => x.item);
}