Page 1 of 1

restricted autoupgrade

Posted: Fri Aug 02, 2019 11:11 pm
by Wahazar
I would like to make autoupgrade effect restricted to the units inside cities, or at least units on the land -
unfortunately when I added any restriction like

Code: Select all

"TerrainClass", "Land", "Local", TRUE
or

Code: Select all

"CityTile", "Center", "Local", TRUE
Any idea what I'm doing wrong?

Re: restricted autoupgrade

Posted: Sat Aug 03, 2019 1:23 am
by zeko
EFT_UNIT_UPGRADE does not appear to work that way. Its requirements seem to apply player-wide, and the units it selects are totally random. https://github.com/freeciv/freeciv/blob ... ols.c#L402