v0.3.0c: properly bundled free charge from wand of transfusion

This commit is contained in:
Evan Debenham
2015-06-07 03:07:37 -04:00
parent 3efeafcb1e
commit 8eb3186018

View File

@@ -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" +