mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 07:36:26 +01:00
Corrected standard resources
This commit is contained in:
parent
e294c7906c
commit
3689ff1d5e
1 changed files with 3 additions and 3 deletions
|
|
@ -548,10 +548,10 @@ export default class DhpActor extends Actor {
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
updates.actor.resources[`system.resources.${r.type}.value`] = Math.max(
|
updates.actor.resources[`system.resources.${r.key}.value`] = Math.max(
|
||||||
Math.min(
|
Math.min(
|
||||||
this.system.resources[r.type].value + r.value,
|
this.system.resources[r.key].value + r.value,
|
||||||
this.system.resources[r.type].maxTotal ?? this.system.resources[r.type].max
|
this.system.resources[r.key].maxTotal ?? this.system.resources[r.key].max
|
||||||
),
|
),
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue