wip
This commit is contained in:
@@ -33,7 +33,7 @@ end
|
||||
region:Region - the region currently being generated
|
||||
]]--
|
||||
function private.assign_biomes(region)
|
||||
region.iterate_columns(function(x, z)
|
||||
region:iterate_columns(function(x, z)
|
||||
local terrain_type = region:get_meta(Region.META.TERRAIN_TYPE, x, z)
|
||||
local terrain = C.TERRAIN_TYPES[terrain_type]
|
||||
region:set_meta(Region.META.BIOME, x, z, core.get_biome_id(terrain.name))
|
||||
@@ -47,12 +47,12 @@ end
|
||||
region:Region - the region currently being generated
|
||||
]]--
|
||||
function private.fill_surface(region)
|
||||
region.iterate_columns(function(x, z)
|
||||
region:iterate_columns(function(x, z)
|
||||
local biome_id = region:get_meta(Region.META.BIOME, x, z)
|
||||
local biome_name = core.get_biome_name(biome_id)
|
||||
local biome = core.registered_biomes[biome_name]
|
||||
|
||||
local y = region:get_meta(Region.META.ALTITUDE)
|
||||
local y = region:get_meta(Region.META.ALTITUDE, x, z)
|
||||
local top_count = biome.depth_top or 0
|
||||
local filler_count = biome.depth_filler or 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user