mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-01-26 18:10:22 +01:00
embed stalactites/stalagmites into the floor/ceiling better
This commit is contained in:
parent
a152a8dd43
commit
2501ff14fc
@ -45,13 +45,13 @@ local test_biome_floor = function(area, data, ai, vi, bi, param2_data)
|
|||||||
--param2_data[vi] = math.random(0,3)
|
--param2_data[vi] = math.random(0,3)
|
||||||
data[vi] = c_cavern_fungi
|
data[vi] = c_cavern_fungi
|
||||||
elseif subterrane:vertically_consistent_random(vi, area) < 0.002 then
|
elseif subterrane:vertically_consistent_random(vi, area) < 0.002 then
|
||||||
subterrane:stalagmite(vi, area, data, 6, 15, c_stone, c_stone, c_stone)
|
subterrane:stalagmite(bi, area, data, 6, 15, c_stone, c_stone, c_stone)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local test_biome_ceiling = function(area, data, ai, vi, bi)
|
local test_biome_ceiling = function(area, data, ai, vi, bi)
|
||||||
if subterrane:vertically_consistent_random(vi, area) < 0.002 then
|
if subterrane:vertically_consistent_random(vi, area) < 0.002 then
|
||||||
subterrane:stalactite(vi, area, data, 6, 20, c_stone, c_stone, c_stone)
|
subterrane:stalactite(ai, area, data, 6, 20, c_stone, c_stone, c_stone)
|
||||||
elseif math.random() < 0.03 then
|
elseif math.random() < 0.03 then
|
||||||
dfcaverns.glow_worm_ceiling(area, data, ai, vi, bi)
|
dfcaverns.glow_worm_ceiling(area, data, ai, vi, bi)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user