Food production question

Smallpox vs. largepox, gen2 vs gen5, early war vs. peaceful alliances. Which is your favourite gaming style?
Post Reply
chomwitt
Posts: 6
Joined: Sun Jul 27, 2014 4:23 pm

Food production question

Post 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.
cazfi
Elite
Posts: 3107
Joined: Tue Jan 29, 2013 6:54 pm

Re: Food production question

Post 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 ...
chomwitt
Posts: 6
Joined: Sun Jul 27, 2014 4:23 pm

Re: Food production question

Post by chomwitt »

Thanks for the reply! I wasnt aware of that hidden complexity in food calculations.
Post Reply