started working on temperature range corrections
This commit is contained in:
+6
-1
@@ -126,7 +126,7 @@ local generate = function()
|
||||
octaves = 7, lacunarity = 2, gain = 0.5,
|
||||
}
|
||||
map.temperature = simplex_map.generate{ -- in celsius
|
||||
size = map.size, scale = 0.005, min = 0, max = 1, -- min = -89.2, max = 56.7,
|
||||
size = map.size, scale = 0.005, min = -89.2, max = 56.7,
|
||||
octaves = 1, lacunarity = 2, gain = 0.5,
|
||||
}
|
||||
map.rainfall = simplex_map.generate{ -- in millimeters of rainfall
|
||||
@@ -173,6 +173,11 @@ local generate = function()
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
-- clear non-planet zones
|
||||
map.altitude[x][y] = nil
|
||||
map.temperature[x][y] = nil
|
||||
map.rainfall[x][y] = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user