How do Great Prophets gain the Inquisitors ability to remove pressure?

Deadstarre

Expert
Joined
Nov 1, 2015
Messages
960
Location
New York
Inquisitors remove existing pressure from a City using the RemoveHeresy Column, however Great Prophets are similar because they also remove existing pressure from other religions when they spread. The sole ability to inquisit a foreign City would be useful for a new kind of unit, but in looking at the Prophet code, im not seeing where theyre getting this inquisitor property from.

Is it tied to the FoundReligion column? Any ideas?

Code:
           <Class>UNITCLASS_PROPHET</Class>
           <Type>UNIT_PROPHET</Type>
           <Cost>-1</Cost>
           <Moves>2</Moves>
           <Capture>UNITCLASS_PROPHET</Capture>
           <CivilianAttackPriority>CIVILIAN_ATTACK_PRIORITY_HIGH</CivilianAttackPriority>
           <Special>SPECIALUNIT_PEOPLE</Special>
           <Domain>DOMAIN_LAND</Domain>
           <DefaultUnitAI>UNITAI_PROPHET</DefaultUnitAI>
           <Description>TXT_KEY_UNIT_GREAT_PROPHET</Description>
           <Civilopedia>TXT_KEY_CIV5_GREATPROPHETS_TEXT</Civilopedia>
           <Strategy>TXT_KEY_UNIT_GREAT_PROPHET_STRATEGY</Strategy>
           <AdvancedStartCost>-1</AdvancedStartCost>
           <WorkRate>1</WorkRate>
           <CombatLimit>0</CombatLimit>
           <FoundReligion>true</FoundReligion>
           <SpreadReligion>true</SpreadReligion>
           <ReligionSpreads>4</ReligionSpreads>
           <ReligiousStrength>1000</ReligiousStrength>
           <UnitArtInfo>ART_DEF_UNIT_GREAT_PROPHET</UnitArtInfo>
           <UnitFlagAtlas>EXPANSION_UNIT_FLAG_ATLAS</UnitFlagAtlas>
           <UnitFlagIconOffset>16</UnitFlagIconOffset>
           <IconAtlas>EXPANSION_UNIT_ATLAS_1</IconAtlas>
           <PortraitIndex>16</PortraitIndex>
           <MoveRate>GREAT_PERSON</MoveRate>
 
Seems like the prophet-behaviour is hardcoded into the DLL (even in VMC/CP DLL)
Code:
if(IsGreatPerson())
{
    pCity->GetCityReligions()->AddProphetSpread(eReligion, iConversionStrength, getOwner());
}
else
{
    pCity->GetCityReligions()->AddReligiousPressure(FOLLOWER_CHANGE_MISSIONARY, eReligion, iConversionStrength, getOwner());
}
GetReligionData()->SetSpreadsLeft(GetReligionData()->GetSpreadsLeft() - 1);
 
Top Bottom