Fix spell costs

This commit is contained in:
b 2021-01-09 02:56:04 -06:00
parent 83b15f06ee
commit 0636a11bf9
2 changed files with 2 additions and 2 deletions

View file

@ -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))))
}

View file

@ -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+")";