reduce density of megaflora a bit - was too hard to walk through

This commit is contained in:
FaceDeer 2020-01-27 11:01:55 -07:00
parent 7cb293b6be
commit e4a69b3e1f

View File

@ -59,9 +59,9 @@ local mushroom_cavern_floor = function(abs_cracks, humidity, vi, area, data, dat
end end
local rand = math.random() * math.min(abs_cracks, 1) * humidityfactor local rand = math.random() * math.min(abs_cracks, 1) * humidityfactor
if rand < 0.001 then if rand < 0.00075 then
data[vi+ystride] = c_giant_mycelium data[vi+ystride] = c_giant_mycelium
elseif rand < 0.005 then elseif rand < 0.003 then
local schematic = df_primordial_items.get_primordial_mushroom() local schematic = df_primordial_items.get_primordial_mushroom()
local rotation = (math.random(1,4)-1)*90 local rotation = (math.random(1,4)-1)*90
mapgen_helper.place_schematic_on_data_if_it_fits(data, data_param2, area, area:position(vi+ystride), schematic, rotation) mapgen_helper.place_schematic_on_data_if_it_fits(data, data_param2, area, area:position(vi+ystride), schematic, rotation)
@ -154,9 +154,9 @@ local jungle_cavern_floor = function(abs_cracks, humidity, vi, area, data, data_
local fern_schematic = df_primordial_items.get_fern_schematic() local fern_schematic = df_primordial_items.get_fern_schematic()
local rotation = (math.random(1,4)-1)*90 local rotation = (math.random(1,4)-1)*90
mapgen_helper.place_schematic_on_data_if_it_fits(data, data_param2, area, area:position(vi+ystride), fern_schematic, rotation) mapgen_helper.place_schematic_on_data_if_it_fits(data, data_param2, area, area:position(vi+ystride), fern_schematic, rotation)
elseif rand < 0.05 * (1-humidityfactor) then elseif rand < 0.025 * (1-humidityfactor) then
df_primordial_items.spawn_jungle_mushroom_vm(vi+ystride, area, data) df_primordial_items.spawn_jungle_mushroom_vm(vi+ystride, area, data)
elseif rand < 0.1 * (1-humidityfactor) then elseif rand < 0.05 * (1-humidityfactor) then
df_primordial_items.spawn_jungle_tree_vm(math.random(8,14), vi+ystride, area, data) df_primordial_items.spawn_jungle_tree_vm(math.random(8,14), vi+ystride, area, data)
elseif rand < 0.3 then elseif rand < 0.3 then
data[vi+ystride] = jungle_plants[math.random(1,#jungle_plants)] data[vi+ystride] = jungle_plants[math.random(1,#jungle_plants)]
@ -273,14 +273,14 @@ local decorate_primordial = function(minp, maxp, seed, vm, node_arrays, area, da
---------------------------------------------- ----------------------------------------------
-- Tunnel floors -- Tunnel floors
for _, vi in ipairs(node_arrays.tunnel_floor_nodes) do -- for _, vi in ipairs(node_arrays.tunnel_floor_nodes) do
end -- end
------------------------------------------------------ ------------------------------------------------------
-- Tunnel ceiling -- Tunnel ceiling
for _, vi in ipairs(node_arrays.tunnel_ceiling_nodes) do -- for _, vi in ipairs(node_arrays.tunnel_ceiling_nodes) do
end -- end
------------------------------------------------------ ------------------------------------------------------
-- Warren ceiling -- Warren ceiling