diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-31 19:10:17 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-03-31 19:10:17 +0200 |
commit | d441096d6229584cce4c76302537c59d89017612 (patch) | |
tree | 7bf3b3fde162610b623e1a41e76e3724370a0f1a /source/Generating/ComposableGenerator.cpp | |
parent | MineShafts: Staircases have further connections behind them. (diff) | |
download | cuberite-d441096d6229584cce4c76302537c59d89017612.tar cuberite-d441096d6229584cce4c76302537c59d89017612.tar.gz cuberite-d441096d6229584cce4c76302537c59d89017612.tar.bz2 cuberite-d441096d6229584cce4c76302537c59d89017612.tar.lz cuberite-d441096d6229584cce4c76302537c59d89017612.tar.xz cuberite-d441096d6229584cce4c76302537c59d89017612.tar.zst cuberite-d441096d6229584cce4c76302537c59d89017612.zip |
Diffstat (limited to 'source/Generating/ComposableGenerator.cpp')
-rw-r--r-- | source/Generating/ComposableGenerator.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source/Generating/ComposableGenerator.cpp b/source/Generating/ComposableGenerator.cpp index c8a96da05..f6b52bce7 100644 --- a/source/Generating/ComposableGenerator.cpp +++ b/source/Generating/ComposableGenerator.cpp @@ -326,9 +326,15 @@ void cComposableGenerator::InitStructureGens(cIniFile & a_IniFile) }
else if (NoCaseCompare(*itr, "MineShafts") == 0)
{
- int GridSize = a_IniFile.GetValueSetI("Generator", "MineShaftsGridSize", 256);
- int MaxSystemSize = a_IniFile.GetValueSetI("Generator", "MineShaftsMaxSystemSize", 128);
- m_StructureGens.push_back(new cStructGenMineShafts(Seed, GridSize, MaxSystemSize, 600, 200, 200));
+ int GridSize = a_IniFile.GetValueSetI("Generator", "MineShaftsGridSize", 256);
+ int MaxSystemSize = a_IniFile.GetValueSetI("Generator", "MineShaftsMaxSystemSize", 128);
+ int ChanceCorridor = a_IniFile.GetValueSetI("Generator", "MineShaftsChanceCorridor", 600);
+ int ChanceCrossing = a_IniFile.GetValueSetI("Generator", "MineShaftsChanceCrossing", 200);
+ int ChanceStaircase = a_IniFile.GetValueSetI("Generator", "MineShaftsChanceStaircase", 200);
+ m_StructureGens.push_back(new cStructGenMineShafts(
+ Seed, GridSize, MaxSystemSize,
+ ChanceCorridor, ChanceCrossing, ChanceStaircase
+ ));
}
else if (NoCaseCompare(*itr, "OreNests") == 0)
{
|