-- Mt. Everest
print("Everest_2")
local pPlot = Map.GetPlot(x, y)
pPlot:SetPlotType(ePlotFlat, false, false)
pPlot:SetTerrainType(eTerrainMountain, false, false)
local iNumMountains = 0
for i, direction in ipairs(tDirectionTypes) do
local pAdjacentPlot = Map.PlotDirection(x, y, direction)
if pAdjacentPlot:GetPlotType() == ePlotMountain then
iNumMountains = iNumMountains + 1
end
end
for i, direction in ipairs(tDirectionTypes) do
local pAdjacentPlot = Map.PlotDirection(x, y, direction)
if (pAdjacentPlot:GetPlotType() == ePlotHill or pAdjacentPlot:GetPlotType() == ePlotFlat) and iNumMountains < 4 then
pAdjacentPlot:SetPlotType(ePlotMountain, false, false)
iNumMountains = iNumMountains + 1
end
if pAdjacentPlot:GetTerrainType() == eTerrainGrass then
pAdjacentPlot:SetTerrainType(eTerrainTundra, false, false)
end
if pAdjacentPlot:GetTerrainType() == eTerrainDesert or pAdjacentPlot:GetTerrainType() == eTerrainPlains then
pAdjacentPlot:SetTerrainType(eTerrainSnow, false, false)
end
end