a few more biome tweaks

This commit is contained in:
FaceDeer 2017-03-25 11:48:27 -06:00
parent a95074f5b4
commit 0f3488849d
4 changed files with 19 additions and 16 deletions

View File

@ -20,7 +20,7 @@ minetest.register_biome({
y_max = dfcaverns.config.level3_min, y_max = dfcaverns.config.level3_min,
heat_point = 50, heat_point = 50,
humidity_point = 50, humidity_point = 50,
_subterrane_fill_node = c_lava, _subterrane_fill_node = c_air, -- It's proving tricky to get lava-flooded caves without spilling into forested ones, temporarily disabling until a better solution is found.
_subterrane_cave_fill_node = c_lava, _subterrane_cave_fill_node = c_air,
}) })

View File

@ -94,11 +94,11 @@ local level_1_wet_floor = function(area, data, ai, vi, bi, param2_data)
return return
end end
if math.random() < 0.25 then if math.random() < 0.5 then
data[bi] = c_mossycobble data[bi] = c_mossycobble
if math.random() < 0.1 then if math.random() < 0.05 then
data[vi] = c_dead_fungus data[vi] = c_dead_fungus
elseif math.random() < 0.1 then elseif math.random() < 0.05 then
data[vi] = c_cavern_fungi data[vi] = c_cavern_fungi
end end
end end

View File

@ -177,18 +177,20 @@ local level_2_wet_floor = function(area, data, ai, vi, bi, param2_data)
return return
end end
if math.random() < 0.25 then if math.random() < 0.5 then
data[bi] = c_mossycobble data[bi] = c_mossycobble
if math.random() < 0.1 then if math.random() < 0.05 then
data[vi] = c_dead_fungus data[vi] = c_dead_fungus
elseif math.random() < 0.1 then elseif math.random() < 0.05 then
data[vi] = c_cavern_fungi data[vi] = c_cavern_fungi
end end
end end
local drip_rand = subterrane:vertically_consistent_random(vi, area) local drip_rand = subterrane:vertically_consistent_random(vi, area)
if drip_rand < 0.05 then if drip_rand < 0.001 then
subterrane:giant_stalagmite(bi, area, data, 6, 15, c_wet_flowstone, c_wet_flowstone, c_wet_flowstone)
elseif drip_rand < 0.05 then
local param2 = drip_rand*1000000 - math.floor(drip_rand*1000000/4)*4 local param2 = drip_rand*1000000 - math.floor(drip_rand*1000000/4)*4
local height = math.floor(drip_rand/0.05 * 5) local height = math.floor(drip_rand/0.05 * 5)
subterrane:stalagmite(vi, area, data, param2_data, param2, height, true) subterrane:stalagmite(vi, area, data, param2_data, param2, height, true)

View File

@ -9,6 +9,7 @@ local c_water = minetest.get_content_id("default:water_source")
local c_air = minetest.get_content_id("air") local c_air = minetest.get_content_id("air")
local c_stone = minetest.get_content_id("default:stone") local c_stone = minetest.get_content_id("default:stone")
local c_cobble = minetest.get_content_id("default:cobble") local c_cobble = minetest.get_content_id("default:cobble")
local c_mossycobble = minetest.get_content_id("default:mossycobble")
local c_dirt = minetest.get_content_id("default:dirt") local c_dirt = minetest.get_content_id("default:dirt")
local c_sand = minetest.get_content_id("default:sand") local c_sand = minetest.get_content_id("default:sand")
@ -78,20 +79,20 @@ local level_3_wet_floor = function(area, data, ai, vi, bi, param2_data)
return return
end end
if math.random() < 0.25 then if math.random() < 0.5 then
data[bi] = c_dirt_moss data[bi] = c_mossycobble
if math.random() < 0.1 then if math.random() < 0.05 then
data[vi] = c_dead_fungus data[vi] = c_dead_fungus
elseif math.random() < 0.1 then elseif math.random() < 0.05 then
data[vi] = c_cavern_fungi data[vi] = c_cavern_fungi
end end
else
data[bi] = c_dirt
end end
local drip_rand = subterrane:vertically_consistent_random(vi, area) local drip_rand = subterrane:vertically_consistent_random(vi, area)
if drip_rand < 0.05 then if drip_rand < 0.001 then
subterrane:giant_stalagmite(bi, area, data, 6, 15, c_wet_flowstone, c_wet_flowstone, c_wet_flowstone)
elseif drip_rand < 0.05 then
local param2 = drip_rand*1000000 - math.floor(drip_rand*1000000/4)*4 local param2 = drip_rand*1000000 - math.floor(drip_rand*1000000/4)*4
local height = math.floor(drip_rand/0.05 * 5) local height = math.floor(drip_rand/0.05 * 5)
subterrane:stalagmite(vi, area, data, param2_data, param2, height, true) subterrane:stalagmite(vi, area, data, param2_data, param2, height, true)