Merge branch 'v14-Dev' into feature/1354-Armor-Effect

This commit is contained in:
WBHarry 2026-02-13 13:17:49 +01:00
commit 934659910f
50 changed files with 987 additions and 102 deletions

View file

@ -6,7 +6,7 @@ export default class DHToken extends CONFIG.Token.documentClass {
const valueGroup = game.i18n.localize('TOKEN.BarValues');
const actorModel = typeKey ? game.system.api.data.actors[`Dh${typeKey.capitalize()}`] : null;
const getLabel = path => {
const label = actorModel.schema.getField(path)?.label;
const label = actorModel?.schema.getField(path)?.label;
return label ? game.i18n.localize(label) : path;
};