add a setting to allow the magma sea to be toned down a bit

This commit is contained in:
FaceDeer 2017-09-04 21:46:08 -06:00
parent bfa37cb648
commit f0b652b0e8
3 changed files with 6 additions and 2 deletions

View File

@ -122,7 +122,7 @@ local perlin_wave_lava = {
subterrane:register_cave_layer({
minimum_depth = dfcaverns.config.level3_min,
maximum_depth = dfcaverns.config.lava_sea_min,
cave_threshold = 0.2,
cave_threshold = dfcaverns.config.lava_sea_threshold,
perlin_cave = perlin_cave_lava,
perlin_wave = perlin_wave_lava,
})

View File

@ -68,3 +68,4 @@ setting("int", "level1_min", -900, "Upper limit of level 2")
setting("int", "level2_min", -1500, "Upper limit of level 3")
setting("int", "level3_min", -2100, "Upper limit of lava sea")
setting("int", "lava_sea_min", -2700, "Lower limit of the lava sea")
setting("float", "lava_sea_threshold", 0.2, "Cavern threshold for magma sea (higher number means sparser magma)")

View File

@ -35,3 +35,6 @@ dfcaverns_level1_min (Upper limit of level 2) int -900
dfcaverns_level2_min (Upper limit of level 3) int -1500
dfcaverns_level3_min (Upper limit of lava sea) int -2100
dfcaverns_lava_sea_min (Lower limit of lava sea) int -2700
#Determines threshold for higher number means sparser magma
dfcaverns_lava_sea_threshold (Cavern threshold for magma sea) float 0.2 0.0 1.0