Opened 12 years ago

Closed 12 years ago

Last modified 12 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 12 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by Kieran P, 12 years ago

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

comment:2 by Deiz, 12 years ago

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.

by Deiz, 12 years ago

Attachment: gather-treasures.patch added

comment:3 by Deiz, 12 years ago

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

comment:4 by leper, 12 years ago

Resolution: fixed
Status: assignedclosed

In 11948:

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

comment:5 by leper, 12 years ago

Component: Core engineUI & Simulation
Keywords: review removed

Thanks for the patch.

Note: See TracTickets for help on using tickets.