Add traps to dungeons.

This commit is contained in:
Duane 2016-08-04 08:03:00 -05:00
parent cbf8994755
commit 2f9d41c11e
3 changed files with 19 additions and 8 deletions

View file

@ -391,11 +391,11 @@ minetest.register_abm({
minetest.register_abm({
nodenames = {"fun_caves:dungeon_floor_1"},
interval = 20 * time_factor,
interval = 10 * time_factor,
chance = 250,
catch_up = false,
action = function(pos, node, aoc, active_object_count_wider)
if not (pos and node) or active_object_count_wider > 10 then
if not (pos and node) or active_object_count_wider > 5 then
return
end
@ -453,7 +453,7 @@ minetest.register_abm({
minetest.register_abm({
nodenames = {"fun_caves:dungeon_floor_1"},
interval = 20 * time_factor,
chance = 1000,
chance = 500,
catch_up = false,
action = function(pos, node)
if not (pos and node) then