v1.3.0: fixed transmuting equipped items taking lots of time

This commit is contained in:
Evan Debenham
2022-06-20 16:16:15 -04:00
parent 518eef179f
commit 78305a1d4a

View File

@@ -90,6 +90,7 @@ public class ScrollOfTransmutation extends InventoryScroll {
item.cursed = false; //to allow it to be unequipped
((EquipableItem) item).doUnequip(Dungeon.hero, false);
((EquipableItem) result).doEquip(Dungeon.hero);
Dungeon.hero.spend(-Dungeon.hero.cooldown()); //cancel equip/unequip time
} else {
item.detach(Dungeon.hero.belongings.backpack);
if (!result.collect()) {