fheroes2 icon indicating copy to clipboard operation
fheroes2 copied to clipboard

Various minor improvements

Open oleg-derevenetz opened this issue 1 year ago • 0 comments
trafficstars

This PR:

  • Rewrites the Rand::Queue logic. 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 be const);
  • Simplifies the BagArtifacts::exchangeArtifacts(). Instead of passing bags and heroes separately, this method has been turned into static and accepts only exchanging heroes. Also a long-standing TODO has been implemented;
  • A minor modernization of a code related to Army and Troop has been performed.

oleg-derevenetz avatar Oct 19 '24 10:10 oleg-derevenetz