1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

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

Discussion in 'Mod Creation Help' started by Zeronix, Feb 1, 2018.

  1. Zeronix

    Zeronix Chieftain

    Joined:
    Jan 21, 2018
    Messages:
    12
    Gender:
    Male
    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?
     
  2. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    5,682
    Location:
    Illinois, USA
    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.
     
  3. Zeronix

    Zeronix Chieftain

    Joined:
    Jan 21, 2018
    Messages:
    12
    Gender:
    Male
    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.
     
  4. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    5,682
    Location:
    Illinois, USA
    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.
     

Share This Page