Fix spell costs (2)

This commit is contained in:
b 2021-01-09 02:57:27 -06:00
parent 0636a11bf9
commit 5269355a09

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) / 100)))
}