When castle or a warehouse reaches XXX_max AI tuning param, the AI will destroy excess producers attached to that stock to avoid clogging roads. However, because each stock is handled independently, and "nearest stock" by straightline distance is used to determine which stock a producer building is attached to, when the closest stock by FLAGSEARCH distance is not the same stock, the produce will never be throttled and will keep piling resources up in a stock that may already be over max.
A way to avoid this might be to change the throttling checks to use flagsearch distance instead of straight line dist?
When castle or a warehouse reaches XXX_max AI tuning param, the AI will destroy excess producers attached to that stock to avoid clogging roads. However, because each stock is handled independently, and "nearest stock" by straightline distance is used to determine which stock a producer building is attached to, when the closest stock by FLAGSEARCH distance is not the same stock, the produce will never be throttled and will keep piling resources up in a stock that may already be over max.
A way to avoid this might be to change the throttling checks to use flagsearch distance instead of straight line dist?