fheroes2
fheroes2 copied to clipboard
Various minor improvements
trafficstars
This PR:
- Rewrites the
Rand::Queuelogic. The previous logic was weird and did many nonsense, there is a way to do the same much easier and without rewriting the contents of the queue (the whole process can beconst); - Simplifies the
BagArtifacts::exchangeArtifacts(). Instead of passing bags and heroes separately, this method has been turned intostaticand accepts only exchanging heroes. Also a long-standing TODO has been implemented; - A minor modernization of a code related to
ArmyandTroophas been performed.