diff options
author | Paramat <paramat@users.noreply.github.com> | 2019-06-01 20:50:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-01 20:50:43 +0100 |
commit | 7379aa74cf98c7e4c7aa5325ef1531d412a0abac (patch) | |
tree | 45a3c608dce1fd03182f4f84f1968439dbfa4dbc /src/mapgen/mapgen_valleys.h | |
parent | a1459a9eac4eeb35a6c578a8b8f96393f87ed53d (diff) | |
download | minetest-7379aa74cf98c7e4c7aa5325ef1531d412a0abac.tar.gz minetest-7379aa74cf98c7e4c7aa5325ef1531d412a0abac.tar.bz2 minetest-7379aa74cf98c7e4c7aa5325ef1531d412a0abac.zip |
Dungeons: Settable density noise, move number calculation to mapgens (#8473)
Add user-settable noise parameters for dungeon density to each mapgen,
except V6 which hardcodes this noise parameter.
Move the calculation of number of dungeons generated in a mapchunk out
of dungeongen.cpp and into mapgen code, to allow mapgens to generate
any desired number of dungeons in a mapchunk, instead of being forced
to have number of dungeons determined by a density noise.
This is more flexible and allows mapgens to use dungeon generation to
create custom structures, such as occasional mega-dungeons.
Diffstat (limited to 'src/mapgen/mapgen_valleys.h')
-rw-r--r-- | src/mapgen/mapgen_valleys.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mapgen/mapgen_valleys.h b/src/mapgen/mapgen_valleys.h index fd40b5bab..ab80dc5c9 100644 --- a/src/mapgen/mapgen_valleys.h +++ b/src/mapgen/mapgen_valleys.h @@ -67,6 +67,7 @@ struct MapgenValleysParams : public MapgenParams { NoiseParams np_cave1; NoiseParams np_cave2; NoiseParams np_cavern; + NoiseParams np_dungeons; MapgenValleysParams(); ~MapgenValleysParams() = default; |