v0.3.5: big consistency pass on how items handle execution
This commit is contained in:
@@ -51,12 +51,15 @@ public class MerchantsBeacon extends Item {
|
||||
|
||||
@Override
|
||||
public void execute(Hero hero, String action) {
|
||||
|
||||
super.execute(hero, action);
|
||||
|
||||
if (action.equals(AC_USE)) {
|
||||
detach( hero.belongings.backpack );
|
||||
Shopkeeper.sell();
|
||||
Sample.INSTANCE.play( Assets.SND_BEACON );
|
||||
} else
|
||||
super.execute(hero, action);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user