v0.3.2: reworked the warlock subclass

This commit is contained in:
Evan Debenham
2015-09-23 21:52:33 -04:00
parent 5f09d23ea0
commit 71f65ec31a
16 changed files with 108 additions and 29 deletions
@@ -127,10 +127,6 @@ public class Hunger extends Buff implements Hero.Doom {
}
public void satisfy( float energy ) {
if (((Hero) target).subClass == HeroSubClass.WARLOCK){
Buff.affect( target, ScrollOfRecharging.Recharging.class, energy/50f);
return;
}
Artifact.ArtifactBuff buff = target.buff( HornOfPlenty.hornRecharge.class );
if (buff != null && buff.isCursed()){
@@ -142,17 +138,6 @@ public class Hunger extends Buff implements Hero.Doom {
reduceHunger( energy );
}
public void consumeSoul( float energy ){
if (level >= STARVING)
energy *= 1.33f;
else if (level < HUNGRY)
energy *= 0.67f;
if (!Dungeon.isChallenged(Challenges.NO_FOOD))
reduceHunger( energy );
}
//directly interacts with hunger, no checks.
public void reduceHunger( float energy ) {