Ticket #1422 (closed enhancement: fixed)

Opened 12 months ago

Last modified 12 months ago

[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

gather-treasures.patch (2.4 KB) - added by Deiz 12 months ago.

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.

Changed 12 months ago by Deiz

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

comment:4 Changed 12 months ago by leper

  • Status changed from assigned to closed
  • Resolution set to fixed

In 11948:

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

comment:5 Changed 12 months ago by leper

  • Keywords review removed
  • Component changed from Core engine to UI & Simulation

Thanks for the patch.

Note: See TracTickets for help on using tickets.