Batch - Reldeam/Idle-Inc GitHub Wiki
Overview
Batches are used for the input and output of facilities. Most facilities require an input batch of resources before then can begin production on the output batch. A batch comprises of a list of resources with an amount for each resource. They are empty when no resources are added and full when all the resources to the amount stipulated are added to the batch. Facilities will wait until an input batch is full before consuming it to begin production on the output batch. A facility always produces at least a full output batch (they may produce an 'overfilled' batch sometimes based on the facilitie's quality), or they will fail to produce a batch at all if the facility has a fail rate (this mostly pertains to labs and high tier facilities).
Input Batch
Most facilities have an input batch that must be filled before the production of the output batch commences. Any active facilities will automatically fill their input batches from the player's stockpile. The method of filling input batches is based on the distribution type the player has chosen. Once an input batch is filled it is consumed by the facility and the output batch will begin to be produced.
Distribution Types
The player may change the way that facilities fill their input batches from the player's stockpile. There are three different types of distribution.
-
Priority - Each facility has a priority that can be changed by the player at any time. If priority distribution is chosen as the distribution method then facilities with higher priority will take resources from the stockpile before other facilities of lower priority.
-
Round-Robin - Each facility will take turns being the first facility to take resources from the stockpile in a looping queue fashion.
-
Even - If multiple facilities require the same resource then that resource is evenly distributed between all the facilities that require it.
Output Batch
Each facility takes differing times to produce an output batch. Output batches are always at least full and may sometimes be overfilled based on the quality of the facility. Labs and some high tier facilities can also fail to produce an output batch altogether. In this case, the input batch is not refunded.