v0.2.4a: fixed a bug with transmuted wands having the wrong amount of charges
This commit is contained in:
parent
4ec2e9deb7
commit
45d4297177
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user