Page MenuHomeWildfire Games

hero selection group
AbandonedPublic

Authored by Nescio on Mar 27 2020, 12:11 PM.

Details

Reviewers
None
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Summary

This patch sets a selection group in the shared template_unit_hero.xml, which means that double-clicking on a hero will select all your heroes within view (as is already the case for catafalques). This does not really matter for ordinary random maps, where players can have at most one hero at any given time, but can be helpful for maps that start with multiple heroes, e.g. civilization sandbox scenarios.
See also D2675 and D2677.

Test Plan

Agree this is desirable.

Event Timeline

Nescio created this revision.Mar 27 2020, 12:11 PM
Owners added a subscriber: Restricted Owners Package.Mar 27 2020, 12:11 PM

Successful build - Chance fights ever on the side of the prudent.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/1930/display/redirect

bb added a subscriber: bb.Apr 28 2020, 8:53 PM

I disagree this is desirable, since heroes can be totally different units (they can be inf, cav, ele, healers etc.) and thus shouldn't be grouped as being only 1 kind in the formation tab. Do notice that heroes with the same template already are grouped (as it should). IMO the current behavior is correct.

The problem you are trying to solve: "select units with a certain class", should be solved differently, involving the classes, instead of setting an arbitrary key in the template.

Nescio abandoned this revision.Apr 28 2020, 9:43 PM