From cd949126b22607075df175dedf0c8daab7ee376a Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 19 Oct 2024 04:21:37 +0300 Subject: [PATCH] format base:demo generator script --- res/content/base/generators/demo.files/script.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/res/content/base/generators/demo.files/script.lua b/res/content/base/generators/demo.files/script.lua index e8225935..9a995224 100644 --- a/res/content/base/generators/demo.files/script.lua +++ b/res/content/base/generators/demo.files/script.lua @@ -35,8 +35,10 @@ function place_structures_wide(x, z, w, d, chunk_height) sy = ey sz = ez - dir_inertia = dir_inertia * 0.8 + (math.random() - 0.5) * math.pow(math.random(), 2) * 8 - elevation = elevation * 0.9 + (math.random() - 0.4) * (1.0-math.pow(math.random(), 4)) * 8 + dir_inertia = dir_inertia * 0.8 + + (math.random() - 0.5) * math.pow(math.random(), 2) * 8 + elevation = elevation * 0.9 + + (math.random() - 0.4) * (1.0-math.pow(math.random(), 4)) * 8 dir = dir + dir_inertia end end