Fixed a very elusive bug causing the menu to crash after finishing
making a country, or going back to the main hud, or just about in any
random place.
Made it so that selftypes of governments can have selftypes, and the
menus will know what to do. Fixed a few bugs. Still trying to get the
manage gov menu working.I'm almost there I think.
Finally figured out what was wrong with the ManageGov menu. There were a
bunch of things that were happening. I think it's fail proof now though.
*Fingers crossed
In a fit of sleeplessness, I discovered the solution to my money
exchange problems! I created a MoneyExchange object that finds the value
of a sum of money with an integrative approach. Values of money is now
found with the formula f(x) = B*x/(A + x) where A is denomFrom and B is
denomTo. This prevents speculative hacking, and all sorts of exchange
problems where values were not bound by asymptotes.
Changed the name of NoSubjects and Subjects to OwnerGov and
OwnerSubjectGov respectively.
Began laying framework for the marketplace. I've determined that the
marketplace must be built before I can actually proceed with accounts.
Added the marketplace class.
Converted the playerdata and all uses of player names to PlayerID. This
will allow for an easier change if player names ever become non-unique.