From 3244b2f1ffe84b444f2229e791e3b8f17f7647bf Mon Sep 17 00:00:00 2001 From: Duane Date: Sat, 6 Aug 2016 03:28:00 -0500 Subject: [PATCH] Adjust dungeon spawns. --- abms.lua | 2 +- dungeon.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/abms.lua b/abms.lua index b78f9ae..e98ce97 100644 --- a/abms.lua +++ b/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 diff --git a/dungeon.lua b/dungeon.lua index fbb8bd6..144c621 100644 --- a/dungeon.lua +++ b/dungeon.lua @@ -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