v0.7.2: fixed issues with wand charging when recharging large amounts

This commit is contained in:
Evan Debenham 2019-01-30 22:00:46 -05:00
parent 2b867c98c2
commit 0c0e831015

View File

@ -461,12 +461,16 @@ public abstract class Wand extends Item {
if (curCharges < maxCharges) if (curCharges < maxCharges)
recharge(); recharge();
if (partialCharge >= 1 && curCharges < maxCharges) { while (partialCharge >= 1 && curCharges < maxCharges) {
partialCharge--; partialCharge--;
curCharges++; curCharges++;
updateQuickslot(); updateQuickslot();
} }
if (curCharges == maxCharges){
partialCharge = 0;
}
spend( TICK ); spend( TICK );
return true; return true;