mooege/mooege — pull request #231 by Tharuler (2011-10-21 02:52:47+00:00)
Title: Fixed item swapping in inventory + small stash/inventory refactoring

- Moved InventorySize struct from stash to item
- added item swapping (some rare cases still not working, see comments in code, also: only works for items 1x1 and 1x2 (will break on bigger).
- added dictionary in stash for faster item lookups (instead of looping over the whole stash in O(N²))

TODO: Should merge InvLoc and InventorySlot types, theyre pretty similar