V0.2.0: Changed artifacts to use upgrade() instead of level++
This commit is contained in:
parent
0ce1c3e701
commit
7abb24f723
|
@ -92,7 +92,7 @@ public class CapeOfThorns extends Artifact {
|
||||||
|
|
||||||
if (exp >= (level+1)*10 && level < levelCap){
|
if (exp >= (level+1)*10 && level < levelCap){
|
||||||
exp -= (level+1)*10;
|
exp -= (level+1)*10;
|
||||||
level++;
|
upgrade();
|
||||||
GLog.p("Your Cape grows stronger!");
|
GLog.p("Your Cape grows stronger!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class ChaliceOfBlood extends Artifact {
|
||||||
Dungeon.fail(Utils.format(ResultDescriptions.ITEM, name, Dungeon.depth));
|
Dungeon.fail(Utils.format(ResultDescriptions.ITEM, name, Dungeon.depth));
|
||||||
GLog.n("The Chalice sucks your life essence dry...");
|
GLog.n("The Chalice sucks your life essence dry...");
|
||||||
} else {
|
} else {
|
||||||
level++;
|
upgrade();
|
||||||
if (level >= 5)
|
if (level >= 5)
|
||||||
image = ItemSpriteSheet.ARTIFACT_CHALICE3;
|
image = ItemSpriteSheet.ARTIFACT_CHALICE3;
|
||||||
else if (level >= 3)
|
else if (level >= 3)
|
||||||
|
|
|
@ -207,7 +207,7 @@ public class CloakOfShadows extends Artifact {
|
||||||
|
|
||||||
//max level is 15 (20 charges)
|
//max level is 15 (20 charges)
|
||||||
if (exp >= (level+1)*50 && level < levelCap) {
|
if (exp >= (level+1)*50 && level < levelCap) {
|
||||||
level++;
|
upgrade();
|
||||||
chargeCap++;
|
chargeCap++;
|
||||||
exp -= level*50;
|
exp -= level*50;
|
||||||
GLog.p("Your Cloak Grows Stronger!");
|
GLog.p("Your Cloak Grows Stronger!");
|
||||||
|
|
|
@ -172,7 +172,7 @@ public class HornOfPlenty extends Artifact {
|
||||||
hero.busy();
|
hero.busy();
|
||||||
hero.spend( TIME_TO_EAT );
|
hero.spend( TIME_TO_EAT );
|
||||||
|
|
||||||
curItem.level += ((Food)item).hornValue;
|
curItem.upgrade(((Food)item).hornValue);
|
||||||
if (curItem.level >= 30){
|
if (curItem.level >= 30){
|
||||||
curItem.level = 30;
|
curItem.level = 30;
|
||||||
GLog.p("your horn has consumed all the food it can!");
|
GLog.p("your horn has consumed all the food it can!");
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class MasterThievesArmband extends Artifact {
|
||||||
}
|
}
|
||||||
while(exp >= 500 && level < levelCap) {
|
while(exp >= 500 && level < levelCap) {
|
||||||
exp -= 500;
|
exp -= 500;
|
||||||
level++;
|
upgrade();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,7 +126,7 @@ public class SandalsOfNature extends Artifact {
|
||||||
seeds.add(item.name());
|
seeds.add(item.name());
|
||||||
if (seeds.size() >= 5+level){
|
if (seeds.size() >= 5+level){
|
||||||
seeds.clear();
|
seeds.clear();
|
||||||
//upgrade logic
|
upgrade();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user