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)
recharge();
if (partialCharge >= 1 && curCharges < maxCharges) {
while (partialCharge >= 1 && curCharges < maxCharges) {
partialCharge--;
curCharges++;
updateQuickslot();
}
if (curCharges == maxCharges){
partialCharge = 0;
}
spend( TICK );
return true;