v0.6.2: fixed pastys not retaining holiday info in remains

This commit is contained in:
Evan Debenham 2017-10-20 01:11:20 -04:00
parent 7c532206d7
commit c0d432a3fb

View File

@ -71,7 +71,16 @@ public class Pasty extends Food {
} }
{ {
reset();
energy = Hunger.STARVING;
bones = true;
}
@Override
public void reset() {
super.reset();
switch(holiday){ switch(holiday){
case NONE: case NONE:
name = Messages.get(this, "pasty"); name = Messages.get(this, "pasty");
@ -86,12 +95,8 @@ public class Pasty extends Food {
image = ItemSpriteSheet.CANDY_CANE; image = ItemSpriteSheet.CANDY_CANE;
break; break;
} }
energy = Hunger.STARVING;
bones = true;
} }
@Override @Override
public void execute(Hero hero, String action) { public void execute(Hero hero, String action) {
super.execute(hero, action); super.execute(hero, action);