Tarquelne
Follower of Tytalus
- Joined
- Dec 8, 2001
- Messages
- 3,718
A hidden city will, no longer trade and have its worktile radius reduced to 1.
Nifty. Sounds at least as good as freezing the population. Probably quite a bit better.
But now the pop-freeze code needs to be applied to something else. Unused code can go rotten and spoil your HD.
An idea:
Base the "Minlevel" off the casters level. Level -3, or /2, or whatever. Might be neat for Sindar archmages.
EDIT: The .setMinLevel effect doesn't go away when the building does. As far as I know it has to be turned off with specific python.
This might be the way to go.
Spoiler :
Code:
if gc.getPlayer(pCity.getOwner()).getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_SIDAR'):
if pCity.getNumRealBuilding(gc.getInfoTypeForString('BUILDING_HIDDEN_CITY')) > 0:
pPlot.setMinLevel(5)
else:
pPlot.setMinLevel(-1)
This would turn the "wall" on and off at the beginning of a turn. To turn it off as soon as a unit is killed you'd need something similar on "onUnitKiller" or "onUnitLost".
EDIT#2: I haven't tried out the python above. It may have syntax errors. (Or any other kind, too.)