BetterTakeAll
Changes TakeAll behavior for containers to always prefer stacking over position. This should fix Tombstone bugs where it fails to properly take all inventory.
模組介紹 作者原文
Better Take All
Ever recover a Tombstone and wonder why you have two partial stacks of wood and a key item was left in the tombstone?
This mod addresses that, by changing TakeAll behavior for both tombstones and other containers to
- prefer stacking if possible
- then prefer position of item in source container
- then try to put it anywhere
This should address most failures to retrieve all items from tombstone, and also fixes the rare edge case of failure to stack when selecting "Take All" on a chest or other container.
Details
Default take all behavior: prefers keeping the item's x/y position over stacking. Notice it could have stacked the arrows and taken the blueberries, but it puts the arrows in the empty slot. This is rare for containers Because the item's position in the contianer has to line up with an empty slot in your inventory.
When you interact with a tombstone,
- The system checks if it thinks the tomstone inventory will fit into the player's inventory
- If yes, it performs TakeAll, which calls MoveAll, which moves items from source container (tomsbtone) to destination container (player's inventory)
- If no, it opens up the tombstone like a regular container for the player to manually move stuff
This mod changes Inventory.MoveAll behavior which affects all containers including tombstones. Normally, MoveAll prefers to put an item in its exact slot from the source container, and failing that, it looks for a stackable item in the destination container. This is why with tombstones, if you pick up some stackable junk along the way, it often fails to stack things properly.
What it doesn't do
This mod doesn't address the Tombstone.EasyFitInventory method, which checks if it should even automatically attempt to TakeAll in the first place. If your inventory is especially convoluted when you die, e.g. with several partial stacks of the same item, the tombstone will usually not attempt TakeAll.
Other mods that improve tombstone behavior
These two mods and my own all compete over Inventory.MoveAll, so they're not compatible. If installed together, these mods take precedence over my own.
- Simple Smarter Corpse Run And Tombstone - intelligently predicts your carrying capacity instead of giving you a flat 150 extra, to avoid being overburdened after Corpse Run buff ends
- TombstoneDriveBy - Never open up tombstone like a regular container, just auto-take stuff in a hardcoded priority order
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。
下面這些內容需要先安裝,否則該模組不會生效: