diff options
author | Mattes D <github@xoft.cz> | 2014-08-27 12:25:27 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-27 12:25:27 +0200 |
commit | 62e1c45ca5352205679a60e963853e8511799657 (patch) | |
tree | b69e9a171cc83a02c597fbe5ba86d7ea3e8a84e8 /src/Generating/ComposableGenerator.cpp | |
parent | DungeonRooms: Added the spawner in the center of the room. (diff) | |
download | cuberite-62e1c45ca5352205679a60e963853e8511799657.tar cuberite-62e1c45ca5352205679a60e963853e8511799657.tar.gz cuberite-62e1c45ca5352205679a60e963853e8511799657.tar.bz2 cuberite-62e1c45ca5352205679a60e963853e8511799657.tar.lz cuberite-62e1c45ca5352205679a60e963853e8511799657.tar.xz cuberite-62e1c45ca5352205679a60e963853e8511799657.tar.zst cuberite-62e1c45ca5352205679a60e963853e8511799657.zip |
Diffstat (limited to 'src/Generating/ComposableGenerator.cpp')
-rw-r--r-- | src/Generating/ComposableGenerator.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp index a3a9f170d..6f4007d24 100644 --- a/src/Generating/ComposableGenerator.cpp +++ b/src/Generating/ComposableGenerator.cpp @@ -346,10 +346,11 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile) } 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)); + int GridSize = a_IniFile.GetValueSetI("Generator", "DungeonRoomsGridSize", 48); + int MaxSize = a_IniFile.GetValueSetI("Generator", "DungeonRoomsMaxSize", 7); + int MinSize = a_IniFile.GetValueSetI("Generator", "DungeonRoomsMinSize", 5); + AString HeightDistrib = a_IniFile.GetValueSet ("Generator", "DungeonRoomsHeightDistrib", "0, 0; 10, 10; 11, 500; 40, 500; 60, 40; 90, 1"); + m_FinishGens.push_back(new cDungeonRoomsFinisher(*m_HeightGen, Seed, GridSize, MaxSize, MinSize, HeightDistrib)); } else if (NoCaseCompare(*itr, "Ice") == 0) { |