Set trap odds correctly.

This commit is contained in:
Duane 2016-08-06 23:13:29 -05:00
parent 5ae6e9f89c
commit 77a6129e00

View file

@ -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