mirror of
https://github.com/minetest-mods/magma_conduits.git
synced 2025-01-06 12:37:33 +01:00
remove debugging
This commit is contained in:
parent
a7778641f5
commit
790dc924ec
@ -106,14 +106,12 @@ local get_volcano = function(pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local location = scatter_2d(corner_xz, volcano_region_size, radius_cone_max)
|
local location = scatter_2d(corner_xz, volcano_region_size, radius_cone_max)
|
||||||
--local location = {x=corner_xz.x+volcano_region_size/2, z = corner_xz.z+volcano_region_size/2} -- For testing, puts volcanoes in a consistent grid
|
|
||||||
local depth_peak = math.random(depth_minpeak, depth_maxpeak)
|
local depth_peak = math.random(depth_minpeak, depth_maxpeak)
|
||||||
local depth_lava
|
local depth_lava
|
||||||
if state < state_extinct then
|
if state < state_extinct then
|
||||||
depth_lava = depth_base - math.random(1, math.abs(depth_root)) -- extinct, put the lava somewhere deep.
|
depth_lava = depth_base - math.random(1, math.abs(depth_root)) -- extinct, put the lava somewhere deep.
|
||||||
elseif state < state_dormant then
|
elseif state < state_dormant then
|
||||||
depth_lava = depth_peak - math.random(5, 50) -- dormant
|
depth_lava = depth_peak - math.random(5, 50) -- dormant
|
||||||
minetest.chat_send_all(tostring(depth_lava))
|
|
||||||
else
|
else
|
||||||
depth_lava = depth_peak - math.random(1, 25) -- active, put the lava near the top
|
depth_lava = depth_peak - math.random(1, 25) -- active, put the lava near the top
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user