Skip to content

Commit

Permalink
Add new demographics
Browse files Browse the repository at this point in the history
Demographics added for,
 b = include Built Units
 k = include Killed Units
 l = include Lost Units
  • Loading branch information
Pranav authored and lmoureaux committed Apr 8, 2021
1 parent 5533fbe commit 7672095
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/report.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ static int get_cities(const struct player *pplayer);
static int get_improvements(const struct player *pplayer);
static int get_all_wonders(const struct player *pplayer);
static int get_mil_units(const struct player *pplayer);
static int get_units_built(const struct player *pplayer);
static int get_units_killed(const struct player *pplayer);
static int get_units_lost(const struct player *pplayer);


static const char *area_to_text(int value);
Expand Down Expand Up @@ -194,6 +197,9 @@ static struct dem_row {
{'R', N_("Research Speed"), get_research, science_to_text, TRUE },
{'M', N_("Military Service"), get_mil_service, mil_service_to_text, FALSE },
{'m', N_("Military Units"), get_mil_units, mil_units_to_text, TRUE },
{'b', N_("Built Units"), get_units_built, mil_units_to_text, TRUE },
{'k', N_("Killed Units"), get_units_killed, mil_units_to_text, TRUE },
{'l', N_("Lost Units"), get_units_lost, mil_units_to_text, TRUE },
{'O', N_("Pollution"), get_pollution, pollution_to_text, FALSE },
{'C', N_("Culture"), get_culture, culture_to_text, TRUE }
};
Expand Down
3 changes: 3 additions & 0 deletions server/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -2880,6 +2880,9 @@ static struct setting settings[] = {
" R = include Research Speed\n"
" M = include Military Service\n"
" m = include Military Units\n"
" b = include Built Units\n"
" k = include Killed Units\n"
" l = include Lost Units\n"
" O = include Pollution\n"
" C = include Culture\n"
"Additionally, the following characters control whether "
Expand Down

0 comments on commit 7672095

Please sign in to comment.