v0.2.3: refactored levelling on some artifacts

This commit is contained in:
Evan Debenham
2014-11-19 10:56:26 -05:00
parent c4b2c9ab4b
commit f59fc8c304
3 changed files with 32 additions and 15 deletions
@@ -5,6 +5,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
import com.shatteredpixel.shatteredpixeldungeon.ui.QuickSlot;
@@ -113,6 +114,12 @@ public class CloakOfShadows extends Artifact {
return new cloakStealth();
}
@Override
public Item upgrade() {
chargeCap++;
return super.upgrade();
}
@Override
public String desc() {
String desc = "This light silken cloak shimmers in and out of your vision as it sways in the air. When worn, " +
@@ -223,7 +230,6 @@ public class CloakOfShadows extends Artifact {
if (exp >= (level+1)*50 && level < levelCap) {
upgrade();
chargeCap++;
exp -= level*50;
GLog.p("Your Cloak Grows Stronger!");
}