restricted autoupgrade

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
Posts: 362
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


Code: Select all

"CityTile", "Center", "Local", TRUE

Any idea what I'm doing wrong?
Augmented2 ruleset/modpack for freeciv2.6: viewtopic.php?f=11&t=91047

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. ... ols.c#L402