V0.2.0: Changed artifacts to use upgrade() instead of level++

This commit is contained in:
Evan Debenham 2014-09-13 17:34:50 -04:00
parent 0ce1c3e701
commit 7abb24f723
6 changed files with 6 additions and 6 deletions

View File

@ -92,7 +92,7 @@ public class CapeOfThorns extends Artifact {
if (exp >= (level+1)*10 && level < levelCap){
exp -= (level+1)*10;
level++;
upgrade();
GLog.p("Your Cape grows stronger!");
}

View File

@ -113,7 +113,7 @@ public class ChaliceOfBlood extends Artifact {
Dungeon.fail(Utils.format(ResultDescriptions.ITEM, name, Dungeon.depth));
GLog.n("The Chalice sucks your life essence dry...");
} else {
level++;
upgrade();
if (level >= 5)
image = ItemSpriteSheet.ARTIFACT_CHALICE3;
else if (level >= 3)

View File

@ -207,7 +207,7 @@ public class CloakOfShadows extends Artifact {
//max level is 15 (20 charges)
if (exp >= (level+1)*50 && level < levelCap) {
level++;
upgrade();
chargeCap++;
exp -= level*50;
GLog.p("Your Cloak Grows Stronger!");

View File

@ -172,7 +172,7 @@ public class HornOfPlenty extends Artifact {
hero.busy();
hero.spend( TIME_TO_EAT );
curItem.level += ((Food)item).hornValue;
curItem.upgrade(((Food)item).hornValue);
if (curItem.level >= 30){
curItem.level = 30;
GLog.p("your horn has consumed all the food it can!");

View File

@ -67,7 +67,7 @@ public class MasterThievesArmband extends Artifact {
}
while(exp >= 500 && level < levelCap) {
exp -= 500;
level++;
upgrade();
}
return true;
}

View File

@ -126,7 +126,7 @@ public class SandalsOfNature extends Artifact {
seeds.add(item.name());
if (seeds.size() >= 5+level){
seeds.clear();
//upgrade logic
upgrade();
}
}
}