Fix the localization function and provide a special placeholder for when the user doesn't have a die assigned to their stat

This commit is contained in:
Oliver-Akins 2024-03-02 00:28:23 -07:00
parent c1ee1a9ef8
commit 2065596686
6 changed files with 71 additions and 40 deletions

View file

@ -87,7 +87,7 @@ export class PlayerSheetv2 extends GenericActorSheet {
name: game.i18n.format(`dotdungeon.skills.${skill}`),
value,
formula: `1` + stat.value + modifierToString(value, { spaces: true }),
rollDisabled: stat.value === `` || value === -1,
rollDisabled: value === -1,
});
};