v0.3.5: big consistency pass on how items handle execution
This commit is contained in:
@@ -65,6 +65,9 @@ public class Food extends Item {
|
||||
|
||||
@Override
|
||||
public void execute( Hero hero, String action ) {
|
||||
|
||||
super.execute( hero, action );
|
||||
|
||||
if (action.equals( AC_EAT )) {
|
||||
|
||||
detach( hero.belongings.backpack );
|
||||
@@ -99,10 +102,6 @@ public class Food extends Item {
|
||||
Statistics.foodEaten++;
|
||||
Badges.validateFoodEaten();
|
||||
|
||||
} else {
|
||||
|
||||
super.execute( hero, action );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user