Fixed companion initial max stress. Cleaned up prepareData flow

This commit is contained in:
WBHarry 2026-04-26 11:08:58 +02:00
parent cfd9950aae
commit afd6cdb0bc
5 changed files with 21 additions and 21 deletions

View file

@ -60,14 +60,4 @@ export default class DhCreature extends BaseDataActor {
}
}
}
prepareDerivedData() {
const minLimitResource = resource => {
if (resource) resource.value = Math.min(resource.value, resource.max);
};
minLimitResource(this.resources.stress);
minLimitResource(this.resources.hitPoints);
minLimitResource(this.resources.hope);
}
}