diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-02 09:42:49 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-02 09:42:49 +0100 |
commit | 5db3ceb333e5a705de3ff03834d1c212e1c38e63 (patch) | |
tree | 1caf8dba5a0f0f8d78d0f1e601d003f82892f416 /src/Generating/DungeonRoomsFinisher.cpp | |
parent | Using static cast for Dungeon spawners (diff) | |
download | cuberite-5db3ceb333e5a705de3ff03834d1c212e1c38e63.tar cuberite-5db3ceb333e5a705de3ff03834d1c212e1c38e63.tar.gz cuberite-5db3ceb333e5a705de3ff03834d1c212e1c38e63.tar.bz2 cuberite-5db3ceb333e5a705de3ff03834d1c212e1c38e63.tar.lz cuberite-5db3ceb333e5a705de3ff03834d1c212e1c38e63.tar.xz cuberite-5db3ceb333e5a705de3ff03834d1c212e1c38e63.tar.zst cuberite-5db3ceb333e5a705de3ff03834d1c212e1c38e63.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/DungeonRoomsFinisher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Generating/DungeonRoomsFinisher.cpp b/src/Generating/DungeonRoomsFinisher.cpp index 492ab1ed9..19ac3b8b2 100644 --- a/src/Generating/DungeonRoomsFinisher.cpp +++ b/src/Generating/DungeonRoomsFinisher.cpp @@ -61,12 +61,12 @@ public: // Choose what the mobspawner will spawn. // 25% chance for a spider, 25% for a skeleton and 50% chance to get a zombie spawer. - NOISE_DATATYPE MobType = a_Noise.IntNoise3D(a_OriginX, m_FloorHeight, a_OriginZ); - if (MobType <= -0.5) + int MobType = (a_Noise.IntNoise3D(a_OriginX, m_FloorHeight, a_OriginZ) / 7) % 100 + if (MobType <= 25) { m_MonsterType = mtSkeleton; } - else if (MobType <= 0) + else if (MobType <= 50) { m_MonsterType = mtSpider; } |