Adjust rarity of resources
This commit is contained in:
parent
dbd9c2fb7b
commit
10b1d99245
2 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ treasurer.register_treasure("shooter:pistol",0.5,2,{1,5})
|
||||||
treasurer.register_treasure("shooter:rifle",0.1,2,{1,2})
|
treasurer.register_treasure("shooter:rifle",0.1,2,{1,2})
|
||||||
treasurer.register_treasure("shooter:shotgun",0.05,2,1)
|
treasurer.register_treasure("shooter:shotgun",0.05,2,1)
|
||||||
treasurer.register_treasure("shooter:machine_gun",0.01,2,1)
|
treasurer.register_treasure("shooter:machine_gun",0.01,2,1)
|
||||||
treasurer.register_treasure("shooter:ammo",0.5,2,{1,10})
|
treasurer.register_treasure("shooter:ammo",0.3,2,{1,10})
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
treasurer.register_treasure("throwing:arrow_steel",0.1,5,{1,12})
|
treasurer.register_treasure("throwing:arrow_steel",0.1,5,{1,12})
|
||||||
|
@ -29,5 +29,5 @@ treasurer.register_treasure("throwing:bow_steel",0.1,5,1)
|
||||||
|
|
||||||
treasurer.register_treasure("default:pick_steel",0.3,5,{1,10})
|
treasurer.register_treasure("default:pick_steel",0.3,5,{1,10})
|
||||||
treasurer.register_treasure("default:pick_mese",0.005,5,1)
|
treasurer.register_treasure("default:pick_mese",0.005,5,1)
|
||||||
treasurer.register_treasure("default:cobble",0.8,5,{1,99})
|
treasurer.register_treasure("default:cobble",0.9,5,{20,99})
|
||||||
treasurer.register_treasure("default:sword_steel",0.8,5,{1,10})
|
treasurer.register_treasure("default:sword_steel",0.8,5,{1,10})
|
||||||
|
|
|
@ -106,8 +106,8 @@ minetest.register_node(":default:chest", {
|
||||||
local chests_per_chunk = 5 -- number of chests per chunk. 15 is a bit high, an actual mod might have a lower number
|
local chests_per_chunk = 5 -- number of chests per chunk. 15 is a bit high, an actual mod might have a lower number
|
||||||
local h_min = 0 -- minimum chest spawning height, relative to water_level
|
local h_min = 0 -- minimum chest spawning height, relative to water_level
|
||||||
local h_max = 15 -- maximum chest spawning height, relative to water_level
|
local h_max = 15 -- maximum chest spawning height, relative to water_level
|
||||||
local t_min = 2 -- minimum amount of treasures found in a chest
|
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_max = 7 -- maximum amount of treasures found in a chest
|
||||||
|
|
||||||
--[[ here comes the generation code
|
--[[ here comes the generation code
|
||||||
the interesting part which involes treasurer comes way below
|
the interesting part which involes treasurer comes way below
|
||||||
|
|
Loading…
Reference in a new issue