diff --git a/dungeon.lua b/dungeon.lua index 0d995f8..d3ff211 100644 --- a/dungeon.lua +++ b/dungeon.lua @@ -48,6 +48,7 @@ minetest.register_node("fun_caves:dungeon_wall_2", newnode) local treasures = { { level = 1, rarity = 10, name = 'default:apple 10', }, + { level = 1, rarity = 20, name = 'fun_caves:onion 10', }, { level = 1, rarity = 120, name = 'default:bronze_ingot 10', }, { level = 1, rarity = 30, name = 'default:coal_lump 10', }, { level = 1, rarity = 85, name = 'default:copper_ingot 10', }, @@ -84,6 +85,8 @@ for name, desc in pairs(minetest.registered_items) do treasures[#treasures+1] = { level = 1, rarity = 80, name = name..' 5' } elseif name == 'farming:cotton' then treasures[#treasures+1] = { level = 1, rarity = 80, name = name..' 20' } + elseif name == 'farming:flour' then + treasures[#treasures+1] = { level = 1, rarity = 80, name = name..' 10' } end end @@ -179,7 +182,7 @@ newnode.on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) if not meta then return end - local depth = math.max(1, math.ceil(pos.y / -2000)) + local depth = math.min(20, math.max(1, math.ceil(pos.y / -200))) local level = math.max(1, math.floor(pos.y / -4900)) local ready = meta:get_string('formspec')