Where in XML is setting for Shrine increasing spreadrate?

Craig_Sutter

Deity
Joined
Aug 13, 2002
Messages
2,773
Location
Calgary, Canada
As the title: where in the building XMLs does it set how a Shrine increases spread rate for a Religion? I looked at the religious buildings and can't find any spread rate modifier that I can tell... checked the wiki, too.

It may be this:

<ReligionChanges>
<ReligionChange>
<ReligionType>RELIGION_ISLAM</ReligionType>
<iReligionChange>1</iReligionChange>
</ReligionChange>
</ReligionChanges>

as this is only religious type entry that the wiki doesn't identify... but 1 looks Boolean to me, where I expected a percent modification.
 
regarding:
<iReligionChange>1</iReligionChange>

this is not boolean, but spread increase factor

formula for religion spread is:

base_speed = speed set in religion info
holy_city = HOLY_CITY_INFLUENCE from GlobalDefines.xml
shrine = iReligionChange value, which is set in building info for shrine (you can set this also for other buildings too)

speed = base_speed * (holy_city + shrine)

example (from our TR mod)

old spread rate for judaism:
base Judaism spread speed is 33
with holy city only it is 33
with shrine 66

new model:
religion spread set to 11 in religion info
HOLY_CITY_INFLUENCE set to 3

base Judaism spread speed is 11 (in religion info)
with holy city only it is 3 * 11 = 33
with shrine (3+1) * 11 = 44
 
Back
Top Bottom