mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-02-27 09:10:20 +01:00
tweak default chasm settings
This commit is contained in:
parent
eb2fbf0d99
commit
ed54ceec93
@ -4,11 +4,11 @@ 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 -3000
|
||||||
local falloff = tonumber(minetest.settings:get("chasms_falloff")) or 100
|
local falloff = tonumber(minetest.settings:get("chasms_falloff")) or 100
|
||||||
|
|
||||||
local chasms_threshold = tonumber(minetest.settings:get("chasms_threshold")) or 1.0
|
local chasms_threshold = tonumber(minetest.settings:get("chasms_threshold")) or 0.9
|
||||||
local np_chasms_default = {
|
local np_chasms_default = {
|
||||||
offset = 0,
|
offset = 0,
|
||||||
scale = 1,
|
scale = 1,
|
||||||
spread = {x = 75, y = 500, z = 2000},
|
spread = {x = 50, y = 1000, z = 3000},
|
||||||
seed = 94586,
|
seed = 94586,
|
||||||
octaves = 2,
|
octaves = 2,
|
||||||
persist = 0.63,
|
persist = 0.63,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
chasms_params (Noise params for chasms) noise_params_3d 0, 1, (75, 500, 2000), 94586, 2, 0.63, 2.0
|
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 1.0
|
chasms_threshold (Noise threshold for chasms) float 0.9
|
||||||
chasms_maxy (Maximum Y) int -50
|
chasms_maxy (Maximum Y) int -50
|
||||||
chasms_miny (Minimum Y) int -3000
|
chasms_miny (Minimum Y) int -3000
|
||||||
chasms_falloff (Taper distance) int 100
|
chasms_falloff (Taper range when approaching max or min) int 100
|
@ -114,7 +114,7 @@ hunter_statue.register_hunter_statue = function(node_name, statue_def)
|
|||||||
if fleshy_armour then
|
if fleshy_armour then
|
||||||
armour_multiplier = fleshy_armour/100
|
armour_multiplier = fleshy_armour/100
|
||||||
end
|
end
|
||||||
nearest_player:add_player_velocity(vector.multiply(vector.direction(pos, nearest_pos), knockback))
|
nearest_player:add_velocity(vector.multiply(vector.direction(pos, nearest_pos), knockback))
|
||||||
nearest_player:set_hp(math.max(nearest_player:get_hp() - damage*armour_multiplier, 0))
|
nearest_player:set_hp(math.max(nearest_player:get_hp() - damage*armour_multiplier, 0))
|
||||||
minetest.sound_play({name="hunter_statue_thud"}, {pos = nearest_pos})
|
minetest.sound_play({name="hunter_statue_thud"}, {pos = nearest_pos})
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user