Fix spell costs (2)
This commit is contained in:
parent
0636a11bf9
commit
5269355a09
1 changed files with 1 additions and 1 deletions
2
build.js
2
build.js
|
@ -166,7 +166,7 @@ class Build{
|
||||||
getSpellCost(spellIdx, cost) {
|
getSpellCost(spellIdx, cost) {
|
||||||
cost = Math.ceil(cost * (1 - skillPointsToPercentage(this.total_skillpoints[2])));
|
cost = Math.ceil(cost * (1 - skillPointsToPercentage(this.total_skillpoints[2])));
|
||||||
cost += this.statMap.get("spRaw"+spellIdx);
|
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)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue