switch to a different key bell

This commit is contained in:
FaceDeer 2019-12-02 00:14:57 -07:00
parent ccc200661d
commit 54bbf456c4
3 changed files with 7 additions and 3 deletions

View File

@ -71,8 +71,11 @@ local oubliette_threshold = 0.8
local town_threshold = 1.1
local local_random = function(x, z)
local next_seed = math.floor(math.random()*2^21)
math.randomseed(x + z*2^16)
return math.random()
local ret = math.random()
math.randomseed(next_seed)
return ret
end
-- create a deterministic list of buildings
@ -397,7 +400,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
-- puzzle seal
local puzzle_seal = nil
if pit_uninitialized and math.random() < 0.1 then
if pit_uninitialized and math.random() < 0.15 then
local index2d = mapgen_helper.index2d(emin, emax, minp.x + 3, minp.z + 3)
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
@ -410,6 +413,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
data[plat_vi] = c_slade_block
end
puzzle_seal = {x=minp.x+3, y=floor_height+1, z=minp.z+3}
minetest.log("info", "Puzzle seal generated at " .. minetest.pos_to_string(puzzle_seal))
end
end

View File

@ -12,7 +12,7 @@ dfcaverns_arcing.3.ogg - from https://freesound.org/people/unfa/sounds/264827/ b
dfcaverns_arcing.4.ogg - from https://freesound.org/people/unfa/sounds/264827/ by unfa under Creative Commons BY 3.0
dfcaverns_seal_unlocked.ogg - from https://freesound.org/people/juskiddink/sounds/74920/ by juskiddink under Creative Commons BY 3.0
dfcaverns_seal_key.ogg - from https://freesound.org/people/Veiler/sounds/209894/ by Veiler under the Creative Commons 0 public domain license
dfcaverns_seal_key.ogg - From https://freesound.org/people/megashroom/sounds/391488/ by megashroom under the CC0 public domain license
dfcaverns_massive_digging.1.ogg - from https://freesound.org/people/OGsoundFX/sounds/423120/ by OGsoundFX under Creative Commons BY 3.0
dfcaverns_massive_digging.2.ogg - from https://freesound.org/people/OGsoundFX/sounds/423120/ by OGsoundFX under Creative Commons BY 3.0
dfcaverns_massive_digging.3.ogg - from https://freesound.org/people/OGsoundFX/sounds/423120/ by OGsoundFX under Creative Commons BY 3.0