Storage-buildings and stockpiles can be set to one of four settings
- Storage on – Works as normal
- Storage off – Will not accept or release any items
- Accept only – Pawns can only store items, not retrieve them
- Retrieve only – Pawns can only retrieve items, not store them
Your prison cells have a storage unit for food, but when there is no prisoners you want to stop hauling food for it without changing storage filters or priorities. You turn the shelf to retrieve only when there are no prisoners.
You want to have a stack of steel left at all times for emergency trap-building. You set one shelf to store only with highest priority.
The blocking of storing new items is done by modifying the Accept-check for the storage.
The blocking of retrieving items is done by modifying the Forbidden check for the items in the storage. Pawns with mental break ignores the forbidden check so they will still be able to fetch items.
Should work with all mods that add storage buildings using the IHaulDestination class. Tested for example with LWM’s Deep Storage.
notfood: Support for Multiplayer, optimization and generalization
Waveshaper: Debugging
HawnHan: Chinese translation
Velcroboy333: Original idea