restricted autoupgrade

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
Wahazar
Hardened
Posts: 256
Joined: Mon Jul 02, 2018 1:49 pm

restricted autoupgrade

Postby Wahazar » Fri Aug 02, 2019 11:11 pm

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?

zeko
Posts: 12
Joined: Wed Oct 03, 2018 6:36 pm

Re: restricted autoupgrade

Postby zeko » Sat Aug 03, 2019 1:23 am

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