FIX: formula lables for attacks and weapons

This commit is contained in:
Joaquin Pereyra 2025-08-10 21:30:54 -03:00
parent 9d0cfdd927
commit e154d8610c
4 changed files with 22 additions and 18 deletions

View file

@ -144,7 +144,8 @@ export default class DHArmor extends AttachableItem {
* @returns {(string | { value: string, icons: string[] })[]} An array of localized strings and damage label objects.
*/
_getLabels() {
const labels = [`${game.i18n.localize('DAGGERHEART.ITEMS.Armor.baseScore')}: ${this.baseScore}`];
const labels = [];
if(this.baseScore) labels.push(`${game.i18n.localize('DAGGERHEART.ITEMS.Armor.baseScore')}: ${this.baseScore}`)
return labels;
}