v0.6.2: fixed artifacts being un-quicksloted when equipped in some cases

This commit is contained in:
Evan Debenham 2017-09-12 22:51:55 -04:00
parent ff6d3f93ff
commit 30e021f8d5

View File

@ -50,11 +50,9 @@ public abstract class KindofMisc extends EquipableItem {
protected void onSelect(int index) {
KindofMisc equipped = (index == 0 ? m1 : m2);
detach( hero.belongings.backpack );
if (equipped.doUnequip(hero, true, false)) {
//fully re-execute rather than just call doEquip as we want to preserve quickslot
execute(hero, AC_EQUIP);
} else {
collect( hero.belongings.backpack );
}
}
});