mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-02-03 14:00:25 +01:00
puzzle particle, bones were only spawning on top of structures
This commit is contained in:
parent
7ee75edeab
commit
ad5d64d901
@ -443,7 +443,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
local index2d = mapgen_helper.index2d(emin, emax, x, z)
|
local index2d = mapgen_helper.index2d(emin, emax, x, z)
|
||||||
local abs_cave = math.abs(nvals_cave[index2d]) -- range is from 0 to approximately 2, with 0 being connected and 2s being islands
|
local abs_cave = math.abs(nvals_cave[index2d]) -- range is from 0 to approximately 2, with 0 being connected and 2s being islands
|
||||||
local wave = nvals_wave[index2d] * wave_mult
|
local wave = nvals_wave[index2d] * wave_mult
|
||||||
local floor_height = math.floor(abs_cave * floor_mult + median + floor_displace + wave)
|
local floor_height = math.floor(abs_cave * floor_mult + median + floor_displace + wave)-1
|
||||||
local ceiling_height = math.floor(abs_cave * ceiling_mult + median + ceiling_displace + wave)
|
local ceiling_height = math.floor(abs_cave * ceiling_mult + median + ceiling_displace + wave)
|
||||||
if floor_height < ceiling_height then
|
if floor_height < ceiling_height then
|
||||||
local zone = math.abs(nvals_zone[index2d])
|
local zone = math.abs(nvals_zone[index2d])
|
||||||
|
@ -149,7 +149,7 @@ local show_key = function(pos, index)
|
|||||||
maxexptime = 3,
|
maxexptime = 3,
|
||||||
minsize = 1,
|
minsize = 1,
|
||||||
maxsize = 1,
|
maxsize = 1,
|
||||||
texture = "dfcaverns_glow_amethyst.png",
|
texture = "dfcaverns_puzzle_particle.png",
|
||||||
glow = 8,
|
glow = 8,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
@ -388,6 +388,7 @@ local capstone_def = {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
groups = slade_groups,
|
groups = slade_groups,
|
||||||
|
light_source = 8,
|
||||||
sounds = default.node_sound_stone_defaults({ footstep = { name = "bedrock2_step", gain = 1 } }),
|
sounds = default.node_sound_stone_defaults({ footstep = { name = "bedrock2_step", gain = 1 } }),
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
on_blast = function() end,
|
on_blast = function() end,
|
||||||
|
BIN
df_underworld_items/textures/dfcaverns_puzzle_particle.png
Normal file
BIN
df_underworld_items/textures/dfcaverns_puzzle_particle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 387 B |
Loading…
Reference in New Issue
Block a user