v0.2.3: reduced the severity of curses on Horn of Plenty and Chalice of Blood

This commit is contained in:
Evan Debenham
2014-11-26 14:07:59 -05:00
parent eb22583e86
commit 803bd132ae
3 changed files with 15 additions and 17 deletions
@@ -29,14 +29,19 @@ public class Regeneration extends Buff {
public boolean act() {
if (target.isAlive()) {
ChaliceOfBlood.chaliceRegen regenBuff = Dungeon.hero.buff( ChaliceOfBlood.chaliceRegen.class);
if (target.HP < target.HT && !((Hero)target).isStarving() && !(regenBuff != null && regenBuff.isCursed())) {
if (target.HP < target.HT && !((Hero)target).isStarving()) {
target.HP += 1;
}
ChaliceOfBlood.chaliceRegen regenBuff = Dungeon.hero.buff( ChaliceOfBlood.chaliceRegen.class);
if (regenBuff != null)
spend( Math.max(REGENERATION_DELAY - regenBuff.level(), 0.5f) );
if (regenBuff.isCursed())
spend( REGENERATION_DELAY * 1.5f );
else
spend( Math.max(REGENERATION_DELAY - regenBuff.level(), 0.5f) );
else
spend( REGENERATION_DELAY );