Civil War Source?

Can you help improve your favourite game? Hardcore C mages, talented artists, and players with any level of experience are welcome!
Eusebio Ptolomeu
Posts: 16
Joined: Sat Oct 07, 2017 1:51 am

Civil War Source?

Postby Eusebio Ptolomeu » Wed Nov 08, 2017 9:51 am

Does anybody knows where is the settings for civil war on the source code of the game, at Github?

User avatar
dunnoob
Hardened
Posts: 267
Joined: Mon Dec 23, 2013 3:13 am
Location: Hamburg
Contact:

Re: Civil War Source?

Postby dunnoob » Wed Nov 08, 2017 1:19 pm

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.