Another algorithm for retraining troops (is this the place to put this topic?)

Seenan

Approved user
Joined
Mar 25, 2015
Messages
37
Cause it still isn't 100%/still messes up sometimes, and I hoped it would be fixed completely.

Get total amount of time, go to the bigger time mobs, throw them into one barracks...Then the next, and so on.

Recursively go through in that fashion until you're down to regular foot-soldiers. Basically the same idea as currently, but with extra steps.

Check the times on the barracks'. Use the archers and soldiers as 'catalysts' for fixing the timers up. Unless it's such a huge time issue (3+ minutes) that other troops would be better. The idea is to swap archers for infantry units. If there's a barracks time that's somewhat higher than another with archers, take one archer and put it into the other barracks, and take an infantry from that barracks with the archer in it, and put it in the previous barracks. Repeat if necessary. Repeat until the algorithm can't work anymore (does not know how to go on) or until it's optimized to the brink (less than 30 seconds of difference?). This is usually the way I balanced it previously...until I got lazy.

Idk. I'm just irked when I see a barracks that's, for some reason, a full 2 minutes above another, with the 3rd one being in the middle of both.
 
Top