mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-07-14 22:40:27 +02:00
prevent chasms from breaching oil and magma seas, make veinstone actually do something
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
local data = {}
|
||||
|
||||
local maxy = tonumber(minetest.settings:get("chasms_maxy")) or -50
|
||||
local miny = tonumber(minetest.settings:get("chasms_miny")) or -3000
|
||||
local miny = tonumber(minetest.settings:get("chasms_miny")) or -2500
|
||||
local falloff = tonumber(minetest.settings:get("chasms_falloff")) or 100
|
||||
|
||||
local chasms_threshold = tonumber(minetest.settings:get("chasms_threshold")) or 0.9
|
||||
@ -56,7 +56,7 @@ local get_intensity = function(y)
|
||||
return (y-miny)/falloff
|
||||
end
|
||||
-- if y > maxfalloff then
|
||||
return (maxy-y)/falloff
|
||||
return (maxy-y)/falloff
|
||||
-- end
|
||||
end
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
chasms_params (Noise params for chasms) noise_params_3d 0, 1, (50, 1000, 3000), 94586, 2, 0.63, 2.0
|
||||
chasms_threshold (Noise threshold for chasms) float 0.9
|
||||
chasms_maxy (Maximum Y) int -50
|
||||
chasms_miny (Minimum Y) int -3000
|
||||
chasms_miny (Minimum Y) int -2500
|
||||
chasms_falloff (Taper range when approaching max or min) int 100
|
Reference in New Issue
Block a user