From 6beb2cdf1bf017de8e07e88f09b12544ae346185 Mon Sep 17 00:00:00 2001 From: Ombridride Date: Mon, 15 Dec 2014 01:00:22 +0100 Subject: [PATCH] =?UTF-8?q?Double=20les=20drops=20des=20=C3=A9paves=20de?= =?UTF-8?q?=20bateau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mod searecks --- mods/sea/seawrecks/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/sea/seawrecks/init.lua b/mods/sea/seawrecks/init.lua index df3fd3e1..504444a4 100755 --- a/mods/sea/seawrecks/init.lua +++ b/mods/sea/seawrecks/init.lua @@ -96,15 +96,15 @@ minetest.register_node("seawrecks:ubootchest", { local meta = minetest.get_meta(pos) local kind_of_price = math.floor(math.random()*2) - local amount_of_price = math.floor(math.random()*10)+1 + local amount_of_price = math.floor(math.random()*20)+1 local ingot_price = {"default:steel_ingot","default:copper_ingot","default:gold_ingot","moreores:tin_ingot","moreores:silver_ingot"} local price_group = {"",""} choosen_ingot = math.floor(math.random()*5)+1 price_group[1] = ingot_price[choosen_ingot].." "..amount_of_price if (kind_of_price == 0) then -- Ingots AND mese - price_group[2] = "default:mese_crystal "..math.floor(math.random()*3)+1 + price_group[2] = "default:mese_crystal "..math.floor(math.random()*6)+1 elseif (kind_of_price == 1) then -- Ingots AND diamond - price_group[2] = "default:diamond "..math.floor(math.random()*2)+1 + price_group[2] = "default:diamond "..math.floor(math.random()*4)+1 else price_group[2] = "" end