mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 03:40:32 +00:00
Another fix for AUX reserve cost error.
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user