Modification des groupes d'items générés

- Modification de la profondeur maximale pour le calcul de la valeur
  des items
- Ajout message de chargement du mod dans le journal "action"
This commit is contained in:
sys4-fr 2018-12-24 01:33:14 +01:00
förälder b1e4889fe4
incheckning e5d1f04ba0
1 ändrade filer med 6 tillägg och 4 borttagningar

Visa fil

@ -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.")