More treasure variety

This commit is contained in:
Wuzzy
2019-08-25 13:50:53 +02:00
parent 9d5dace4fb
commit f71ca591c9
2 changed files with 45 additions and 16 deletions

View File

@ -1066,7 +1066,7 @@ function tsm_pyramids.make_room(pos, stype, room_id, rotations)
end
-- If no chests were filled with treasure so far, fill a random chest guaranteed
if chests_with_treasure == 0 then
tsm_pyramids.fill_chests(chests[math.random(1, #chests)], stype, sanded, 100)
tsm_pyramids.fill_chest(chests[math.random(1, #chests)], stype, sanded, 100)
end
end
if room.traps and math.random(1,4) then