V0.2.0: Chalice of Blood now caps at level 10, up from 8. Updated Regen buff logic to account for a level 10 chalice

This commit is contained in:
Evan Debenham 2014-09-15 09:43:57 -04:00
parent 4dcb086ea8
commit 3885a0f039
2 changed files with 3 additions and 5 deletions

View File

@ -35,7 +35,7 @@ public class Regeneration extends Buff {
ChaliceOfBlood.chaliceRegen regenBuff = Dungeon.hero.buff( ChaliceOfBlood.chaliceRegen.class);
if (regenBuff != null)
spend( REGENERATION_DELAY - regenBuff.level() );
spend( Math.max(REGENERATION_DELAY - regenBuff.level(), 0.5f) );
else
spend( REGENERATION_DELAY );

View File

@ -21,8 +21,6 @@ import java.util.ArrayList;
*/
public class ChaliceOfBlood extends Artifact {
//TODO: add polish
//TODO: add sprite switching
//TODO: decide on max level 8 or 10. balance accordingly.
private static final String TXT_CHALICE = "Chalice of Blood";
private static final String TXT_YES = "Yes, I know what I'm doing";
@ -36,7 +34,7 @@ public class ChaliceOfBlood extends Artifact {
name = "Chalice of Blood";
image = ItemSpriteSheet.ARTIFACT_CHALICE1;
level = 0;
levelCap = 8;
levelCap = 10;
//charge & chargecap are unused
}
@ -114,7 +112,7 @@ public class ChaliceOfBlood extends Artifact {
GLog.n("The Chalice sucks your life essence dry...");
} else {
upgrade();
if (level >= 5)
if (level >= 6)
image = ItemSpriteSheet.ARTIFACT_CHALICE3;
else if (level >= 3)
image = ItemSpriteSheet.ARTIFACT_CHALICE2;