summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.cpp
diff options
context:
space:
mode:
authorp-mcgowan <mickeymcgowan@shaw.ca>2014-12-05 09:57:40 +0100
committerp-mcgowan <mickeymcgowan@shaw.ca>2014-12-05 09:57:40 +0100
commitc655d97c9db9408dc178f436baa87d894363ecb3 (patch)
tree14c75e957fdc4831c8ec34991792e67eee7a3efe /src/Generating/FinishGen.cpp
parentrestructured random animals, added check for desert (update as per wiki) (diff)
downloadcuberite-c655d97c9db9408dc178f436baa87d894363ecb3.tar
cuberite-c655d97c9db9408dc178f436baa87d894363ecb3.tar.gz
cuberite-c655d97c9db9408dc178f436baa87d894363ecb3.tar.bz2
cuberite-c655d97c9db9408dc178f436baa87d894363ecb3.tar.lz
cuberite-c655d97c9db9408dc178f436baa87d894363ecb3.tar.xz
cuberite-c655d97c9db9408dc178f436baa87d894363ecb3.tar.zst
cuberite-c655d97c9db9408dc178f436baa87d894363ecb3.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/FinishGen.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp
index 97ee5a9f9..6788afca3 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -1117,6 +1117,7 @@ eMonsterType cFinishGenPassiveMobs::GetRandomMob(cChunkDesc & a_ChunkDesc)
case biDeepOcean:
{
ListOfSpawnables.insert(MobIter, mtSquid);
+ break;
}
// Add ocelots in jungle biomes
case biJungle:
@@ -1126,6 +1127,7 @@ eMonsterType cFinishGenPassiveMobs::GetRandomMob(cChunkDesc & a_ChunkDesc)
case biJungleEdgeM:
{
ListOfSpawnables.insert(MobIter, mtOcelot);
+ break;
}
case biPlains:
case biSunflowerPlains:
@@ -1136,6 +1138,7 @@ eMonsterType cFinishGenPassiveMobs::GetRandomMob(cChunkDesc & a_ChunkDesc)
{
ListOfSpawnables.insert(MobIter, mtHorse);
// ListOfSpawnables.insert(mtDonkey);
+ break;
}
// Add wolves in forest and spruce forests
case biForest:
@@ -1145,16 +1148,21 @@ eMonsterType cFinishGenPassiveMobs::GetRandomMob(cChunkDesc & a_ChunkDesc)
case biColdTaigaM:
{
ListOfSpawnables.insert(MobIter, mtWolf);
+ break;
}
- // All other animals can be added to the list
+ // Nothing special about this biome
default:
{
- ListOfSpawnables.insert(MobIter, mtChicken);
- ListOfSpawnables.insert(MobIter, mtCow);
- ListOfSpawnables.insert(MobIter, mtPig);
- ListOfSpawnables.insert(MobIter, mtSheep);
+ break;
}
}
+ if ((a_ChunkDesc.GetBiome(x, z) != biMushroomIsland) && (a_ChunkDesc.GetBiome(x, z) != biMushroomShore))
+ {
+ ListOfSpawnables.insert(MobIter, mtChicken);
+ ListOfSpawnables.insert(MobIter, mtCow);
+ ListOfSpawnables.insert(MobIter, mtPig);
+ ListOfSpawnables.insert(MobIter, mtSheep);
+ }
if (ListOfSpawnables.empty())
{