JFD
Kathigitarkh
I'm having some trouble getting this code to function:
I'm not sure what I'm doing wrong, as it had worked for Wonder Production. But because Wonder Production doesn't have a SetWonderProduction command (rather, ChangeWonderProduction, which means the boost will exponentially increase every turn), I'll have to settle with general building production.
Because the logs do not yield any errors, I must ask here. Any indication as to what I'm doing wrong would be appreciated.
Spoiler :
Code:
GameEvents.PlayerDoTurn.Add(function(iPlayer)
local pPlayer = Players[iPlayer];
if pPlayer:GetCivilizationType() == GameInfoTypes["CIVILIZATION_RUSSIA_NICHOLAS"] then
for iCity in pPlayer:Cities() do
local ProductionBoost = (iCity:GetProduction() + iCity:GetFaithPerTurn())
iCity:SetBuildingProduction(ProductionBoost)
end
end
end)
I'm not sure what I'm doing wrong, as it had worked for Wonder Production. But because Wonder Production doesn't have a SetWonderProduction command (rather, ChangeWonderProduction, which means the boost will exponentially increase every turn), I'll have to settle with general building production.
Because the logs do not yield any errors, I must ask here. Any indication as to what I'm doing wrong would be appreciated.