Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2000:
[Freeciv-Dev] Re: Patch: generalized granary size (PR#635)
Home

[Freeciv-Dev] Re: Patch: generalized granary size (PR#635)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Patch: generalized granary size (PR#635)
From: Andrew McGuinness <andrew_mcguinness@xxxxxxxxxxx>
Date: Sun, 24 Dec 2000 21:49:52 +0000

On Sun, Dec 24, 2000 at 03:29:08PM +0000, Andrew McGuinness wrote:
> 
> The values fixed in correspond to 76 / city_size, except that the value
> for size 1 is 57 instead of 76.  This looks like a manual tweak.
> 
> As Thue points out, prior to May 1999, fooxbox_width was = city_size.
> (instead of city_size+1)
> 
> What this means is that prior to the May 1999 change, 
> the AI valued each unit of city growth the same, except that 
> getting size 2 was worth only 3/4 as much
> (because of the first value being 57 instead of 76).

Also, the value for city size 1 is not used much in the code.
The only places where it is used are for settler actions and
for setting tax and luxury rates.  Everywhere else food_weighting
is called with food_weighting( MAX( 2, citysize)) or 
food_weighting( MAX( 3, citysize )).  So, the AI seems to be
assuming for most purposes that the city will grow to size 2
or 3 soon anyway.  This makes the 57 instead of 76 of less
significance.

So, it is consistent with how the code originally was to make
food_weighting(cs) return (5*FOOD_WEIGHTING)/(cs+1), exactly as
Thue said, except that food_weighting(1) should be 36 instead
of 48, for what it's worth.

-- 
Andrew McGuinness     Luton, UK        andrew_mcguinness@xxxxxxxxxxxxx



[Prev in Thread] Current Thread [Next in Thread]