P0-A8: Part 821: Improvements, Debugging
I have made the existing inventory system in the project persistent.
IE, any items, tools, etc, that the player picks up and adds to their inventory will be saved to the server, and database.
This was slightly more difficult than it sounds, because many of the items that the player is interacting with are persistent themselves, and have their own entry in the database, so if I simply add a new entry for the item in the players inventory, there will be a duplicate item in the world.
I was able to do this by removing the object from the world when adding it to the inventory, and then adding it back as a persistent item again when the player drops it back into the world.