IronBackpacks icon indicating copy to clipboard operation
IronBackpacks copied to clipboard

Improve Restocking Upgrade To Restock Original Stack Size - Configurable

Open papachabre opened this issue 7 years ago • 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.

papachabre avatar May 06 '17 03:05 papachabre

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.

gr8pefish avatar May 06 '17 16:05 gr8pefish

I am mostly ignorant about how mods work, but maybe it could just replace one item at a time when it is used?

papachabre avatar May 07 '17 01:05 papachabre