From f0b652b0e8e318a11754b77f30bab783316ba48a Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Mon, 4 Sep 2017 21:46:08 -0600 Subject: [PATCH] add a setting to allow the magma sea to be toned down a bit --- biomes.lua | 2 +- config.lua | 1 + settingtypes.txt | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/biomes.lua b/biomes.lua index 31362d1..0d81a3f 100644 --- a/biomes.lua +++ b/biomes.lua @@ -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, }) diff --git a/config.lua b/config.lua index e1d8116..9c1109a 100644 --- a/config.lua +++ b/config.lua @@ -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)") diff --git a/settingtypes.txt b/settingtypes.txt index 7fc60af..a67aa17 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -34,4 +34,7 @@ dfcaverns_ymax (Upper limit of level 1) int -300 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 \ No newline at end of file +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 \ No newline at end of file