From 9296b8fcc2fb28cfde80c7a53c7b466b116dedd6 Mon Sep 17 00:00:00 2001 From: WBHarry <89362246+WBHarry@users.noreply.github.com> Date: Sun, 22 Feb 2026 14:10:06 +0100 Subject: [PATCH] Fixed so that scars are applied to hope.max during derived data prep (#1673) --- module/data/actor/character.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/data/actor/character.mjs b/module/data/actor/character.mjs index aca87c5c..10fba63c 100644 --- a/module/data/actor/character.mjs +++ b/module/data/actor/character.mjs @@ -670,7 +670,7 @@ export default class DhCharacter extends DhCreature { }; const globalHopeMax = game.settings.get(CONFIG.DH.id, CONFIG.DH.SETTINGS.gameSettings.Homebrew).maxHope; - this.resources.hope.max = globalHopeMax - this.scars; + this.resources.hope.max = globalHopeMax; this.resources.hitPoints.max += this.class.value?.system?.hitPoints ?? 0; /* Companion Related Data */ @@ -694,6 +694,7 @@ export default class DhCharacter extends DhCreature { } } + this.resources.hope.max -= this.scars; this.resources.hope.value = Math.min(baseHope, this.resources.hope.max); this.attack.roll.trait = this.rules.attack.roll.trait ?? this.attack.roll.trait;