From 3e890479e59608e4cbf060e645c2e92a9bcec913 Mon Sep 17 00:00:00 2001 From: b Date: Sun, 27 Jun 2021 11:45:30 -0700 Subject: [PATCH] Fix typo in sp formula --- build_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_utils.js b/build_utils.js index 0b210f4..abb6515 100644 --- a/build_utils.js +++ b/build_utils.js @@ -8,7 +8,7 @@ function skillPointsToPercentage(skp){ skp = 150; } const r = 0.9908; - return ((1 - Math.pow(r, skp - 1)) / (1 - r) - 1) / 100.0; + return ((1 - Math.pow(r, skp + 1)) / (1 - r) - 1) / 100.0; //return (-0.0000000066695* Math.pow(Math.E, -0.00924033 * skp + 18.9) + 1.0771); //return(-0.0000000066695* Math.pow(Math.E, -0.00924033 * skp + 18.9) + 1.0771).toFixed(3); //return Math.min(Math.max(0.00,(-0.0000000066695* Math.pow(Math.E, -0.00924033 * skp + 18.9) + 1.0771)),.808);