Improve Restocking Upgrade To Restock Original Stack Size - Configurable
papachabre opened this issue ยท 3 comments
Currently the restocking upgrade works by fully restocking a stack of items in the player's inventory when it is triggered. This means that if the player places a stack of torches in his backpack and one torch in his hotbar, placing the torch will trigger the backpack to replace it with a full stack of torches.
I suggest changing this behavior so that the backpack only restocks an item up to the quantity that it was at before being used. For example, if I place 10 steaks in my hotbar and a stack in my backpack, then when I eat one the backpack will only add one to my inventory instead of 55.
The main reason for this suggestion is to keep items safe from being lost after dying, especially if the soulbound upgrade is being used in addition to the restocking upgrade.
Interesting idea. This may be quite tricky (simply due to how it would work internally), but I like the concept. At the very least I'll try to add it as a config option.
I am mostly ignorant about how mods work, but maybe it could just replace one item at a time when it is used?