Page 1 of 1

Civil War Source?

Posted: Wed Nov 08, 2017 9:51 am
by Eusebio Ptolomeu
Does anybody knows where is the settings for civil war on the source code of the game, at Github?

Re: Civil War Source?

Posted: Wed Nov 08, 2017 1:19 pm
by dunnoob
Eusebio Ptolomeu wrote:Does anybody knows where is the settings for civil war on the source code of the game, at Github?
Start at server/settings.c near line 2379, but that's only about the setting help+type+default+category (sociology in this case) etc.:

Code: Select all

    GEN_INT("civilwarsize", game.server.civilwarsize,
          SSET_RULES_FLEXIBLE, SSET_SOCIOLOGY, SSET_RARE,
          ALLOW_NONE, ALLOW_BASIC,
          N_("Minimum number of cities for civil war"),
          N_("A civil war is triggered when a player has at least this "
             "many cities and the player's capital is captured. If "
             "this option is set to the maximum value, civil wars are "
             "turned off altogether."), NULL, NULL, NULL,
          GAME_MIN_CIVILWARSIZE, GAME_MAX_CIVILWARSIZE,
          GAME_DEFAULT_CIVILWARSIZE)


What you are really looking for are presumably all uses of game.server.civilwarsize anywhere in the code.