[PATCH] Auto-gather all type of nearby treasures
When a unit receive the order to gather a treasure, after getting it, it will automatically only collects near treasures of the same type (food, stone or metal). It would be nice if it will also automatically collect all type of near treasures.
This was discussed here:
http://www.wildfiregames.com/forum/index.php?showtopic=16000
Change History
(6)
Priority: |
Should Have → Nice to Have
|
Summary: |
gather all type of near treasures → Auto-gather all type of nearby treasures
|
Keywords: |
patch review added
|
Owner: |
set to Deiz
|
Status: |
new → assigned
|
Summary: |
Auto-gather all type of nearby treasures → [PATCH] Auto-gather all type of nearby treasures
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Component: |
Core engine → UI & Simulation
|
Keywords: |
review removed
|
I added a conditional to each of the FindNearbyResource filters to accomplish this. Fixed a minor unreported bug along the way.
Specifically, input.js was using a string for resource types instead of an object, e.g. it might've been "food" instead of { generic: "food", specific: "fruit" }. This only occurred when sending gatherers to a preset rally point.