summaryrefslogtreecommitdiffstats
path: root/src/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-26 14:16:33 +0200
committerMattes D <github@xoft.cz>2014-08-26 14:16:33 +0200
commitac4d3a30ed76a7e139eac02de9edcb9fdbbf7957 (patch)
treee0df88b6e84d1b9412e3639ba439a7c50f721480 /src/Generating/ComposableGenerator.cpp
parentType warning fixes. (diff)
downloadcuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar
cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar.gz
cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar.bz2
cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar.lz
cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar.xz
cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.tar.zst
cuberite-ac4d3a30ed76a7e139eac02de9edcb9fdbbf7957.zip
Diffstat (limited to '')
-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 2f575fe27..a3a9f170d 100644
--- a/src/Generating/ComposableGenerator.cpp
+++ b/src/Generating/ComposableGenerator.cpp
@@ -19,6 +19,7 @@
#include "Caves.h"
#include "DistortedHeightmap.h"
+#include "DungeonRoomsFinisher.h"
#include "EndGen.h"
#include "MineShafts.h"
#include "NetherFortGen.h"
@@ -343,6 +344,13 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
float Threshold = (float)a_IniFile.GetValueSetF("Generator", "DualRidgeCavesThreshold", 0.3);
m_FinishGens.push_back(new cStructGenDualRidgeCaves(Seed, Threshold));
}
+ else if (NoCaseCompare(*itr, "DungeonRooms") == 0)
+ {
+ int GridSize = a_IniFile.GetValueSetI("Generator", "DungeonRoomsGridSize", 48);
+ int MaxSize = a_IniFile.GetValueSetI("Generator", "DungeonRoomsMaxSize", 7);
+ int MinSize = a_IniFile.GetValueSetI("Generator", "DungeonRoomsMinSize", 5);
+ m_FinishGens.push_back(new cDungeonRoomsFinisher(*m_HeightGen, Seed, GridSize, MaxSize, MinSize));
+ }
else if (NoCaseCompare(*itr, "Ice") == 0)
{
m_FinishGens.push_back(new cFinishGenIce);