Inventory is not saved #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Commit
231abb5d1fadds the ability to accurately see sand and wood amounts throughout the gameplay, but once you restart the game, the inventory is resetHow it works now :
You start the game and have 1000 of each, everytime you use the furnace correctly, you lose 1 of the item selected, the inventory works fine, you can make multiple mirror and the inventory does not reset.
Once you restart the game, it starts over
How it should work :
You start the game, if you have no savefile/no inventory saved, set it to defaults, save inventory in a savefile at the same moments the money is saved
Once you restart the game, and there is a savefile with inventory not empty, put those values in the inventory, and continue from where you left off
Additional ideas :
Make money an item : Once the inventory saves in the/a savefile, make money an item and update the money functions and display accordingly