Fix spell costs
This commit is contained in:
parent
83b15f06ee
commit
0636a11bf9
2 changed files with 2 additions and 2 deletions
2
build.js
2
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))))
|
||||
}
|
||||
|
||||
|
||||
|
|
2
test.js
2
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+")";
|
||||
|
||||
|
|
Loading…
Reference in a new issue