Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Explicit harverster delivery order should be honored only once #15997
Current behavior: if an harvester has an explicit delivery ordered to a distant refinery, it will keep doing that long distance mining forever. This is not a bug as is but desired as documented in the code
Suggested alternative behavior: an explicit deliver order should force the harvester to deliver to the targeted refinery only once.
The rationale being that, as far as I can tell, ordering delivery to a specific refinery happens in the following two scenarios:
In the first scenario, the player will likely forget the harv or might actually call back different harvs. This will cause the never-forgetting-harv to continue making a non-optimal path on the patch they're currently harvesting (think of a large multi mine ore patch with several refs, these harv will never pick a more optimal one).
In the second scenario, the harv will harvest back and forth between the explicit patches in the main base and the refinery expansion.
As pointed out on Discord, it makes sense to remember the refinery in multi-player mode, where you want deliveries happening to an ally with your harvester. So if the "deliver once" mode is to be implemented, we probably want to remember the player to which it should deliver to when choosing the closest refinery.
Some notes from discord on this: