slightly less flooding

This commit is contained in:
FaceDeer 2018-05-15 22:08:35 -06:00
parent 9669ec9dbf
commit 3c97194831
4 changed files with 10 additions and 9 deletions

View File

@ -216,10 +216,10 @@ minetest.register_biome({
y_max = subsea_level,
heat_point = 50,
humidity_point = 100,
_subterrane_fill_node = c_water,
_subterrane_fill_node = c_air,
_subterrane_cave_fill_node = c_water,
_subterrane_floor_decor = level_1_underwater_floor,
_subterrane_mitigate_lava = false, -- no need to mitigate lava in a flooded cave, problem is self-solving
_subterrane_mitigate_lava = true,
})
minetest.register_biome({
@ -300,7 +300,7 @@ minetest.register_biome({
_subterrane_fill_node = c_air,
_subterrane_cave_fill_node = c_water,
_subterrane_floor_decor = level_1_underwater_floor,
_subterrane_mitigate_lava = false, -- no need to mitigate lava in a flooded cave, problem is self-solving
_subterrane_mitigate_lava = true,
})
@ -327,7 +327,7 @@ minetest.register_biome({
_subterrane_fill_node = c_air,
_subterrane_cave_fill_node = c_water,
_subterrane_floor_decor = level_1_underwater_floor,
_subterrane_mitigate_lava = false, -- no need to mitigate lava in a flooded cave, problem is self-solving
_subterrane_mitigate_lava = true,
})
minetest.register_biome({

View File

@ -264,6 +264,8 @@ local level_2_underwater_floor = function(area, data, ai, vi, bi, param2_data)
return
end
data[bi] = c_dirt
if data[vi] == c_air then data[vi] = c_water end
if data[ai] == c_air then data[ai] = c_water end
end
local level_2_cave_floor = function(area, data, ai, vi, bi, param2_data)
@ -312,7 +314,7 @@ minetest.register_biome({
y_max = subsea_level,
heat_point = 50,
humidity_point = 90,
_subterrane_fill_node = c_water,
_subterrane_fill_node = c_air,
_subterrane_cave_fill_node = c_water,
_subterrane_floor_decor = level_2_underwater_floor,
_subterrane_mitigate_lava = false,

View File

@ -104,6 +104,8 @@ local level_3_underwater_floor = function(area, data, ai, vi, bi, param2_data)
return
end
data[bi] = c_dirt
if data[vi] == c_air then data[vi] = c_water end
if data[ai] == c_air then data[ai] = c_water end
end
local level_3_dry_ceiling = function(area, data, ai, vi, bi, param2_data)
@ -322,7 +324,7 @@ minetest.register_biome({
y_max = subsea_level,
heat_point = 50,
humidity_point = 90,
_subterrane_fill_node = c_water,
_subterrane_fill_node = c_air,
_subterrane_cave_fill_node = c_water,
_subterrane_floor_decor = level_3_underwater_floor,
})

View File

@ -14,9 +14,6 @@ local c_glow_water = minetest.get_content_id("dfcaverns:glow_water_source")
-------------------------------------------------------------------------------------------
minetest.debug(dfcaverns.config.sunless_sea_min)
minetest.debug(dfcaverns.config.sunless_sea_level)
local sunless_sea_underwater_floor = function(area, data, ai, vi, bi, param2_data)
if data[bi] ~= c_stone then
return