[PATCH] Gatherers do not drop off last batch of resources before next queued order
If a worker is gathering from e.g. a farm field and that worker has a pending queued order, it will keep gathering and shuttling back to a dropsite until the resource node is depleted. However, it fails to drop off the last batch of resources it gathered before the resource node depleted, instead beginning working on the queued order immediately, carrying the batch of resources with it.
Change History
(7)
Milestone: |
Backlog → Alpha 20
|
Component: |
Core engine → UI & Simulation
|
Keywords: |
review added
|
Summary: |
Gatherers do not drop off last batch of resources before next queued order → [PATCH] Gatherers do not drop off last batch of resources before next queued order
|
Owner: |
set to mimo
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
How should this behave?
At present, when the resource is exhausted and the unit has no queued orders, it will attempt to find another nearby resource of the same type, and if that fails, will drop off its carried resources at the nearest dropsite.
I think that a gatherer with queued orders should always drop its resources off if it's carrying something and its next order isn't another gather order. If the next order is a gather order, it should drop resources off if either a) it's at its carrying capacity or b) the queued gather order is for a different type than what's being carried.
On a somewhat-related note, it seems to me that Gather orders should push ReturnResource orders in front of themselves if a unit has been told to gather the type that it's already carrying and it can't carry any more. The current behaviour has the unit walk to the target, try to gather, fail, and then return to the dropsite, a complete waste of time.