Fixed weaponSheet damage section in settings tab

This commit is contained in:
WBHarry 2026-07-18 17:24:25 +02:00
parent 3562ba649f
commit 3dd968f0f1
2 changed files with 23 additions and 22 deletions

View file

@ -228,7 +228,8 @@ export default class DHWeapon extends AttachableItem {
game.i18n.localize(`DAGGERHEART.CONFIG.Burden.${burden}`)
];
for (const { value, type } of [attack.damage.main, ...attack.damage.resources]) {
if (attack.damage.main) {
const { value, type } = attack.damage.main;
const parts = value.custom.enabled ? [game.i18n.localize('DAGGERHEART.GENERAL.custom')] : [value.dice];
if (!value.custom.enabled && value.bonus) parts.push(value.bonus.signedString());
@ -241,7 +242,7 @@ export default class DHWeapon extends AttachableItem {
tags.push(parts.join(''));
}
return tags;
}