Religious buildings belief

Anastase Alex

Warlord
Joined
Jul 10, 2013
Messages
221
Location
Paris
There is a belief that is supposed to give +2 tourism per buildong bought by faith. This does not seem to happen when buying industrial buildings with work ethics
 
I went digging through the source code and it looks like that the game only considers buildings to be faith bought if the building has a faith cost, has the tag IsUnlockedByBelief, and can't be built through productions. Which means Jesuit Education, Work Ethics, and other non-exclusive faith buying reformation beliefs will not yield tourism.

This can't be fixed unless we modify the source code and looks like it might be a balancing issue since three of the exclusively faith bought buildings are lumped together in a reformation belief.

PHP:
/// Accessor: How many buildings in this city are ones that are built through Faith?
int CvCityBuildings::GetNumBuildingsFromFaith() const
{
	int iRtnValue = 0;

	for(int iI = 0; iI < GC.getNumBuildingClassInfos(); iI++)
	{
		BuildingClassTypes eLoopBuildingClass = (BuildingClassTypes) iI;
		CvCivilizationInfo *pkCivInfo = GC.getCivilizationInfo(m_pCity->getCivilizationType());
		if (pkCivInfo)
		{
			BuildingTypes eBuilding = (BuildingTypes)pkCivInfo->getCivilizationBuildings(eLoopBuildingClass);
			if (NO_BUILDING != eBuilding)
			{
				if (GetNumBuilding(eBuilding) > 0)
				{
					CvBuildingEntry *pkEntry = GC.getBuildingInfo(eBuilding);
					if (pkEntry)
					{
						if (pkEntry->GetFaithCost() > 0 && pkEntry->IsUnlockedByBelief() && pkEntry->GetProductionCost() == -1)
						{
							iRtnValue++;
						}
					}
				}
			}
		}
	}

	return iRtnValue;
}
 
The belief in question is Sacred Sites.
Presumably then this means Sacred Sites doesn't work when used in conjunction with:

"Work Ethic" - This gives production type buildings, workshop, factory etc.
"Thrift" - This gives gold type buildings, market, bank etc.
"Courage" - This gives naval buildings, harbour, seaport and lighthouse.

As these are all additions based of the the Jesuit Education belief code.

Yet another example of the poorly thought out design that happens with Firaxis.
 
Top Bottom