Lookingglass/OpenRA — Issue #1: Return harvesters to the closest refinery
Author: hoxworth
Created: 2011-11-24 02:03:33+00:00
State: open

Harvesters should return to the closest refinery instead of the one they spawn at, with a few exceptions. The following (or some variant of it) should be followed:

* When full, the harvester should find the nearest refinery.
* The harvester checks to see what other friendly harvesters are returning ore to the same refinery. If two or more harvesters are returning ore, find all friendly ore refineries that are within a certain radius of the harvester's current location. The radius is determined by the distance to the nearest refinery, plus 15 or so tiles (give or take with some playtesting).
* The harvester then finds the refinery in this list that has the fewest harvesters currently delivering ore to it and chooses that refinery to deliver ore to it.

What problems exist with this methodology?