Summary: AI do not take into account pop cost of settlers to
buy them
                 Project: Freeciv
            Submitted by: tirolalira
            Submitted on: mié 15 jun 2011 15:01:03 GMT
                Category: ai
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: None
         Planned Release: 



When a custom Ruleset increases the population cost of settlers (for example
pop_cost=2 like civ3), the AI still tries to buy the settlers when the city
just grow to size 2.
It should wait until city grows to size (1 + pop_cost) to try to buy the

It is a minor issue, but it causes some waste of gold in the initial stages
of the game, and I think it could be easy to fix.

I think this is the related code in aicity.c:

if (get_city_bonus(pcity, EFT_GROWTH_FOOD) == 0
    && city_size_get(pcity) == 1
    && city_granary_size(city_size_get(pcity))
       > pcity->food_stock + pcity->surplus[O_FOOD]) {
/* Don't buy settlers in size 1 cities unless we grow next turn */


Reply to this item at:


  Mensaje enviado vía/por Gna!

Freeciv-dev mailing list

Reply via email to