Funnel system to work as intended #773
Labels
Help wanted
ideas, code or feeedback is requested from other contributors
Improvement
Presumably positive changes to existing functionality
priority
this issue should be resolved ASAP
distinction between independent funnel want and dependant funnel want
from start to end: if previous room independently wants funneled, then then the consecutive one will dependently want funneled.
From end to start: if the previous room wants independently funneled, then the following one will register as dependent. else if the previous room wants dependently funneled, the room will register dependently funneled.
Problem
Solution
psuedocode
if (the first target wants independent funnel) then set it so and continue to next target(s) to potentially create a contiguous set of wanters
if (any independent funnel wanter) then set first funnel target to override funnel want
calculate the difference between how much the room could upgrade purely based on energy in storing structures. Subtract the actual limit (capped by link throughput, etc.) and add that to the total amount that can be funneled.
Say this adds up to 200, then there is 200e/tick to distribute to funnel targets. Give it from most preferred funnel targets until they are full, or until the amount to distribute runs out.
The text was updated successfully, but these errors were encountered: