branchrust_reboot/main/LootFixcancel

3 Commits over 0 Days - ∞cph!

3 Months Ago
Let's fix this properly. - ALLOW swaps that take an item in a stack-limited container and try to swap it with another item that's stacked more than the container allows. - TRY to take just one from that stack and leave the rest in the old inventory, while also depositing the item that was dragged out. - CANCEL the process if the player has no inventory space for the new item (since unlike a normal drag-swap, we need an extra slot for the split item).
3 Months Ago
Block drag swaps of this sort: An item is dragged out of a stack-limiting container onto a stack of items which have an amount too high to go into the container. Fixes all but one item in the stack being destroyed. Unlike the previous fix, this version of the fix does NOT prevent right-click or hover looting one item from a stack into limited-stack containers.
3 Months Ago
Revert 98139. This revert: - Fixes hover looting stacks of items into containers with an item limit less than the current amount on the stack. - Fixes the same issue for right-click looting. - Breaks drag-swapping two valid items between inventory and a container with an item limit less than the current amount on the stack (e.g. dragging a stack of engine components into a modular car engine slot that already has a component of a different tier - all but one item on the stack will be lost).