Mapgen: write SuperUltraSigmaMapgen part 8.2
This commit is contained in:
@@ -47,7 +47,7 @@ end
|
|||||||
---@param biome MapGen.Biome
|
---@param biome MapGen.Biome
|
||||||
function Layer:addBiome(biomeName, biome)
|
function Layer:addBiome(biomeName, biome)
|
||||||
self.biomesByName[biomeName] = biome
|
self.biomesByName[biomeName] = biome
|
||||||
table.insert(self.biomesList, self)
|
table.insert(self.biomesList, biome)
|
||||||
end
|
end
|
||||||
|
|
||||||
---Adds a cavern to the `Layer.cavernsByName` & `Layer.cavernsList`
|
---Adds a cavern to the `Layer.cavernsByName` & `Layer.cavernsList`
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ function Peak:new(peakPos, multinoiseParams, groups)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function instance:getMultinoise()
|
function instance:getMultinoise()
|
||||||
if not table.is_empty(_multinoise) then
|
if table.is_empty(_multinoise) then
|
||||||
error('Attempt to get `MapGen.Triangulation.FakePeak` noise (empty noise).')
|
error('Attempt to get `MapGen.Triangulation.FakePeak` noise (empty noise).')
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ function Peak:new(peakPos, multinoiseParams, groups)
|
|||||||
Logger.warningLog('Multinoise has already been initialized. Re-initialization is not recommended.')
|
Logger.warningLog('Multinoise has already been initialized. Re-initialization is not recommended.')
|
||||||
end
|
end
|
||||||
|
|
||||||
if not table.is_empty(_multinoiseParams) then
|
if table.is_empty(_multinoiseParams) then
|
||||||
error('Attempt to initialize `MapGen.Triangulation.FakePeak` noise (noise parameter empty).')
|
error('Attempt to initialize `MapGen.Triangulation.FakePeak` noise (noise parameter empty).')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user