make hit points usable in resource bar

This commit is contained in:
Johannes Loher 2021-01-07 12:47:38 +01:00
parent cad0d74522
commit b361d2da04
4 changed files with 8 additions and 5 deletions

View file

@ -18,5 +18,7 @@ export class DS4Actor extends Actor<DS4ActorDataType, DS4ItemDataType, DS4Item>
Object.values(combatValues).forEach(
(combatValue: ModifiableData<number>) => (combatValue.total = combatValue.base + combatValue.mod),
);
combatValues.hitPoints.max = combatValues.hitPoints.total;
}
}