return back original chest fill but leave the refill on 30 minutes

* this was due the change from commit 1eb0bc363e
  of sys4 <sys4@sys4.fr> at Fri Dec 27 01:22:46 2019 +0100
  that said: Ajoute remplissage des coffres 30 minutes après ouverture
  et modifie les items générés par ceux de nalc_trm
  merged at commit dfd03b56c6
main
mckaygerhard 2024-03-21 06:14:09 -04:00
parent ffdc7cd035
commit f46a9ae4f7
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ function tsm_pyramids.fill_chest(pos, stype, flood_sand, treasure_chance)
-- Add treasures
if math.random(1,100) <= treasure_chance then
if minetest.get_modpath("treasurer") ~= nil then
stacks = treasurer.select_random_treasures(3,1,5,{"armes", "armures", "precieux", "nourriture"})
stacks = treasurer.select_random_treasures(3,1,5,{"minetool", "food", "crafting_component"})
else
for i=0,2,1 do
local stuff = chest_stuff.normal[math.random(1,#chest_stuff.normal)]