whoward69
DLL Minion
Dear Firaxis,
If you are going to use college students to write your code, please explain to them about "functions" and disable their Ctrl-C/Ctrl-V keys!!!
(From WhosWinningPopup.lua)
If you are going to use college students to write your code, please explain to them about "functions" and disable their Ctrl-C/Ctrl-V keys!!!
(From WhosWinningPopup.lua)
Code:
-- Culture Mode restrictions
if (iMode == g_ListMode_Culture) then
-- Anyone in the Industrial Era?
for iPlayerLoop = 0, GameDefines.MAX_MAJOR_CIVS-1, 1 do
pLoopPlayer = Players[iPlayerLoop];
if (pLoopPlayer:IsAlive()) then
if (pLoopPlayer:GetCurrentEra() >= GameInfo.Eras["ERA_INDUSTRIAL"].ID) then
print("Progress Screen: Can't display Culture Mode because we've reached the Industrial Era!");
return false;
end
end
end
-- Food Mode restrictions
elseif (iMode == g_ListMode_Food) then
-- Anyone in the Industrial Era?
for iPlayerLoop = 0, GameDefines.MAX_MAJOR_CIVS-1, 1 do
pLoopPlayer = Players[iPlayerLoop];
if (pLoopPlayer:IsAlive()) then
if (pLoopPlayer:GetCurrentEra() >= GameInfo.Eras["ERA_INDUSTRIAL"].ID) then
print("Progress Screen: Can't display Food Mode because we've reached the Industrial Era!");
return false;
end
end
end
-- Production Mode restrictions
elseif (iMode == g_ListMode_Production) then
-- Anyone in the Industrial Era?
for iPlayerLoop = 0, GameDefines.MAX_MAJOR_CIVS-1, 1 do
pLoopPlayer = Players[iPlayerLoop];
if (pLoopPlayer:IsAlive()) then
if (pLoopPlayer:GetCurrentEra() >= GameInfo.Eras["ERA_INDUSTRIAL"].ID) then
print("Progress Screen: Can't display Production Mode because we've reached the Industrial Era!");
return false;
end
end
end
end