summaryrefslogtreecommitdiffstats
path: root/src/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-27 13:54:27 +0200
committermadmaxoft <github@xoft.cz>2014-07-27 13:54:27 +0200
commit472f70a6762369eb3375eb1ed874a95faaf2de71 (patch)
tree5dc0efb11f0ebd032b65b1861514659f6e10971a /src/Generating/ComposableGenerator.cpp
parentRoughRavines: Initial generator implementation. (diff)
downloadcuberite-472f70a6762369eb3375eb1ed874a95faaf2de71.tar
cuberite-472f70a6762369eb3375eb1ed874a95faaf2de71.tar.gz
cuberite-472f70a6762369eb3375eb1ed874a95faaf2de71.tar.bz2
cuberite-472f70a6762369eb3375eb1ed874a95faaf2de71.tar.lz
cuberite-472f70a6762369eb3375eb1ed874a95faaf2de71.tar.xz
cuberite-472f70a6762369eb3375eb1ed874a95faaf2de71.tar.zst
cuberite-472f70a6762369eb3375eb1ed874a95faaf2de71.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/ComposableGenerator.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp
index 757f6ddb7..3326dda36 100644
--- a/src/Generating/ComposableGenerator.cpp
+++ b/src/Generating/ComposableGenerator.cpp
@@ -410,10 +410,20 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
}
else if (NoCaseCompare(*itr, "RoughRavines") == 0)
{
- int GridSize = a_IniFile.GetValueSetI("Generator", "RoughRavinesGridSize", 256);
- int MaxOffset = a_IniFile.GetValueSetI("Generator", "RoughRavinesMaxOffset", 128);
- int MaxSize = a_IniFile.GetValueSetI("Generator", "RoughRavinesMaxSize", 64);
- m_FinishGens.push_back(new cRoughRavines(Seed, MaxSize, GridSize, MaxOffset));
+ int GridSize = a_IniFile.GetValueSetI("Generator", "RoughRavinesGridSize", 256);
+ int MaxOffset = a_IniFile.GetValueSetI("Generator", "RoughRavinesMaxOffset", 128);
+ int MaxSize = a_IniFile.GetValueSetI("Generator", "RoughRavinesMaxSize", 128);
+ int MinSize = a_IniFile.GetValueSetI("Generator", "RoughRavinesMinSize", 64);
+ double MaxCenterWidth = a_IniFile.GetValueSetF("Generator", "RoughRavinesMaxCenterWidth", 8);
+ double MinCenterWidth = a_IniFile.GetValueSetF("Generator", "RoughRavinesMinCenterWidth", 2);
+ double MaxRoughness = a_IniFile.GetValueSetF("Generator", "RoughRavinesMaxRoughness", 0.2);
+ double MinRoughness = a_IniFile.GetValueSetF("Generator", "RoughRavinesMinRoughness", 0.05);
+ m_FinishGens.push_back(new cRoughRavines(
+ Seed, MaxSize, MinSize,
+ (float)MaxCenterWidth, (float)MinCenterWidth,
+ (float)MaxRoughness, (float)MinRoughness,
+ GridSize, MaxOffset
+ ));
}
else if (NoCaseCompare(*itr, "Snow") == 0)
{