From 45d4297177a20bd13520a4b2d881f5b237df3a40 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 25 Feb 2015 09:18:55 -0500 Subject: [PATCH] v0.2.4a: fixed a bug with transmuted wands having the wrong amount of charges --- .../actors/blobs/WaterOfTransmutation.java | 1 + .../shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/blobs/WaterOfTransmutation.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/blobs/WaterOfTransmutation.java index 6862f8bf7..a11290bff 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/blobs/WaterOfTransmutation.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/blobs/WaterOfTransmutation.java @@ -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; diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java index dcd1d0586..a3fb7a7ab 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java @@ -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 );