diff --git a/init.lua b/init.lua index a577bda..57a1004 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,5 @@ -- Preciousness scaling numbers -local h_min = -256 -- Minimum height. At this height and below, the preciousness is at its peak +local h_min = -500 -- Minimum height. At this height and below, the preciousness is at its peak local h_max = -20 -- Max. height. At this height and above, the preciousness is at its lowest level minetest.set_gen_notify("dungeon") @@ -22,10 +22,11 @@ minetest.register_on_generated(function(minp, maxp, seed) -- We will select randomly 1-2 out of 5 possible treasure groups: light, crafting component, building block, and melee weapon local groups = { - { 4, 0, scale*2+3, "light" }, -- precousness: 0..5 - { 6, 0, 2, "crafting_component" }, -- 0..2 + { 4, 0, scale*10, "precieux" }, -- precousness: 0..5 + { 6, 0, scale*9, "minetool" }, -- 0..2 { 6, 0, 5, "building_block" }, -- 0..5 - { 1, scale*2, scale*5, "melee_weapon" }, -- 0..5 + { 1, scale*2, scale*10, "armures" }, -- 0..5 + { 1, 0, scale*10, "armes" }, -- 0..5 { 3, 0, 3, "food" }, -- 0..3 } @@ -55,3 +56,4 @@ minetest.register_on_generated(function(minp, maxp, seed) end end) +minetest.log("action", "[tsm_chests_dungeon] loaded.")