unequipping already equipping item when the game tries to equip a new item on the same slot

This commit is contained in:
minjaesong
2021-08-07 17:32:32 +09:00
parent e4542af75c
commit db45557c19

View File

@@ -61,6 +61,9 @@ interface Pocketed {
inventory.add(item)
}
// unequip item that's already there
unequipSlot(item.equipPosition)
if (item.equipPosition >= 0) {
inventory.itemEquipped[item.equipPosition] = item.dynamicID
item.effectWhenEquipped(AppLoader.UPDATE_RATE)