Tomb of Sucellus modding question

Pocus

Warlord
Joined
Feb 12, 2004
Messages
160
Hi,

I would like to give the power to remove disease to infirmaries (this would help much the AI, by preventing his whole army being diseased once the plague start). But I don't see what is the line in the tomb of sucellus doing that, except perhaps the Flavor entry, but this is not clear? Can somebody give me some info on that?
 
The only difference is iAreaHealth, set to 1, is this the flag? Suspicious I would say. Unless this is hardcoded in the DLL (shivers!)
 
The only difference is iAreaHealth, set to 1, is this the flag? Suspicious I would say. Unless this is hardcoded in the DLL (shivers!)

Its hardcoded in the DLL (it used to be in python). Take a look at the "Modders Guide to FfH" thread and you wills ee that there is a new attribute on buildings called "RemovePromotion". A promotion set there will be removed from any unit in that city. (I dont use any hard coding in the BtS version).
 
It's in Python, in CvEventsManager. The lines are (in doTurn());

Code:
		if pCity.hasBuilding(gc.getInfoTypeForString('BUILDING_AQUAE_SUCELLUS')):
			for i in range(pPlot.getNumUnits()):
				pUnit = pPlot.getUnit(i)
				pUnit.setHasPromotion(gc.getInfoTypeForString('PROMOTION_DISEASED'), False)
				pUnit.setHasPromotion(gc.getInfoTypeForString('PROMOTION_WITHERED'), False)
				pUnit.setHasPromotion(gc.getInfoTypeForString('PROMOTION_PLAGUED'), False)

Edit: Or at least it was - I'll leave this here as a Python example.
 
Its hardcoded in the DLL (it used to be in python). Take a look at the "Modders Guide to FfH" thread and you wills ee that there is a new attribute on buildings called "RemovePromotion". A promotion set there will be removed from any unit in that city. (I dont use any hard coding in the BtS version).

Can you link us to the Modders guide to FfH ? Or did you mean the Modders guide to BtS (in your siggie) ?
 
Ok thanks. It is a good thing to change the mod internals in such ways!
 
Back
Top Bottom