From e6e0966635b831e26256cd2339591cff61b67ba4 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 1 Dec 2014 14:34:30 -0500 Subject: [PATCH] v0.2.3: fixed a bug with unstable spellbook --- .../items/artifacts/UnstableSpellbook.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java index e2f314b97..e8a49ebcc 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java @@ -99,10 +99,10 @@ public class UnstableSpellbook extends Artifact { @Override public Item upgrade() { - chargeCap = ((level/2)+1); + chargeCap = (((level+1)/2)+1); //for artifact transmutation. - if (scrolls.size() > (levelCap-level)) + while (scrolls.size() > (levelCap-1-level)) scrolls.remove(0); return super.upgrade();