tweak default chasm settings

This commit is contained in:
FaceDeer 2021-03-24 22:37:51 -06:00
parent eb2fbf0d99
commit ed54ceec93
3 changed files with 6 additions and 6 deletions

View File

@ -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 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 = {
offset = 0,
scale = 1,
spread = {x = 75, y = 500, z = 2000},
spread = {x = 50, y = 1000, z = 3000},
seed = 94586,
octaves = 2,
persist = 0.63,

View File

@ -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_threshold (Noise threshold for chasms) float 1.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 0.9
chasms_maxy (Maximum Y) int -50
chasms_miny (Minimum Y) int -3000
chasms_falloff (Taper distance) int 100
chasms_falloff (Taper range when approaching max or min) int 100

View File

@ -114,7 +114,7 @@ hunter_statue.register_hunter_statue = function(node_name, statue_def)
if fleshy_armour then
armour_multiplier = fleshy_armour/100
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))
minetest.sound_play({name="hunter_statue_thud"}, {pos = nearest_pos})
return