Allow pyramids in any biome (by setting).

This commit is contained in:
Duane 2016-07-30 20:05:26 -05:00
parent 9c121b4c09
commit dfddba270c
3 changed files with 9 additions and 1 deletions

View file

@ -37,6 +37,11 @@ if fun_caves.starting_equipment == nil then
fun_caves.starting_equipment = false
end
fun_caves.pyramids_everywhere = minetest.setting_getbool('fun_caves_pyramids_everywhere')
if fun_caves.pyramids_everywhere == nil then
fun_caves.pyramids_everywhere = false
end
fun_caves.DEBUG = false -- for maintenance only

View file

@ -83,7 +83,7 @@ fun_caves.pyramid = function(minp, maxp, data, p2data, area, biomemap, biome_ids
if biomemap then
local biome = biome_ids[biomemap[3240]]
if not pyramid_biomes[biome] then
if not (fun_caves.pyramids_everywhere or pyramid_biomes[biome]) then
return
end
elseif math.random(5) ~= 1 then

View file

@ -15,3 +15,6 @@ fun_caves_use_villages (Villages) bool true
# Set to give wooden tools to starting players.
fun_caves_starting_equipment (Starting Equipment) bool false
# Set to create pyramids in any biome.
fun_caves_pyramids_everywhere (Pyramids Everywhere) bool false