From d158d87620b2a97c8fbaacf2d3b1ff9c59e0c83a Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sun, 8 Jun 2025 22:56:14 +0200 Subject: [PATCH] Fix to damage roll --- module/applications/levelup.mjs | 4 ++-- module/applications/sheets/character.mjs | 2 +- templates/sheets/character/character.hbs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/applications/levelup.mjs b/module/applications/levelup.mjs index 8ca04026..61a85677 100644 --- a/module/applications/levelup.mjs +++ b/module/applications/levelup.mjs @@ -277,8 +277,8 @@ export default class DhlevelUp extends HandlebarsApplicationMixin(ApplicationV2) context.achievements = { proficiency: { - old: this.actor.system.proficiency.value, - new: this.actor.system.proficiency.value + achivementProficiency, + old: this.actor.system.proficiency, + new: this.actor.system.proficiency + achivementProficiency, shown: achivementProficiency > 0 }, damageThresholds: { diff --git a/module/applications/sheets/character.mjs b/module/applications/sheets/character.mjs index 3d076d57..8eaf67aa 100644 --- a/module/applications/sheets/character.mjs +++ b/module/applications/sheets/character.mjs @@ -349,7 +349,7 @@ export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) { static async attackRoll(event, button) { const weapon = await fromUuid(button.dataset.weapon); const damage = { - value: `${this.document.system.proficiency.value}${weapon.system.damage.value}`, + value: `${this.document.system.proficiency}${weapon.system.damage.value}`, type: weapon.system.damage.type }; const modifier = this.document.system.traits[weapon.system.trait].value; diff --git a/templates/sheets/character/character.hbs b/templates/sheets/character/character.hbs index bf1edd2f..95badc15 100644 --- a/templates/sheets/character/character.hbs +++ b/templates/sheets/character/character.hbs @@ -87,7 +87,7 @@
{{> "systems/daggerheart/templates/sheets/parts/attributes.hbs" }} - {{> "systems/daggerheart/templates/sheets/parts/weapons.hbs" primaryWeapon=document.system.primaryWeapon secondaryWeapon=document.system.secondaryWeapon weaponBurden=document.system.getWeaponBurden proficiency=document.system.proficiency.value }} + {{> "systems/daggerheart/templates/sheets/parts/weapons.hbs" primaryWeapon=document.system.primaryWeapon secondaryWeapon=document.system.secondaryWeapon weaponBurden=document.system.getWeaponBurden proficiency=document.system.proficiency }} {{> "systems/daggerheart/templates/sheets/parts/armor.hbs" armor=document.system.armor }}