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

New growth rate calculation #59

Merged
merged 1 commit into from Jul 11, 2021
Merged

New growth rate calculation #59

merged 1 commit into from Jul 11, 2021

Conversation

F1rrel
Copy link
Owner

@F1rrel F1rrel commented Jul 11, 2021

Calculates new town growth rate based on missing cargo percentage.

Firstly a maximum growth rate for the town is calculated with g_factor being the growth rate at 0 population. The growth rate is faster the bigger the town is. The decline is slow enought to have reasonable growth rate even for bigger towns.
max_growth_rate

An exponential extra growth is calculated based on missing cargo requirements. The extra growth rate factor is multiplied by the difference between lowest TGR and maximum TGR to get extra growth rate in days. The effect of missing cargo decreases with higher fulfillment, but is still significant.
extra_growth_rate_factor

The resulting growth rate is the combination of both factors, the max growth rate and the extra growth rate.

@F1rrel F1rrel added the enhancement New feature or request label Jul 11, 2021
@F1rrel F1rrel added this to the 7.0 milestone Jul 11, 2021
@F1rrel F1rrel self-assigned this Jul 11, 2021
@F1rrel F1rrel merged commit 2982efb into master Jul 11, 2021
@F1rrel F1rrel deleted the new_growth_calculation branch July 11, 2021 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant