From 10d8a0cc5ce8a17aee1aee1fa976488ffced0c31 Mon Sep 17 00:00:00 2001 From: Duane Date: Fri, 22 Jul 2016 03:38:16 -0500 Subject: [PATCH] Adjust fortress spawns. --- fortress.lua | 4 ++-- mapgen.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fortress.lua b/fortress.lua index 568988a..19babcf 100644 --- a/fortress.lua +++ b/fortress.lua @@ -111,7 +111,7 @@ newnode.on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) for i = 1, math.random(12) do inv:add_item('main', filler[math.random(#filler)]) end - if math.random(20) == 1 then + if math.random(70) == 1 then inv:add_item('main', trophies[level][math.random(#trophies[level])]) end end @@ -415,7 +415,7 @@ fun_caves.fortress = function(minp_in, maxp_in, data, area, node) data[ivm] = inner_wall end else - if y2 == 0 and y == minp.y + y2 * cell_size + 1 and data[ivm - area.ystride] ~= node['air'] and math.random(700) == 1 then + if y2 == 0 and y == minp.y + y2 * cell_size + 1 and data[ivm - area.ystride] ~= node['air'] and math.random(200) == 1 then treasure_count = treasure_count + 1 data[ivm] = node['fun_caves:coffer'] else diff --git a/mapgen.lua b/mapgen.lua index dd7c2ef..9430876 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -73,7 +73,7 @@ fun_caves.is_fortress = function(pos, cs) return end - if math.floor((n * 10000) % (fun_caves.DEBUG and 4 or 19)) == 1 then + if math.floor((n * 10000) % 13) == 1 then return true end