v0.7.2: fixed issues with wand charging when recharging large amounts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user