From 7379aa74cf98c7e4c7aa5325ef1531d412a0abac Mon Sep 17 00:00:00 2001 From: Paramat Date: Sat, 1 Jun 2019 20:50:43 +0100 Subject: 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. --- src/mapgen/mapgen.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mapgen/mapgen.h') diff --git a/src/mapgen/mapgen.h b/src/mapgen/mapgen.h index 414c011d9..2fc3aed95 100644 --- a/src/mapgen/mapgen.h +++ b/src/mapgen/mapgen.h @@ -283,6 +283,7 @@ protected: NoiseParams np_cave1; NoiseParams np_cave2; NoiseParams np_cavern; + NoiseParams np_dungeons; float cave_width; float cavern_limit; float cavern_taper; -- cgit v1.2.3