Fix to damage roll

This commit is contained in:
WBHarry 2025-06-08 22:56:14 +02:00
parent 5e0ab9458d
commit d158d87620
3 changed files with 4 additions and 4 deletions

View file

@ -277,8 +277,8 @@ export default class DhlevelUp extends HandlebarsApplicationMixin(ApplicationV2)
context.achievements = { context.achievements = {
proficiency: { proficiency: {
old: this.actor.system.proficiency.value, old: this.actor.system.proficiency,
new: this.actor.system.proficiency.value + achivementProficiency, new: this.actor.system.proficiency + achivementProficiency,
shown: achivementProficiency > 0 shown: achivementProficiency > 0
}, },
damageThresholds: { damageThresholds: {

View file

@ -349,7 +349,7 @@ export default class CharacterSheet extends DaggerheartSheet(ActorSheetV2) {
static async attackRoll(event, button) { static async attackRoll(event, button) {
const weapon = await fromUuid(button.dataset.weapon); const weapon = await fromUuid(button.dataset.weapon);
const damage = { 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 type: weapon.system.damage.type
}; };
const modifier = this.document.system.traits[weapon.system.trait].value; const modifier = this.document.system.traits[weapon.system.trait].value;

View file

@ -87,7 +87,7 @@
</div> </div>
<div class="body-section flex3"> <div class="body-section flex3">
{{> "systems/daggerheart/templates/sheets/parts/attributes.hbs" }} {{> "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 }} {{> "systems/daggerheart/templates/sheets/parts/armor.hbs" armor=document.system.armor }}
</div> </div>
</div> </div>