From 0636a11bf97b7cd8f9f098aff3e44bf7857bca17 Mon Sep 17 00:00:00 2001 From: b Date: Sat, 9 Jan 2021 02:56:04 -0600 Subject: [PATCH] Fix spell costs --- build.js | 2 +- test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index 6af8ea7..f5a407b 100644 --- a/build.js +++ b/build.js @@ -166,7 +166,7 @@ class Build{ getSpellCost(spellIdx, cost) { cost = Math.ceil(cost * (1 - skillPointsToPercentage(this.total_skillpoints[2]))); cost += this.statMap.get("spRaw"+spellIdx); - return Math.max(1, Math.floor(cost * (1 - this.statMap.get("spPct"+spellIdx)))) + return Math.max(1, Math.floor(cost * (1 + this.statMap.get("spPct"+spellIdx)))) } diff --git a/test.js b/test.js index b2d759e..fed4663 100644 --- a/test.js +++ b/test.js @@ -11,7 +11,7 @@ console.log(url_tag); * END testing section */ -const BUILD_VERSION = "2.0"; +const BUILD_VERSION = "2.1"; document.getElementById("header").textContent = "Wynn build calculator "+BUILD_VERSION+" (db version "+DB_VERSION+")";