From 7bc0d14aac7654ac29ee9e5509ee7ca844a7d578 Mon Sep 17 00:00:00 2001 From: Gael-de-Sailly Date: Fri, 15 May 2015 17:11:44 +0200 Subject: [PATCH] Changed temperature conditions for trees --- mapgen.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapgen.lua b/mapgen.lua index ed1ed2c..bec4931 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -305,7 +305,7 @@ function vmg.generate(minp, maxp, seed) humidity = hraw + water -- choose a tree from climatic and geological conditions - if v15 < 0.6 and temp >= 0.5 and temp < 2.3 and humidity < 3 and v16 < 0 and v14 > -0.5 and v13 < 0.8 then + if v15 < 0.6 and temp >= 0.85 and temp < 2.3 and humidity < 3 and v16 < 0 and v14 > -0.5 and v13 < 0.8 then local rand = math.random() local height = math.floor(4 + 2.5 * rand) local radius = 3 + rand @@ -314,7 +314,7 @@ function vmg.generate(minp, maxp, seed) else vmg.grow_tree(pos, data, a, height, radius, c_tree, c_leaves, c_air, c_ignore) end - elseif v15 < 0.7 and temp >= 1.5 and humidity > 2 and v16 > -0.1 then + elseif v15 < 0.7 and temp >= 1.9 and humidity > 2 and v16 > 0 then local rand = math.random() local height = math.floor(8 + 4 * rand) local radius = 5 + 3 * rand