Topic: Soldier sorting in the Attack dialog box
SandJ Topic Opener |
Posted at: 2024-11-29, 22:36
When attacking a site, the dialog box where you select who is attacking and who is not, has me wondering. How are the soldiers sorted? It is not by any of the attributes (Health, Attack, Defence, Evade) since heroes and rookies are all mixed up. It does not appear to be by distance from the target, I think. It does not take into account whether soldiers are still healing. And what makes we really curious is the way the list of soldiers re-arranges as you move one from one section to the other. It makes the list shuffle again. So it cannot be an internal ID number for each soldier. How are they arranged? (And I will have follow-up comments such as "It would be nice if we could sort them by distance / skill / injured.") Top Quote |
mxb2001 |
Posted at: Yesterday 01:00
I think it is by order of arrival in the forts. Not a clue how it sorts the forts if there is >1. What I've seen is that returning soldiers line up at the end of the queue. I think... -- |
Nordfriese |
Posted at: Today 17:00
The soldiers are sorted by air distance to the attack target. Equally distant soldiers are always in arbitrary order, although they usually end up grouped by building and soldiers within a building typically in order of arrival. Note that air distance does not account for obstacles so it may not accurately reflect actual walking distance. This is an optimization for performance. This is the code where the sorting takes place: Top Quote |
kaputtnik |
Posted at: Today 17:12
Do the slight background colors of the soldiers show this? I wonder what the coloring shows... Top Quote |
Nordfriese |
Posted at: Today 18:09
Yes, the background tints indicate soldiers who are in the same building, or on the same warship. Top Quote |
mxb2001 |
Posted at: Today 18:17
I usually send fully healed best trained soldiers (I imagine that's the usual) so options to sort by training/healing would be nice. It's not a big deal though, scanning through them for the ones you want is not exactly the most tedious chore... On the other hand I recall doing it too quickly and misclicking. Although that might be my poor hand eye co-ordination (which is why I play strategy/thinking games and eschew arcade games!). -- |