Restored HitPoints counting up

This commit is contained in:
WBHarry 2025-06-08 23:05:57 +02:00
parent 9fe29e5136
commit 1d9197748c
7 changed files with 61 additions and 550 deletions

View file

@ -346,7 +346,10 @@ export default class DhpActor extends Actor {
: 0;
const update = {
'system.resources.hitPoints.value': Math.max(this.system.resources.hitPoints.value - hpDamage, 0)
'system.resources.hitPoints.value': Math.min(
this.system.resources.hitPoints.value + hpDamage,
this.system.resources.hitPoints.max
)
};
if (game.user.isGM) {