Adjust dungeon spawns.
This commit is contained in:
parent
f91d3d1070
commit
3244b2f1ff
2 changed files with 2 additions and 2 deletions
2
abms.lua
2
abms.lua
|
@ -418,7 +418,7 @@ minetest.register_abm({
|
|||
nodenames = {"fun_caves:dungeon_floor_1"},
|
||||
neighbors = {'air'},
|
||||
interval = 10 * time_factor,
|
||||
chance = 1000,
|
||||
chance = 2000,
|
||||
catch_up = false,
|
||||
action = function(pos, node)
|
||||
if not (pos and node) then
|
||||
|
|
|
@ -487,7 +487,7 @@ fun_caves.dungeon = function(minp_in, maxp_in, data, p2data, area, node, heightm
|
|||
if not leave_alone[data[ivm]] then
|
||||
if ry == 0 and (cy > 0 or not centered_in) then
|
||||
if content[cx][cy][cz] == 'room' then
|
||||
local r = math.random(2000)
|
||||
local r = math.random(1000)
|
||||
if r == 1 then
|
||||
data[ivm] = node['fun_caves:stone_with_gold_trap']
|
||||
elseif r == 2 then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue