Hi,
I’m sorry for the question that is most likely not on the topic, but maybe there is someone who can tell me how to solve my problem.
I will explain the essence of the question, let’s say I have a mine that produces two units of a resource, then I build a factory that consumes two units of a mine resource and produces one product.
In this case, everything works fine, but what if I want to build another factory that will start consuming the accumulated resources of the mine and produce the product until it is reset, after which one of the factories will stop working until I build another mine.
My thought is that each factory would query the amount of resources, and if resources are >=2 subtract 2 from the resource pool and start making the product.
I don’t follow with the “stop working until I build another mine” - Is the mine not constantly adding to resource pool after built?
Sounds like the resources from each mine are not going to a central pool/queue?
When each mine produces a unit of resources, is it still attached to the mine, or does it go into a central pool (like Civilization)?
If a pool, each mine should be updating the pool when it completes ‘production’ of the resource. When the factory comes around to produce it would check the pool(vs the mine(s)) for sufficient resources and update the count.