Floor cap
This commit is contained in:
parent
6fde28c544
commit
38688304f9
2 changed files with 2 additions and 2 deletions
|
@ -391,7 +391,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 = Math.floor(cost * (1 + this.statMap.get("spPct"+spellIdx) / 100))
|
cost = Math.max(0, Math.floor(cost * (1 + this.statMap.get("spPct"+spellIdx) / 100)));
|
||||||
return Math.max(1, cost + this.statMap.get("spRaw"+spellIdx));
|
return Math.max(1, cost + this.statMap.get("spRaw"+spellIdx));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
</div>
|
</div>
|
||||||
<div class="center"> Raw after % bby </div>
|
<div class="center"> Raw after % bby (also % caps at -100)</div>
|
||||||
|
|
||||||
<div class="summary">
|
<div class="summary">
|
||||||
<div class="equipment" style="grid-column:1/span 2;grid-row:1">
|
<div class="equipment" style="grid-column:1/span 2;grid-row:1">
|
||||||
|
|
Loading…
Reference in a new issue