Implemented database code for King exp/coin events (KING_UPDATE_NOAH_OR_EXP_EVENT). Refs #19.
Implemented the King /prize command and cleaned up the event opcodes. Refs #19.
Impeachment cases (that relied on future date/time checks) are now mocked up in CKingSystem::CheckKingTimer().
The current month is now pulled at the start of the method and used subsequently after that, instead of awkwardly checking on-demand (unlike... everything else).
KING_CANDIDACY_NOTICE_BOARD is now loaded from the database.
Implemented CKingSystem::LoadRecommendList(), which is designed to pull the top 10 clans in that nation (we use the existing rankings) for King nominations. Protected worthwhile treasury access against race conditions.
Started implementing Javadoc-style docs.
Documented our Lua wrapper.
More documentation...
Mocked up reading/writing from/to the candidates' noticeboard. Refs #19.
Let's rely on Windows headers a fraction less (also, BOOL != bool).
Implemented an enumeration for the King system's candidacy notice board opcodes (whew!).
Should use empty() wherever possible.
Candidacy noticeboard updates should now be saved in the database (note: untested). Refs #19.
Implemented the database side of candidacy recommendations (also untested) & fixed a bug with the wrong opcode being used for noticeboard packets. Refs #19.
Couple of doc tweaks.