mooege/mooege — pull request #460 by carmack78 (2012-03-02 20:54:19+00:00)
Title: Besides Visual Items also Equipped Items are fully saved to and restored from DB.

Besides Visual Items also Equipped Items are fully saved to and restored from DB.

This time credit goes to: carmack78 :)

I have refactored Toon class to load itself from DB with PersistentId.
Equipped Inventory can load and save itself (in Inventory class), and
Inventory loaded onworldenter in player class, and saved onworldleave
function.

Also account.db has been changed to save equipped items. A new table
has been added (items_equipped table), and inventory table has been
renamed to items_visuals.

Yes, this update saves visual items and equipped items seperately.
With this last update, besides other updates, door are interactable,
visual and equipped items are saved/loaded correctly, gold amount and
character level also saved.