From 3689ff1d5e87bb5de71dc404db5c4d34e2bae2c5 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Sat, 12 Jul 2025 14:29:04 +0200 Subject: [PATCH] Corrected standard resources --- module/documents/actor.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/documents/actor.mjs b/module/documents/actor.mjs index ad1ada90..be2ce5bd 100644 --- a/module/documents/actor.mjs +++ b/module/documents/actor.mjs @@ -548,10 +548,10 @@ export default class DhpActor extends Actor { ); break; default: - updates.actor.resources[`system.resources.${r.type}.value`] = Math.max( + updates.actor.resources[`system.resources.${r.key}.value`] = Math.max( Math.min( - this.system.resources[r.type].value + r.value, - this.system.resources[r.type].maxTotal ?? this.system.resources[r.type].max + this.system.resources[r.key].value + r.value, + this.system.resources[r.key].maxTotal ?? this.system.resources[r.key].max ), 0 );