JFD
Kathigitarkh
Good Lord, you what?
local bMINT = GameInfoTypes.BUILDINGCLASS_MINT;
GameEvents.PlayerDoTurn.Add(
function(iPlayer)
local pPlayer = Players[iPlayer];
if (pPlayer:IsAlive()) then
if (pPlayer:GetCivilizationType() == GameInfoTypes.CIVILIZATION_UAE) then
if not pPlayer:IsGoldenAge() then
local cMint = pPlayer:GetBuildingClassCount(bMINT);
local ReserveGold = pPlayer:GetGold();
if ReserveGold >= 250 and ReserveGold < 500 then
local GAPoints = (1 * cMint);
pPlayer:ChangeGoldenAgeProgressMeter(GAPoints);
elseif ReserveGold >= 500 and ReserveGold < 750 then
local GAPoints = (2 * cMint);
pPlayer:ChangeGoldenAgeProgressMeter(GAPoints);
elseif ReserveGold >= 750 and ReserveGold < 1000 then
local GAPoints = (3 * cMint);
pPlayer:ChangeGoldenAgeProgressMeter(GAPoints);
elseif ReserveGold >= 1000 then
local GAPoints = (4 * cMint);
pPlayer:ChangeGoldenAgeProgressMeter(GAPoints);
end
end
end
end
end)