Convert isReversed to prepared data and add label

This commit is contained in:
Carlos Fernandez 2026-03-10 03:08:12 -04:00
parent 007d1bc055
commit 6165e3f097
6 changed files with 22 additions and 21 deletions

View file

@ -658,6 +658,7 @@ export default class DhCharacter extends DhCreature {
}
prepareDerivedData() {
super.prepareDerivedData();
let baseHope = this.resources.hope.value;
if (this.companion) {
for (let levelKey in this.companion.system.levelData.levelups) {
@ -677,6 +678,7 @@ export default class DhCharacter extends DhCreature {
this.attack.roll.trait = this.rules.attack.roll.trait ?? this.attack.roll.trait;
this.resources.armor = {
label: 'DAGGERHEART.GENERAL.armor',
value: this.armor?.system?.marks?.value ?? 0,
max: this.armorScore,
isReversed: true