Page 1 of 1

Food production question

Posted: Wed Aug 13, 2014 11:33 am
by chomwitt
In default ruleset of freeciv 2.3

games.ruleset:
; Parameters used to generalize the calculation of city granary size:
; if city_size <= num_inis:
; city_granary_size = (granary_food_ini[city_size] * foodbox / 100)
; if city_size > num_inis;
; city_granary_size = (granary_food_ini[num_inis] +
; granary_food_inc * (city_size - num_inis)) * foodbox / 100
granary_food_ini = 20
granary_food_inc = 10

I found that foodbox is a server option that u can check with /show foodbox in the server but what is num_inis? It must be in the code cause i didnt find sth in the rulesets.

Re: Food production question

Posted: Wed Aug 13, 2014 5:29 pm
by cazfi
It's the number of values in "granary_food_ini" list (yes, I know it seems like a single value in default ruleset, but it can take multiple values, each corresponding to a city size)

Code: Select all

granary_food_ini = 10, 10, 10, 20, 20, 20
granary_food_inc = 10
would give granary of size 10 in size 1, 2, and 3 cities, granary of size 20 in size 4, 5, and 6 cities, and then 30, 40, 50 ...

Re: Food production question

Posted: Mon Aug 25, 2014 1:42 am
by chomwitt
Thanks for the reply! I wasnt aware of that hidden complexity in food calculations.