

Adds a new unlockable ship ugrade to the game : the Smart Cupboard!
This storage container who looks a lot like the vanilla Cupboard furniture, has the effect to automatically sorts equipment items that you store in.
The Smart Cupboard can be acquired by spending 20 credits in the store.
Compatible with v69 of Lethal Company.
On the side of this special Cupboard, you can find a storage box where players can dump their tools like flashlights, walkie-talkies, shovels, spray paints and even scrap items.
The storage will then sort these tools and put them on display in specific sections. Then all items will be organized and ready for players to grab and go!

FixItemsLoadingSameRotation + FixItemsFallingThrough configs. This is needed for items to face the correct direction when stored.ShipPlaceablesCollide config in GeneralImprovements NEEDS to be activated (at least from my personnal observations).FixItemsFallingThrough in GeneralImprovements OR disable OutOfBounds.Enabled in Matty_Fixes, because these mods do the same thing.For items developers! By default, every items are allowed in the storage but if you want to add a custom "condition" to your scraps and tools, so the Smart Cupboard will not accept them, you can do so easily by adding this mod as a soft dependency and then write this code :
public static void AddValidation()
{
SelfSortingStorage.Cupboard.SmartCupboard.AddTriggerValidation(MyCustomValidation, "[Your custom message]");
// the custom message is displayed when a player tries to store something checked by your condition
}
private static bool MyCustomValidation(PlayerControllerB player)
{
var item = player.currentlyHeldObjectServer;
if (item is MyCustomItem) // check your item
return false; // don't store the item
return true; // allow the item to be stored
}
If you want to suggest new features or contact me please go to the mod release page in the modding discord or as a github issue.
Thanks Xu Xiaolan for helping with some parts of the code, and also for suggesting good things!
Thanks A Glitched Npc for the initial idea and for testing!
Thanks ScienceBird for the help on the 1.0.4 update!
Some parts ot the code is based on the ShipInventory implementation by WarperSan, such as the items data structure which has been modified to better fit the SelfSortingStorage mod.
Cupboard asset is ripped from Lethal Company.
"vent_chute" by jazz-the-giraffe is a free 3D model licensed under Creative Commons Attribution.