v0.3.4: adjusted hunger, now takes ~10% longer to reach starving
This commit is contained in:
parent
878ee86d7f
commit
e45a4470d1
|
@ -36,8 +36,8 @@ public class Hunger extends Buff implements Hero.Doom {
|
||||||
|
|
||||||
private static final float STEP = 10f;
|
private static final float STEP = 10f;
|
||||||
|
|
||||||
public static final float HUNGRY = 260f;
|
public static final float HUNGRY = 300f;
|
||||||
public static final float STARVING = 360f;
|
public static final float STARVING = 400f;
|
||||||
|
|
||||||
private float level;
|
private float level;
|
||||||
private float partialDamage;
|
private float partialDamage;
|
||||||
|
|
|
@ -61,8 +61,6 @@ public class HornOfPlenty extends Artifact {
|
||||||
|
|
||||||
private static final float TIME_TO_EAT = 3f;
|
private static final float TIME_TO_EAT = 3f;
|
||||||
|
|
||||||
private float energy = 36f;
|
|
||||||
|
|
||||||
public static final String AC_EAT = "EAT";
|
public static final String AC_EAT = "EAT";
|
||||||
public static final String AC_STORE = "STORE";
|
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") );
|
if (!isEquipped(hero)) GLog.i( Messages.get(Artifact.class, "need_to_equip") );
|
||||||
else if (charge == 0) GLog.i( Messages.get(this, "no_food") );
|
else if (charge == 0) GLog.i( Messages.get(this, "no_food") );
|
||||||
else {
|
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 you get at least 100 food energy from the horn
|
||||||
if (charge >= 3) {
|
if (charge >= 3) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user