simplify tree growth config a bit

This commit is contained in:
FaceDeer
2017-03-16 13:33:50 -06:00
parent 2177175593
commit 9d781eca6c
9 changed files with 42 additions and 32 deletions

View File

@@ -63,7 +63,9 @@ minetest.register_node("dfcaverns:black_cap_sapling", {
sounds = default.node_sound_leaves_defaults(),
on_construct = function(pos)
minetest.get_node_timer(pos):start(math.random(dfcaverns.config.black_cap_min_growth_delay,dfcaverns.config.black_cap_max_growth_delay))
minetest.get_node_timer(pos):start(math.random(
dfcaverns.config.black_cap_delay_multiplier*dfcaverns.config.tree_min_growth_delay,
dfcaverns.config.black_cap_delay_multiplier*dfcaverns.config.tree_max_growth_delay))
end,
on_timer = function(pos)