From ff17a70010dfd02fa8b5ebf35dce5c6b46a2d3b1 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 26 Jan 2018 22:07:00 +0000 Subject: [PATCH] Increase steel swords in chests --- mods/ctf_treasure/init.lua | 2 +- mods/tsm_chests/init.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ctf_treasure/init.lua b/mods/ctf_treasure/init.lua index 08e7ec4..77a5fbc 100644 --- a/mods/ctf_treasure/init.lua +++ b/mods/ctf_treasure/init.lua @@ -7,7 +7,7 @@ treasurer.register_treasure("doors:door_steel",0.3,5,{1,3}) treasurer.register_treasure("default:pick_steel",0.5,5,{1,10}) treasurer.register_treasure("default:sword_stone",0.6,5,{1,10}) -treasurer.register_treasure("default:sword_steel",0.3,5,{1,10}) +treasurer.register_treasure("default:sword_steel",0.4,5,{1,4}) treasurer.register_treasure("default:shovel_stone",0.6,5,{1,10}) treasurer.register_treasure("default:shovel_steel",0.3,5,{1,10}) diff --git a/mods/tsm_chests/init.lua b/mods/tsm_chests/init.lua index d0941d0..25c7903 100755 --- a/mods/tsm_chests/init.lua +++ b/mods/tsm_chests/init.lua @@ -80,8 +80,8 @@ minetest.register_node("tsm_chests:chest", { local h_min = -65 -- minimum chest spawning height, relative to water_level local h_max = 40 -- maximum chest spawning height, relative to water_level -local t_min = 3 -- minimum amount of treasures found in a chest -local t_max = 6 -- maximum amount of treasures found in a chest +local t_min = 4 -- minimum amount of treasures found in a chest +local t_max = 7 -- maximum amount of treasures found in a chest local water_level = tonumber(minetest.setting_get("water_level")) local get_node = minetest.get_node @@ -213,5 +213,5 @@ function place_chests(minp, maxp, seed, number_chests) end end - print("Spawned " .. chests_placed .. " chests after " .. attempts .. " attempts!") + print("Spawned " .. chests_placed .. "/" .. number_chests .. " chests after " .. attempts .. " attempts!") end