Is Kongo's no-holy-site trait hardcoded?

Zeronix

Chieftain
Joined
Jan 21, 2018
Messages
12
I was trying to see how Kongo's no-holy-site trait is implemented in-game, but I couldn't find any modifiers that prevent Kongo from building holy sites or that raze holy sites upon capturing cities. Is this behaviour simply hard-coded to Kongo?
 
It's in the xml
Code:
	<ExcludedDistricts>
		<Row DistrictType="DISTRICT_HOLY_SITE" TraitType="TRAIT_LEADER_RELIGIOUS_CONVERT"/>
	</ExcludedDistricts>
and also
Code:
	<ExcludedGreatPersonClasses>
		<Row GreatPersonClassType="GREAT_PERSON_CLASS_PROPHET" TraitType="TRAIT_LEADER_RELIGIOUS_CONVERT"/>
	</ExcludedGreatPersonClasses>
I may have missed another table that excludes Kongo from Holy Sites and Great Prophets, in fact I am pretty sure there is a re-direct modifier in the Buildings file that gives Kongo Apostles or something else instead of a Great Prophet if they build Stonehenge.
 
ooh, okay that helps a lot. Is the ExcludedDistricts basically a black box that you can't look inside? i.e. you know that it prevents a civ with a certain trait from getting a certain district ever, but there's no way to modify the "raze district upon capture" functionality for other situations? I was thinking of making a mod that razes all districts every time you capture a city using Kongo as the example to work from, but it doesn't seem possible.
 
It means that whoever has that trait is excluded from having that district. there's no way to modify the way pre-provided database tables and columns are implemented by the game.
 
Back
Top Bottom