Adding a "restocking" setting to exporters
Adirelle opened this issue · 4 comments
#85 ## Issue type:
- ➕ Feature request
Short description:
Could exporter have a setting to export item/fluid/energy to complete the target inventory instead of filling it ? E.g. if I set the "stock limit" to 16 items and the target inventory contains only 14 of the exportable items, the exporters only adds 2 items, and it would not export anything if the inventory contains 16 or more items.
Sometimes you just want to keep a small amounts of items available or you do not want to completely fill the target inventory.
Make a boolean variable on whether or not the stored amount of the item is less than your desired amount. Use the choice option in logic programmer with that boolean and a variable card of said item to make a new card for the exporter. This card will export only that item when the boolean value is true.
A recent discussion and a skim of the issue list... could this be implemented through a higher-level combination of a Tunnel part and the appropriate Reader (possibly combined with a logic core) to support the Reader and the Tunnel in the same part space? Sometimes space really is at a premium, and you don't always have access to an ingredient container proxy such as a Phantomface. Perhaps this would remove the need for implementing a conditional on the exporter itself.
Sure, this has been on my internal todo-list for a while already. Since this can already be achieved through combination with an inventory reader it has a lower priority through.