From e5d1f04ba0f6c26cb3c3fdaa944f64ca4858c967 Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Mon, 24 Dec 2018 01:33:14 +0100 Subject: [PATCH] =?UTF-8?q?Modification=20des=20groupes=20d'items=20g?= =?UTF-8?q?=C3=A9n=C3=A9r=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Modification de la profondeur maximale pour le calcul de la valeur des items - Ajout message de chargement du mod dans le journal "action" --- init.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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.")