summaryrefslogtreecommitdiffstats
path: root/src/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-06-02 21:49:47 +0200
committerMattes D <github@xoft.cz>2014-06-02 21:49:47 +0200
commit60786cb06d6babb33b3a303512a634fa823c7620 (patch)
treec078e2d7638c24b995fae8a7c2acc690a3db2ad8 /src/Generating/ComposableGenerator.cpp
parentSmall tweak for mobs (diff)
parentUpdate UnderwaterBase prefabs. (diff)
downloadcuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar
cuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar.gz
cuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar.bz2
cuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar.lz
cuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar.xz
cuberite-60786cb06d6babb33b3a303512a634fa823c7620.tar.zst
cuberite-60786cb06d6babb33b3a303512a634fa823c7620.zip
Diffstat (limited to 'src/Generating/ComposableGenerator.cpp')
-rw-r--r--src/Generating/ComposableGenerator.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp
index 4dd626ed4..cf736ce64 100644
--- a/src/Generating/ComposableGenerator.cpp
+++ b/src/Generating/ComposableGenerator.cpp
@@ -25,6 +25,7 @@
#include "Noise3DGenerator.h"
#include "POCPieceGenerator.h"
#include "Ravines.h"
+#include "UnderwaterBaseGen.h"
#include "VillageGen.h"
@@ -406,6 +407,13 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
{
m_FinishGens.push_back(new cStructGenTrees(Seed, m_BiomeGen, m_HeightGen, m_CompositionGen));
}
+ else if (NoCaseCompare(*itr, "UnderwaterBases") == 0)
+ {
+ int GridSize = a_IniFile.GetValueSetI("Generator", "UnderwaterBaseGridSize", 1024);
+ int MaxDepth = a_IniFile.GetValueSetI("Generator", "UnderwaterBaseMaxDepth", 7);
+ int MaxSize = a_IniFile.GetValueSetI("Generator", "UnderwaterBaseMaxSize", 128);
+ m_FinishGens.push_back(new cUnderwaterBaseGen(Seed, GridSize, MaxDepth, MaxSize, *m_BiomeGen));
+ }
else if (NoCaseCompare(*itr, "Villages") == 0)
{
int GridSize = a_IniFile.GetValueSetI("Generator", "VillageGridSize", 384);