v0.3.5: big consistency pass on how items handle execution

This commit is contained in:
Evan Debenham
2016-04-19 19:34:08 -04:00
parent a571dc7f02
commit e715e147ff
36 changed files with 163 additions and 151 deletions
@@ -42,13 +42,14 @@ public class BrokenSeal extends Item {
@Override
public void execute(Hero hero, String action) {
super.execute(hero, action);
if (action.equals(AC_AFFIX)){
curItem = this;
GameScene.selectItem(armorSelector, WndBag.Mode.ARMOR, Messages.get(this, "prompt"));
} else if (action.equals(AC_INFO)) {
GameScene.show(new WndItem(null, this, true));
} else {
super.execute(hero, action);
}
}