From e271c4123947174104e2159468e6e81f0af0cfa0 Mon Sep 17 00:00:00 2001 From: Jacob Lucas Date: Fri, 2 Jul 2021 02:48:55 +0100 Subject: [PATCH] Fixed error that caused max force & tech points to evaluate to NaN --- module/actor/entity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/actor/entity.js b/module/actor/entity.js index 0b22844c..101b7e05 100644 --- a/module/actor/entity.js +++ b/module/actor/entity.js @@ -616,12 +616,12 @@ export default class Actor5e extends Actor { if (!isNPC) { if (forceProgression.levels) { ad.attributes.force.known.max = forceProgression.powersKnown; - ad.attributes.force.points.max = forceProgression.points + Math.max(ad.abilities.wis.mod, ad.abilities.cha.mod); + ad.attributes.force.points.max = forceProgression.points; ad.attributes.force.level = forceProgression.levels; } if (techProgression.levels){ ad.attributes.tech.known.max = techProgression.powersKnown; - ad.attributes.tech.points.max = techProgression.points + ad.abilities.int.mod; + ad.attributes.tech.points.max = techProgression.points; ad.attributes.tech.level = techProgression.levels; } }