From e271c4123947174104e2159468e6e81f0af0cfa0 Mon Sep 17 00:00:00 2001 From: Jacob Lucas Date: Fri, 2 Jul 2021 02:48:55 +0100 Subject: [PATCH 1/2] 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; } } From 7a18055c18f18d51c9b29197f0d129665c64699e Mon Sep 17 00:00:00 2001 From: Jacob Lucas Date: Fri, 2 Jul 2021 02:49:05 +0100 Subject: [PATCH 2/2] Bump max version to latest --- system.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system.json b/system.json index ac8b4dc2..ae9d48c4 100644 --- a/system.json +++ b/system.json @@ -152,7 +152,7 @@ "primaryTokenAttribute": "attributes.hp", "secondaryTokenAttribute": null, "minimumCoreVersion": "0.8.2", - "compatibleCoreVersion": "0.8.7", + "compatibleCoreVersion": "0.8.8", "url": "https://github.com/unrealkakeman89/sw5e", "manifest": "https://raw.githubusercontent.com/unrealkakeman89/sw5e/master/system.json", "download": "https://github.com/unrealkakeman89/sw5e/archive/master.zip"