ripple01
Emperor
Hello all,
I'm in the process of trying to adapt Tomatekh's Sumer Civ to be usable with Vox Populi. I'm running into an issue where the LUA for the UA (1 extra pop in newly founded cities, 2 extra pop if adjacent to a river) is not working for some reason. The UA works fine with Vanilla BNW but it is just not firing when running VP and no other mods. Here is the relevant LUA: could VP have made some changes to make this not fire? I've tried to look in the logs but didn't see anything relevant. Any help would be greatly appreciated!
I'm in the process of trying to adapt Tomatekh's Sumer Civ to be usable with Vox Populi. I'm running into an issue where the LUA for the UA (1 extra pop in newly founded cities, 2 extra pop if adjacent to a river) is not working for some reason. The UA works fine with Vanilla BNW but it is just not firing when running VP and no other mods. Here is the relevant LUA: could VP have made some changes to make this not fire? I've tried to look in the logs but didn't see anything relevant. Any help would be greatly appreciated!
Code:
GameEvents.PlayerCityFounded.Add(
function(iPlayer, iCityX, iCityY)
local pPlayer = Players[iPlayer];
local pTeam = pPlayer:GetTeam();
local pPlot = Map.GetPlot(iCityX, iCityY);
local pCity = pPlot:GetPlotCity();
if (pPlayer:IsAlive()) then
if (pPlayer:GetCivilizationType() == GameInfoTypes.CIVILIZATION_AKKADIAN_MOD) then
if not isBNW then
if ((Teams[pTeam]:GetCurrentEra()) >= 2) then
pCity:ChangePopulation(2, true);
else
pCity:ChangePopulation(1, true);
end
elseif isBNW then
local pPlot = pCity:Plot();
if pPlot:IsRiver() then
pCity:ChangePopulation(2, true);
elseif not pPlot:IsRiver() then
pCity:ChangePopulation(1, true);
end
end
end
end
end)