From ad5d64d90157633a56b3ca1dac72f25519cafcd9 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Thu, 5 Dec 2019 17:24:26 -0700 Subject: [PATCH] puzzle particle, bones were only spawning on top of structures --- df_caverns/underworld.lua | 2 +- df_underworld_items/puzzle_seal.lua | 3 ++- .../textures/dfcaverns_puzzle_particle.png | Bin 0 -> 387 bytes 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 df_underworld_items/textures/dfcaverns_puzzle_particle.png diff --git a/df_caverns/underworld.lua b/df_caverns/underworld.lua index 59e26f8..6415255 100644 --- a/df_caverns/underworld.lua +++ b/df_caverns/underworld.lua @@ -443,7 +443,7 @@ minetest.register_on_generated(function(minp, maxp, seed) 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 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) if floor_height < ceiling_height then local zone = math.abs(nvals_zone[index2d]) diff --git a/df_underworld_items/puzzle_seal.lua b/df_underworld_items/puzzle_seal.lua index 1cdadd8..514e139 100644 --- a/df_underworld_items/puzzle_seal.lua +++ b/df_underworld_items/puzzle_seal.lua @@ -149,7 +149,7 @@ local show_key = function(pos, index) maxexptime = 3, minsize = 1, maxsize = 1, - texture = "dfcaverns_glow_amethyst.png", + texture = "dfcaverns_puzzle_particle.png", glow = 8, }) end @@ -388,6 +388,7 @@ local capstone_def = { paramtype = "light", paramtype2 = "facedir", groups = slade_groups, + light_source = 8, sounds = default.node_sound_stone_defaults({ footstep = { name = "bedrock2_step", gain = 1 } }), is_ground_content = false, on_blast = function() end, diff --git a/df_underworld_items/textures/dfcaverns_puzzle_particle.png b/df_underworld_items/textures/dfcaverns_puzzle_particle.png new file mode 100644 index 0000000000000000000000000000000000000000..8fcb6416847e725aee8b8c2901237228f72aa68e GIT binary patch literal 387 zcmeAS@N?(olHy`uVBq!ia0vp^93afW3?x5a^xFxf)&=;4xW=m$LQsfe3Xp+J0=bRG zv*3b2MzVTYfI`AtyWK!#5Cl;GB%@Vwfl|oYAqrfjgBpxxPP5qzF%6;sq8=y$l!7P& zvVjQ52AY$n(+rVX=y(7k2qA&8`V*hD0$pxZ666=WmyuzwfJ63lCN72vdvw?tBpm9u zFzt3{6f8ZmWT{WW^1Wwo?Ox^8zvJGXZTXCny*qEL(_>*^wp%n=y<~RD0iY>fo-U3d z6>+Q%&4Nc9818iE-Y%Q>*L+%|i$q_#ELYQtQ(kLc8u*-Ud;OE+P{*=~OHO=R