3Miro
Deity
Alright, tested again with the latest svn version (794), and no python errors
But currently mercenary deserting can happen even with a developed economy, even when you spend more then 1000 golds on research/spying/culture
For example, you have your science slider at 100%, with -10 gold/turn. If you spent all your gold during the turn, but forgot to lower the slider to 90%, one of your mercenaries leaves.
This is a function of when gold is deducted from the account vs when the slider is auto-adjusted. The Merc code comes before the auto-slide and hence you may lose Mercs if you don't adjust it manually. You may also lose much more than one Merc, potentially all of them can leave, if you don't have enough gold.
The only fix that I can see is if I implement slider auto-adjust within the merc code.