mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-01-26 01:50:25 +01:00
generate dry stalactites in near-surface caverns.
This commit is contained in:
parent
98e3e0a222
commit
599f17ec60
@ -124,6 +124,9 @@ local content_in_list=function(content, list)
|
|||||||
end
|
end
|
||||||
|
|
||||||
df_caverns.tunnel_floor = function(minp, maxp, area, vi, nvals_cracks, data, data_param2, wet)
|
df_caverns.tunnel_floor = function(minp, maxp, area, vi, nvals_cracks, data, data_param2, wet)
|
||||||
|
if maxp.y > -30 then
|
||||||
|
wet = false
|
||||||
|
end
|
||||||
local ystride = area.ystride
|
local ystride = area.ystride
|
||||||
local index2d = mapgen_helper.index2di(minp, maxp, area, vi)
|
local index2d = mapgen_helper.index2di(minp, maxp, area, vi)
|
||||||
local cracks = nvals_cracks[index2d]
|
local cracks = nvals_cracks[index2d]
|
||||||
@ -148,6 +151,10 @@ df_caverns.tunnel_floor = function(minp, maxp, area, vi, nvals_cracks, data, dat
|
|||||||
end
|
end
|
||||||
|
|
||||||
df_caverns.tunnel_ceiling = function(minp, maxp, area, vi, nvals_cracks, data, data_param2, wet)
|
df_caverns.tunnel_ceiling = function(minp, maxp, area, vi, nvals_cracks, data, data_param2, wet)
|
||||||
|
if maxp.y > -30 then
|
||||||
|
wet = false
|
||||||
|
end
|
||||||
|
|
||||||
local ystride = area.ystride
|
local ystride = area.ystride
|
||||||
local index2d = mapgen_helper.index2di(minp, maxp, area, vi)
|
local index2d = mapgen_helper.index2di(minp, maxp, area, vi)
|
||||||
local cracks = nvals_cracks[index2d]
|
local cracks = nvals_cracks[index2d]
|
||||||
|
Loading…
Reference in New Issue
Block a user