Can Python bring back terrain-transforming (a la Civ2's Engineer)?

So, something like that (after the line where you destroy the improvement):
Code:
			pPlot.setImprovementType(-1)
			pPlayer = gc.getPlayer(pPlot.getOwner())
			iGold = 100
			pPlayer.changeGold(iGold)
 
And then you realise the Build Info comes with a iCost xml tag.
Just use a negative value?
 
I saw it as a treasure found while digging the improvement! :lol:

Outside cultural borders the code won't work I guess.

The schema says integer so yes it could be negative. Would never think of putting a negative value in iCost though...
 
Back
Top Bottom