restricted autoupgrade

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

restricted autoupgrade

Post 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?
Augmented2 ruleset/modpack for freeciv2.6: http://forum.freeciv.org/f/viewtopic.php?f=11&t=91047
zeko
Posts: 12
Joined: Wed Oct 03, 2018 6:36 pm

Re: restricted autoupgrade

Post 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
Post Reply