Re: [Freeciv-Dev] Looking for a unit.
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Nicolas BRUNEL wrote:
>
> in my diplomat patch, I want ai settlers to check if a diplomat is
> within range before building a town. Is there another way that going
> through the list of all ennemy units ?
Does the AI avoid building cities if there is a nearby enemy
_military_ unit? It didn't used to deal with this properly,
so not doing so with diplomats may not be a big deal.
Unless it now does it approximately with the territory[] stuff,
... I'm not sure.
auto_settler_findwork() has, as part of looking for city sites:
/* deal with danger Real Soon Now! -- Syela */
-- David
|
|