From 2501ff14fc1dce199ec7d45c52a2d343a7d2f8d5 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sat, 18 Mar 2017 10:34:07 -0600 Subject: [PATCH] embed stalactites/stalagmites into the floor/ceiling better --- biomes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/biomes.lua b/biomes.lua index 4942f50..e028717 100644 --- a/biomes.lua +++ b/biomes.lua @@ -45,13 +45,13 @@ local test_biome_floor = function(area, data, ai, vi, bi, param2_data) --param2_data[vi] = math.random(0,3) data[vi] = c_cavern_fungi elseif subterrane:vertically_consistent_random(vi, area) < 0.002 then - subterrane:stalagmite(vi, area, data, 6, 15, c_stone, c_stone, c_stone) + subterrane:stalagmite(bi, area, data, 6, 15, c_stone, c_stone, c_stone) end end local test_biome_ceiling = function(area, data, ai, vi, bi) if subterrane:vertically_consistent_random(vi, area) < 0.002 then - subterrane:stalactite(vi, area, data, 6, 20, c_stone, c_stone, c_stone) + subterrane:stalactite(ai, area, data, 6, 20, c_stone, c_stone, c_stone) elseif math.random() < 0.03 then dfcaverns.glow_worm_ceiling(area, data, ai, vi, bi) end