add doc support and some initial doc strings

This commit is contained in:
FaceDeer
2017-09-10 12:24:22 -06:00
parent aef997edbe
commit 435fd33df3
26 changed files with 1107 additions and 147 deletions

View File

@ -175,7 +175,7 @@ local level_1_cave_floor = function(area, data, ai, vi, bi, param2_data)
data[bi] = c_cobble_fungus
if math.random() < 0.15 then
if data[vi] == c_air then
dfcaverns.place_shrub(data, vi, param2_data, {c_plump_helmet, c_dead_fungus, c_dead_fungus, c_dead_fungus, c_cavern_fungi})
dfcaverns.place_shrub(data, vi, param2_data, {c_plump_helmet, c_dead_fungus, c_dead_fungus, c_cavern_fungi, c_cavern_fungi})
end
end
return

View File

@ -269,7 +269,7 @@ end
local level_2_cave_floor = function(area, data, ai, vi, bi, param2_data)
if dfcaverns.can_support_vegetation[data[bi]] then
data[bi] = c_cobble_fungus
if math.random() < 0.25 then
if math.random() < 0.15 then
if data[vi] == c_air then
dfcaverns.place_shrub(data, vi, param2_data, {c_plump_helmet, c_pig_tail, c_dead_fungus, c_dead_fungus, c_cavern_fungi})
end

View File

@ -275,7 +275,7 @@ end
local level_3_cave_floor = function(area, data, ai, vi, bi, param2_data)
if dfcaverns.can_support_vegetation[data[bi]] then
data[bi] = c_dirt_moss
if math.random() < 0.25 then
if math.random() < 0.10 then
if data[vi] == c_air then
dfcaverns.place_shrub(data, vi, param2_data, {c_plump_helmet, c_quarry_bush, c_dead_fungus, c_dead_fungus, c_cavern_fungi})
end