v0.2.3: reduced the severity of curses on Horn of Plenty and Chalice of Blood
This commit is contained in:
@@ -22,6 +22,8 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ResultDescriptions;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.Artifact;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.HornOfPlenty;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.Utils;
|
||||
@@ -108,6 +110,11 @@ public class Hunger extends Buff implements Hero.Doom {
|
||||
}
|
||||
|
||||
public void satisfy( float energy ) {
|
||||
Artifact.ArtifactBuff buff = target.buff( HornOfPlenty.hornRecharge.class );
|
||||
if (buff != null && buff.isCursed()){
|
||||
energy = Math.round(energy*0.67f);
|
||||
GLog.n("The cursed horn steals some of the food energy as you eat.");
|
||||
}
|
||||
level -= energy;
|
||||
if (level < 0) {
|
||||
level = 0;
|
||||
|
||||
Reference in New Issue
Block a user