The intelligent transfer mechanism is not bad, but it doesn't take into account the realities – after all, different situations can occur. As a result, you're left with a Silver Pegasus when you need a Centaur to remain. Or a Wolf Rider (gray) remains instead of a Hobgoblin. You have to adjust everything. A new mechanism with a click on the desired unit would be more practical.
I dumped the whole pile, and then changed it if necessary; it will be easier for me than planning the transfer, taking into account a complex algorithm.
However, there is a dangerous moment here – to over-automate and partially take away the player's need to think.
For example, here's an idea: when leaving a single unit, the algorithm will take into account the terrain on which the hero is standing.
In general, in connection with all of the above, I even had the idea to make it so that the weakest creature is left (that is, to simplify and make the algorithm more "stupid").
Full/partial exchange of artifacts, doll/backpack – yes, that should be done...
последняя версия - 5.0 RC96 (19.09.2020)
последнее видео: https://www.youtube.com/watch?v=u70wC0DJ7I8
полное подробное описание