Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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: Patch:

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 (1)

gather-treasures.patch (2.4 KB) - added by Deiz 8 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by Kieran P

Priority: Should HaveNice to Have
Summary: gather all type of near treasuresAuto-gather all type of nearby treasures

comment:2 Changed 8 years ago by Deiz

Keywords: patch review added
Owner: set to Deiz
Status: newassigned

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.

Changed 8 years ago by Deiz

Attachment: gather-treasures.patch added

comment:3 Changed 8 years ago by Deiz

Summary: Auto-gather all type of nearby treasures[PATCH] Auto-gather all type of nearby treasures

comment:4 Changed 8 years ago by leper

Resolution: fixed
Status: assignedclosed

In 11948:

Auto-gather all types of treasures. Fixes #1422. Patch by Deiz.

comment:5 Changed 8 years ago by leper

Component: Core engineUI & Simulation
Keywords: review removed

Thanks for the patch.

Note: See TracTickets for help on using tickets.