Changed default debug to 'false'

This commit is contained in:
Vanessa Ezekowitz 2012-11-29 23:02:04 -05:00
parent fce9f492c7
commit ad451049ce
3 changed files with 10 additions and 9 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*~

View File

@ -18,7 +18,7 @@ local enable_flowers = true
local enable_junglegrass = true local enable_junglegrass = true
local enable_poisonivy = true local enable_poisonivy = true
local plantlife_debug = true local plantlife_debug = false
local plantlife_seed_diff = 123 local plantlife_seed_diff = 123
local perlin_octaves = 3 local perlin_octaves = 3

View File

@ -25,12 +25,12 @@ local perlin_octaves = 3
local perlin_persistence = 0.2 local perlin_persistence = 0.2
local perlin_scale = 25 local perlin_scale = 25
local plantlife_limit = 0.6 -- lower = more abundant local plantlife_limit = 0.6 -- compared against perlin noise. lower = more abundant
local spawn_delay = 20 -- 2000 local spawn_delay = 2000 -- 2000
local spawn_chance = 2 -- 100 local spawn_chance = 100 -- 100
local grow_delay = 10 -- 1000 local grow_delay = 1000 -- 1000
local grow_chance = 2 -- 10 local grow_chance = 10 -- 10
-- Stuff from here on down shouldn't need to be edited. -- Stuff from here on down shouldn't need to be edited.
@ -109,8 +109,8 @@ spawn_on_surfaces = function(sdelay, splant, sradius, schance, ssurface, savoid,
if ( noise > plantlife_limit ) and (n_top.name == "air") and is_node_loaded(p_top) then if ( noise > plantlife_limit ) and (n_top.name == "air") and is_node_loaded(p_top) then
local n_light = minetest.env:get_node_light(p_top, nil) local n_light = minetest.env:get_node_light(p_top, nil)
if (minetest.env:find_node_near(p_top, sradius, savoid) == nil ) if (minetest.env:find_node_near(p_top, sradius, savoid) == nil )
-- and (n_light >= lightmin) and (n_light >= lightmin)
-- and (n_light <= lightmax) and (n_light <= lightmax)
and table.getn(minetest.env:find_nodes_in_area({x=pos.x-1, y=pos.y, z=pos.z-1}, {x=pos.x+1, y=pos.y, z=pos.z+1}, nneighbors)) > ocount and table.getn(minetest.env:find_nodes_in_area({x=pos.x-1, y=pos.y, z=pos.z-1}, {x=pos.x+1, y=pos.y, z=pos.z+1}, nneighbors)) > ocount
then then
local walldir = plant_valid_wall(p_top) local walldir = plant_valid_wall(p_top)
@ -143,7 +143,7 @@ grow_plants = function(gdelay, gchance, gplant, gresult, dry_early_node, dont_gr
dbg("abm triggered for "..gplant.." on "..n_bot.name.." at "..dump(pos).." -- checking if its in "..dump(dont_grow_nodes)) dbg("abm triggered for "..gplant.." on "..n_bot.name.." at "..dump(pos).." -- checking if its in "..dump(dont_grow_nodes))
if string.find(dump(dont_grow_nodes), n_bot.name) == nil and n_top.name == "air" then if string.find(dump(dont_grow_nodes), n_bot.name) == nil and n_top.name == "air" then
dbg("It wasn't, and it has air above it.") dbg("It wasn't, and it has air above it.")
-- corner case for changing short junglegrass to dry shrub -- corner case for changing short junglegrass to dry shrub in desert
if (n_bot.name == dry_early_node) and (gplant == "junglegrass:short") then if (n_bot.name == dry_early_node) and (gplant == "junglegrass:short") then
gresult = "default:dry_shrub" gresult = "default:dry_shrub"
dbg("Want to change "..gplant.." to "..gresult) dbg("Want to change "..gplant.." to "..gresult)