ubergarm / RimWorld-KanbanStockpile

RimWorld mod adding `Stack Refill Threshold` and `Similar Stack Limit` to stockpiles and deep storage inspired by kanban logistic control systems.
https://steamcommunity.com/sharedfiles/filedetails/?id=2287142613
MIT License
2 stars 3 forks source link

Improve hauling to container to allow pawns to break full stacks into needed size #10

Closed ubergarm closed 3 years ago

ubergarm commented 3 years ago

Look into possibly prefix patching ThingOwner.TryTransferToContainer() to set count to the exact number desired which would allow for more opportunities to refill a partial stack kept in a storage container.

ubergarm commented 3 years ago

Naw, testing shows that TryTransferToContainer() was just going from a Pawn's inventory to a Pawn's carry tracker (at least while using PickUpAndHaul)...

Need to figure something else out