mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-02-03 05:50:26 +01:00
make webs slightly more prevalent
This commit is contained in:
parent
fd392311d6
commit
33c191fc03
@ -6,7 +6,7 @@ local maxy = tonumber(minetest.settings:get("chasms_maxy")) or -50
|
|||||||
local miny = tonumber(minetest.settings:get("chasms_miny")) or -2500
|
local miny = tonumber(minetest.settings:get("chasms_miny")) or -2500
|
||||||
local falloff = tonumber(minetest.settings:get("chasms_falloff")) or 100
|
local falloff = tonumber(minetest.settings:get("chasms_falloff")) or 100
|
||||||
|
|
||||||
local web_probability = 0.1 -- the chance that a given mapblock will have webbing criss-crossing the chasm
|
local web_probability = 0.15 -- the chance that a given mapblock will have webbing criss-crossing the chasm
|
||||||
|
|
||||||
local chasms_threshold = tonumber(minetest.settings:get("chasms_threshold")) or 0.9
|
local chasms_threshold = tonumber(minetest.settings:get("chasms_threshold")) or 0.9
|
||||||
local np_chasms_default = {
|
local np_chasms_default = {
|
||||||
|
@ -367,7 +367,7 @@ local decorate_level_3 = function(minp, maxp, seed, vm, node_arrays, area, data)
|
|||||||
else
|
else
|
||||||
df_caverns.tunnel_ceiling(minp, maxp, area, vi, nvals_cracks, data, data_param2, false)
|
df_caverns.tunnel_ceiling(minp, maxp, area, vi, nvals_cracks, data, data_param2, false)
|
||||||
end
|
end
|
||||||
if c_webs_egg and biome_name == "barren" and nvals_cracks[index2d] > 0.5 and math.random() < 0.1 then
|
if c_webs_egg and (biome_name == "barren" or biome_name == "blackcap") and nvals_cracks[index2d] > 0.5 and math.random() < 0.1 then
|
||||||
local index = vi-ystride
|
local index = vi-ystride
|
||||||
if data[index] == c_air then
|
if data[index] == c_air then
|
||||||
data[index] = c_webs_egg
|
data[index] = c_webs_egg
|
||||||
|
Loading…
Reference in New Issue
Block a user