We currently have this function for moving items to equipment, but if you want to remove an item and have nothing to replace it with then you are shit out of luck.
lua code:--- Moves an item in the container to equipment.
-- Moves an item in the container to a specific equipment slot
-- @ class Container
-- @ param spot the specific slot to use
-- @ param slot the equipment slot to move to
-- @ param count optional; amount of item stack to move (default is entire stack)
-- @ return boolean true or false
function Container:MoveItemToEquipment(spot, slot, count)
self = type(self)=='table' and self or Container.New(self)
return containerMoveItemToSlot(self._index, spot, slot, count or -1)
end
My suggestion:
Please add a "Container:MoveItemFromEquipment(slot, spot, count)" function.
Also -> "Container:MoveItemFromEquipmentToGround(slot, spot, count)" function. (the first one is good enough though)
There are a lot of things I can't do because of this, or at least it makes it unpractical (in certain situations) because of needing other items to switch out gear.