Ticket #1422 (closed enhancement: fixed)
[PATCH] Auto-gather all type of nearby treasures
| Reported by: | fabio | Owned by: | Deiz |
|---|---|---|---|
| Priority: | Nice to Have | Milestone: | Alpha 11 |
| Component: | UI & Simulation | Keywords: | patch |
| Cc: |
Description
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
Attachments
Change History
comment:1 Changed 12 months ago by k776
- Priority changed from Should Have to Nice to Have
- Summary changed from gather all type of near treasures to Auto-gather all type of nearby treasures
comment:2 Changed 12 months ago by Deiz
- Keywords patch review added
- Owner set to Deiz
- Status changed from new to assigned
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.
comment:3 Changed 12 months ago by Deiz
- Summary changed from Auto-gather all type of nearby treasures to [PATCH] Auto-gather all type of nearby treasures
