v0.2.4a: fixed a bug with transmuted wands having the wrong amount of charges

This commit is contained in:
Evan Debenham 2015-02-25 09:18:55 -05:00
parent 4ec2e9deb7
commit 45d4297177
2 changed files with 2 additions and 1 deletions

View File

@ -170,6 +170,7 @@ public class WaterOfTransmutation extends WellWater {
} while (n.getClass() == w.getClass());
n.level = 0;
n.updateLevel();
n.upgrade( w.level );
n.levelKnown = w.levelKnown;

View File

@ -313,7 +313,7 @@ public abstract class Wand extends KindOfWeapon {
return this;
}
protected void updateLevel() {
public void updateLevel() {
maxCharges = Math.min( initialCharges() + level, 9 );
curCharges = Math.min( curCharges, maxCharges );