Inventory is not saved #5

Open
opened 2026-05-28 03:24:57 +02:00 by abgit · 0 comments
Owner

Commit 231abb5d1f adds the ability to accurately see sand and wood amounts throughout the gameplay, but once you restart the game, the inventory is reset

How 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

Commit 231abb5d1f adds the ability to accurately see sand and wood amounts throughout the gameplay, but once you restart the game, the inventory is reset #### How 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
abgit/MirrorMirror#5
No description provided.