From 77a6129e00aeb75f24367d678f71842471e74851 Mon Sep 17 00:00:00 2001 From: Duane Date: Sat, 6 Aug 2016 23:13:29 -0500 Subject: [PATCH] Set trap odds correctly. --- dungeon.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dungeon.lua b/dungeon.lua index 5abc69c..e9a5e47 100644 --- a/dungeon.lua +++ b/dungeon.lua @@ -518,7 +518,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(100) + local r = math.random(1000) if r == 1 then data[ivm] = node['fun_caves:stone_with_gold_trap'] elseif r == 2 then