Where is the religion auto-founding defined ?

Refar

Deity
Joined
Apr 10, 2005
Messages
4,608
Religion where the founding techs were aquired from WBuilder or which do not have a tech prereq (those i am interested in) will be founded on turn 6....

Where is the code responcible for this ? I assume it is in the SDK, but i couldnt find it. Does someone know ?
 
Now I was told at some point that the Desert War scenario in the vanilla game used python to suppress this. I'm not sure if that means the auto-founding is actually defined in python, but depending on what you're doing this might be useful. The only thing is, I can't find where the code is supposed to be.
 
it's in CvGame::doHolyCity .

Tcho !
 
Thank you very much Sto. Seems you are allways the one to help with those SDK questions.

I would have probably never found it myself. Had DoHolyCity() already dismissed, as i was assuming it is only responcible for religions spread.

@Dryhad - thanks as well - now after Sto pointed at it - DoHolyCity() is exposed to python - i believe it is in GameUtils.py - probalby that was used in DesertWar.
I think i prefer "fixing" it in the SDK.
 
@Dryhad - thanks as well - now after Sto pointed at it - DoHolyCity() is exposed to python - i believe it is in GameUtils.py - probalby that was used in DesertWar.
I think i prefer "fixing" it in the SDK.
Yeah, I looked into it and figured out how to do what I wanted as well. Interestingly enough, the python function it's exposed to does nothing but return "false". If you change that to "true" then it jumps out of DoHolyCity(). It, uh, it seems to exist for no other purpose than to allow Desert War (and later me) to do this.
 
Back
Top Bottom