Modifie la génération des objets dans les coffres
This commit is contained in:
parent
55f4a1f292
commit
57adec6576
2
init.lua
2
init.lua
@ -26,7 +26,7 @@ function pyramids.fill_chest(pos)
|
|||||||
if random(1,10) < 7 then return end
|
if random(1,10) < 7 then return end
|
||||||
local stacks = {}
|
local stacks = {}
|
||||||
if minetest.get_modpath("treasurer") ~= nil then
|
if minetest.get_modpath("treasurer") ~= nil then
|
||||||
stacks = treasurer.select_random_treasures(3,7,9,{"minetool", "food", "crafting_component"})
|
stacks = treasurer.select_random_treasures(3,1,5,{"armes", "armures", "precieux"})
|
||||||
else
|
else
|
||||||
for i=0,2,1 do
|
for i=0,2,1 do
|
||||||
local stuff = chest_stuff[random(1,#chest_stuff)]
|
local stuff = chest_stuff[random(1,#chest_stuff)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user