Save biome size in separate variable

pull/1/head
Bram van den Heuvel 2024-04-22 15:21:10 +02:00
parent acfdea349f
commit 67f780b2b3
1 changed files with 5 additions and 2 deletions

View File

@ -2,11 +2,14 @@
-- Constants and magic numbers -- Constants and magic numbers
local mapgen_buffer = 16 local mapgen_buffer = 16
-- Cave biome range
local biome_spread_range = 50
-- Noise params for heat_point -- Noise params for heat_point
local heat_noise_params = local heat_noise_params =
{ offset = 50 { offset = 50
, scale = 50 , scale = 50
, spread = { x = 200, y = 200, z = 200 } , spread = { x = biome_spread_range, y = biome_spread_range, z = biome_spread_range }
, seed = 320523 , seed = 320523
, octaves = 2 , octaves = 2
, persistence = 0.1 , persistence = 0.1
@ -18,7 +21,7 @@ local heat_noise_params =
local humidity_noise_params = local humidity_noise_params =
{ offset = 50 { offset = 50
, scale = 50 , scale = 50
, spread = { x = 200, y = 200, z = 200 } , spread = { x = biome_spread_range, y = biome_spread_range, z = biome_spread_range }
, seed = 9923473 , seed = 9923473
, octaves = 2 , octaves = 2
, persistence = 0.1 , persistence = 0.1