used Economy::find_closest_warehouse that uses a star algorithm as path finding which is more efficient.
also commented in the code: its ok to ignore stock policy.
tested now with headquater and additional 1 warehouse. it seems to work, the bread_paddle is send to the warehouse closest to the bakery that needs the worker.
used Economy: :find_closest_ warehouse that uses a star algorithm as path finding which is more efficient.
also commented in the code: its ok to ignore stock policy.
tested now with headquater and additional 1 warehouse. it seems to work, the bread_paddle is send to the warehouse closest to the bakery that needs the worker.
I think I'm done, you can test and review