Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/demographics #1187

Merged
merged 5 commits into from
Aug 4, 2022
Merged

Conversation

psampathkumar
Copy link
Contributor

Closes #1149

It's the length of game.server.demography, doesn't appear to be sent over
the network regardless of the scary comments.

Ported from: longturn/freeciv@1fc5c35e52
'n' - population in citizen units
'c' - number of cities
'm' - number of military units

Suggested demography setting 'ncARPEmOCqrb'.

Idea from: http://forum.freeciv.org/f/viewtopic.php?f=13&t=90396

Ported from: longturn/freeciv@bf80df4aa0
Demographics added for,
 b = include Built Units
 k = include Killed Units
 l = include Lost Units

Also,  Reverse ranking in pollution demographics
Because it makes little sense to see the top rank as zero pollution
which is usually a underdeveloped player

Ported from:
longturn/freeciv@7672095813
longturn/freeciv@d158e95176
longturn/freeciv@7dee3ef636
- Scores showup in demographics
- A new score for league games in lt.net
Score = N_techs^1. 7 + N_units_built + 3xN_units_killedx[N_units_killed/(N_units_lost+1)]^0.5

Ported from: longturn/freeciv@4cc9e68e05
@lmoureaux
Copy link
Contributor

In the last commit:

The max length of the demography string is 15, so not all will fit. Something like 'nciAaPEgRmOCqrb' still does, though.

'i' - Improvements: total number of normal improvements in all cities
'a' - Agriculture: total food surplus (after consumption and upkeep)
'g' - Gold Income: total gold income (before upkeep costs)
'w' - Wonders: total number of wonders, Great and small.

Agriculture value takes the surplus after consumption and upkeep like the
Production value also does. Wonders includes Palace as it counts as a small
wonder.

Gold income takes the income _before_ upkeep costs at least for now, since
that number is easier to access. Otherwise all the different
gold_upkeep_style settings would need to be dealt with separately. (Though
player_get_expected_income() could perhaps be used.)

Also, reorder Research after Production and Economy to have the
production values in the same order as shown in the city view.

Idea from Hans Lemurson: http://forum.freeciv.org/f/viewtopic.php?f=13&t=90396

Ported from: longturn/freeciv@d5888eaab4
@jwrober jwrober self-requested a review August 4, 2022 17:51
@jwrober jwrober merged commit 813d07c into longturn:master Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port Longturn patches - demographics
3 participants