Another fix for AUX reserve cost error.

This commit is contained in:
Villain1nGlasses
2025-02-19 17:00:25 -07:00
parent a627eb0618
commit dba0e4218f
+3 -3
View File
@@ -742,7 +742,7 @@
</div>
<div class="subitem-characteristics-system-cost">
<h2>CP</h2>
<input type="text" value="0" name="attr_auxiliaryReserveCP" readonly tabindex="-1" title="@{attr_auxiliaryReserveCP}"/>
<input type="text" value="0" name="attr_auxiliaryReserveCP" readonly tabindex="-1" title="@{auxiliaryReserveCP}"/>
</div>
</div>
<div class="item-characteristics-power-system-row">
@@ -752,7 +752,7 @@
</div>
<div class="subitem-characteristics-system-value">
<h2>Lim</h2>
<input type="number" value="0" name="attr_auxiliaryReserveLIM" min ="0" step="0.25" tabindex=63" title="@{auxiliaryReserveLIM}"/>
<input type="number" value="0" name="attr_auxiliaryReserveLIM" min ="0" step="0.25" tabindex="63" title="@{auxiliaryReserveLIM}"/>
</div>
</div>
<textarea placeholder="Limitations" name="attr_auxiliaryReserveText" title="@{auxiliaryReserveText}" cols="18" rows="2" maxlength="90" tabindex="64"></textarea>
@@ -18183,7 +18183,7 @@
const endCost = 1;
const recCost = 2;
let reserveCP = heroRoundLow( (endCost * Math.ceil(endValue/4) + recCost * Math.floor(recValue/3))/(1+limValue) );
let reserveCP = heroRoundLow( (endCost * Math.floor(endValue/4) + recCost * Math.floor(recValue/3))/(1+limValue) );
// Update cost
setAttrs({