v0.9.2a: fixed food eating messages being generated with the item
This commit is contained in:
@@ -46,7 +46,6 @@ public class Food extends Item {
|
|||||||
public static final String AC_EAT = "EAT";
|
public static final String AC_EAT = "EAT";
|
||||||
|
|
||||||
public float energy = Hunger.HUNGRY;
|
public float energy = Hunger.HUNGRY;
|
||||||
public String message = Messages.get(this, "eat_msg");
|
|
||||||
|
|
||||||
{
|
{
|
||||||
stackable = true;
|
stackable = true;
|
||||||
@@ -72,7 +71,7 @@ public class Food extends Item {
|
|||||||
detach( hero.belongings.backpack );
|
detach( hero.belongings.backpack );
|
||||||
|
|
||||||
satisfy(hero);
|
satisfy(hero);
|
||||||
GLog.i( message );
|
GLog.i( Messages.get(this, "eat_msg") );
|
||||||
|
|
||||||
hero.sprite.operate( hero.pos );
|
hero.sprite.operate( hero.pos );
|
||||||
hero.busy();
|
hero.busy();
|
||||||
|
|||||||
Reference in New Issue
Block a user