Allow pyramids in any biome (by setting).
This commit is contained in:
parent
9c121b4c09
commit
dfddba270c
3 changed files with 9 additions and 1 deletions
5
init.lua
5
init.lua
|
@ -37,6 +37,11 @@ if fun_caves.starting_equipment == nil then
|
||||||
fun_caves.starting_equipment = false
|
fun_caves.starting_equipment = false
|
||||||
end
|
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
|
fun_caves.DEBUG = false -- for maintenance only
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ fun_caves.pyramid = function(minp, maxp, data, p2data, area, biomemap, biome_ids
|
||||||
|
|
||||||
if biomemap then
|
if biomemap then
|
||||||
local biome = biome_ids[biomemap[3240]]
|
local biome = biome_ids[biomemap[3240]]
|
||||||
if not pyramid_biomes[biome] then
|
if not (fun_caves.pyramids_everywhere or pyramid_biomes[biome]) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
elseif math.random(5) ~= 1 then
|
elseif math.random(5) ~= 1 then
|
||||||
|
|
|
@ -15,3 +15,6 @@ fun_caves_use_villages (Villages) bool true
|
||||||
|
|
||||||
# Set to give wooden tools to starting players.
|
# Set to give wooden tools to starting players.
|
||||||
fun_caves_starting_equipment (Starting Equipment) bool false
|
fun_caves_starting_equipment (Starting Equipment) bool false
|
||||||
|
|
||||||
|
# Set to create pyramids in any biome.
|
||||||
|
fun_caves_pyramids_everywhere (Pyramids Everywhere) bool false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue