Make villages optional.

This commit is contained in:
Duane 2016-06-30 13:58:18 -05:00
parent 6a68d3c616
commit d94847072f
3 changed files with 9 additions and 1 deletions

View file

@ -25,6 +25,11 @@ if fun_caves.breakable_wood == nil then
fun_caves.breakable_wood = false fun_caves.breakable_wood = false
end end
fun_caves.use_villages = minetest.setting_getbool('fun_caves_use_villages')
if fun_caves.use_villages == nil then
fun_caves.use_villages = true
end
fun_caves.DEBUG = false -- for maintenance only fun_caves.DEBUG = false -- for maintenance only

View file

@ -404,7 +404,7 @@ local function generate(p_minp, p_maxp, seed)
if not write3 then if not write3 then
write4, write_p4 = fun_caves.pyramid(minp, maxp, data, p2data, area, biomemap, biome_ids, node, heightmap) write4, write_p4 = fun_caves.pyramid(minp, maxp, data, p2data, area, biomemap, biome_ids, node, heightmap)
end end
if biomemap and not (write3 or write4) then if fun_caves.use_villages and biomemap and not (write3 or write4) then
local biome = biome_ids[biomemap[40*80+40]] local biome = biome_ids[biomemap[40*80+40]]
write5 = fun_caves.village(minp, maxp, data, p2data, area, node, biome, heightmap) write5 = fun_caves.village(minp, maxp, data, p2data, area, node, biome, heightmap)
end end

View file

@ -9,3 +9,6 @@ fun_caves_exploding_fungi (Exploding Fungi) bool true
# Unset this to make wook breakable by hand. # Unset this to make wook breakable by hand.
fun_caves_breakable_wood (Breakable Wood) bool false fun_caves_breakable_wood (Breakable Wood) bool false
# Unset this to remove primitive villages.
fun_caves_use_villages (Villages) bool true