From e45a4470d1e8fecb16ac889196e403b94b60c7a2 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 6 Feb 2016 21:50:04 -0500 Subject: [PATCH] v0.3.4: adjusted hunger, now takes ~10% longer to reach starving --- .../shatteredpixeldungeon/actors/buffs/Hunger.java | 4 ++-- .../shatteredpixeldungeon/items/artifacts/HornOfPlenty.java | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Hunger.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Hunger.java index c1325a64b..d516f44db 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Hunger.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Hunger.java @@ -36,8 +36,8 @@ public class Hunger extends Buff implements Hero.Doom { private static final float STEP = 10f; - public static final float HUNGRY = 260f; - public static final float STARVING = 360f; + public static final float HUNGRY = 300f; + public static final float STARVING = 400f; private float level; private float partialDamage; diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HornOfPlenty.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HornOfPlenty.java index 897912e48..bbc205eee 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HornOfPlenty.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HornOfPlenty.java @@ -61,8 +61,6 @@ public class HornOfPlenty extends Artifact { private static final float TIME_TO_EAT = 3f; - private float energy = 36f; - public static final String AC_EAT = "EAT"; public static final String AC_STORE = "STORE"; @@ -87,7 +85,7 @@ public class HornOfPlenty extends Artifact { if (!isEquipped(hero)) GLog.i( Messages.get(Artifact.class, "need_to_equip") ); else if (charge == 0) GLog.i( Messages.get(this, "no_food") ); else { - ((Hunger) hero.buff(Hunger.class)).satisfy(energy * charge); + hero.buff(Hunger.class).satisfy((Hunger.STARVING/10) * charge); //if you get at least 100 food energy from the horn if (charge >= 3) {