1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

Decreased amount of items hypothetically given per stack (uboots)

- Solves #190 (?)
This commit is contained in:
LeMagnesium 2015-08-02 22:42:32 +02:00
parent 51e7c037c3
commit ddd99bb4b6

View File

@ -81,7 +81,12 @@ minetest.register_node("seawrecks:ubootchest", {
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local kind_of_price = math.random(0,2) local kind_of_price = math.random(0,2)
local amount_of_price = math.random(1, 20) local amount_of_price
if math.random(1,100) >= 75 then
amount_of_price = math.random(1, 20)
else
amount_of_price = math.random(1, 5)
end
local ingot_price = {"default:steel_ingot","default:copper_ingot","default:gold_ingot","moreores:tin_ingot","moreores:silver_ingot"} local ingot_price = {"default:steel_ingot","default:copper_ingot","default:gold_ingot","moreores:tin_ingot","moreores:silver_ingot"}
local price_group = {"",""} local price_group = {"",""}
local choosen_ingot = math.random(1, #ingot_price) local choosen_ingot = math.random(1, #ingot_price)