[CIVUP 2.0.46] "Monument to the Gods" belief doesn't work

Lissindiel

Chieftain
Joined
Sep 5, 2012
Messages
48
YieldLibrary.lua
Spoiler :
Code:
function City_GetWonderConstructionModifier(city, yieldID, itemTable, itemID, queueNum)
	local yieldMod = 0
	if yieldID == YieldTypes.YIELD_PRODUCTION then
		local player = Players[city:GetOwner()]

		yieldMod = yieldMod + player:GetTraitInfo().WonderProductionModifier
		
		for resourceInfo in GameInfo.Resources("WonderProductionMod != 0") do
			if city:IsHasResourceLocal(resourceInfo.ID) then
				yieldMod = yieldMod + resourceInfo.WonderProductionMod
			end
		end
		for policyInfo in GameInfo.Policies("WonderProductionModifier != 0") do
			if player:HasPolicy(policyInfo.ID) then
				yieldMod = yieldMod + policyInfo.WonderProductionModifier
			end
		end
		----log:Debug("wondMod = "..yieldMod.." "..itemTable[itemID].Type)
	end
	return yieldMod
end
Should be:
Code:
function City_GetWonderConstructionModifier(city, yieldID, itemTable, itemID, queueNum)
	local yieldMod = 0
	if yieldID == YieldTypes.YIELD_PRODUCTION then
		local player = Players[city:GetOwner()]

		yieldMod = yieldMod + player:GetTraitInfo().WonderProductionModifier
		
		for resourceInfo in GameInfo.Resources("WonderProductionMod != 0") do
			if city:IsHasResourceLocal(resourceInfo.ID) then
				yieldMod = yieldMod + resourceInfo.WonderProductionMod
			end
		end
		for policyInfo in GameInfo.Policies("WonderProductionModifier != 0") do
			if player:HasPolicy(policyInfo.ID) then
				yieldMod = yieldMod + policyInfo.WonderProductionModifier
			end
		end
                [COLOR="Red"]for beliefInfo in GameInfo.Beliefs("WonderProductionModifier != 0") do
			if player:HasBelief(beliefInfo.ID) then
				yieldMod = yieldMod + beliefInfo.WonderProductionModifier
			end
		end[/COLOR]
		----log:Debug("wondMod = "..yieldMod.." "..itemTable[itemID].Type)
	end
	return yieldMod
end
 
Fantastic with some help for one of the belief bugs! Thal said it would take a while to fix them so help is much appreciated. Theyre the only thing preventing me from playing civ right now.

/skodkim
 
Back
Top Bottom