From 8eb3186018a08a27c275c2f6becf50b6625aea5b Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 7 Jun 2015 03:07:37 -0400 Subject: [PATCH] v0.3.0c: properly bundled free charge from wand of transfusion --- .../items/wands/WandOfTransfusion.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTransfusion.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTransfusion.java index c77898c35..7fe6c0a77 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTransfusion.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfTransfusion.java @@ -31,6 +31,7 @@ import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet; import com.shatteredpixel.shatteredpixeldungeon.utils.GLog; import com.shatteredpixel.shatteredpixeldungeon.utils.Utils; import com.watabou.noosa.audio.Sample; +import com.watabou.utils.Bundle; import com.watabou.utils.Callback; import com.watabou.utils.PointF; import com.watabou.utils.Random; @@ -218,6 +219,20 @@ public class WandOfTransfusion extends Wand { particle.radiateXY(1f); } + private static final String FREECHARGE = "freecharge"; + + @Override + public void restoreFromBundle(Bundle bundle) { + super.restoreFromBundle(bundle); + freeCharge = bundle.getBoolean( FREECHARGE ); + } + + @Override + public void storeInBundle(Bundle bundle) { + super.storeInBundle(bundle); + bundle.put( FREECHARGE, freeCharge ); + } + @Override public String desc() { return "A fairly plainly shaped wand, it stands out due to its magenta hue and pitch black gem at the tip.\n" +