I found how the game sets which unit is shown on top for stacks.
It's the unit with the highest BASE (attack+ranged) stat, but transports add +50 to it so they are usually show on top. That's all. Levels, equipment, enchantments are ignored and I don't think I can add those.
Do we want to add any improvements to this?
A few I can think of
-show heroes on top?
-show spirits on top? (so they can't hide among units and meld nodes unnoticed)
-show most expensive unit instead of strongest attack power?
-show settlers on top?
-Use a predefined priority order, like X unit is always on top of Y unit? If yes, what sort of order?
It's the unit with the highest BASE (attack+ranged) stat, but transports add +50 to it so they are usually show on top. That's all. Levels, equipment, enchantments are ignored and I don't think I can add those.
Do we want to add any improvements to this?
A few I can think of
-show heroes on top?
-show spirits on top? (so they can't hide among units and meld nodes unnoticed)
-show most expensive unit instead of strongest attack power?
-show settlers on top?
-Use a predefined priority order, like X unit is always on top of Y unit? If yes, what sort of order?