restructure, with logic this time
This commit is contained in:
parent
bd8c1850da
commit
c655d97c9d
@ -1117,6 +1117,7 @@ eMonsterType cFinishGenPassiveMobs::GetRandomMob(cChunkDesc & a_ChunkDesc)
|
|||||||
case biDeepOcean:
|
case biDeepOcean:
|
||||||
{
|
{
|
||||||
ListOfSpawnables.insert(MobIter, mtSquid);
|
ListOfSpawnables.insert(MobIter, mtSquid);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
// Add ocelots in jungle biomes
|
// Add ocelots in jungle biomes
|
||||||
case biJungle:
|
case biJungle:
|
||||||
@ -1126,6 +1127,7 @@ eMonsterType cFinishGenPassiveMobs::GetRandomMob(cChunkDesc & a_ChunkDesc)
|
|||||||
case biJungleEdgeM:
|
case biJungleEdgeM:
|
||||||
{
|
{
|
||||||
ListOfSpawnables.insert(MobIter, mtOcelot);
|
ListOfSpawnables.insert(MobIter, mtOcelot);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case biPlains:
|
case biPlains:
|
||||||
case biSunflowerPlains:
|
case biSunflowerPlains:
|
||||||
@ -1136,6 +1138,7 @@ eMonsterType cFinishGenPassiveMobs::GetRandomMob(cChunkDesc & a_ChunkDesc)
|
|||||||
{
|
{
|
||||||
ListOfSpawnables.insert(MobIter, mtHorse);
|
ListOfSpawnables.insert(MobIter, mtHorse);
|
||||||
// ListOfSpawnables.insert(mtDonkey);
|
// ListOfSpawnables.insert(mtDonkey);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
// Add wolves in forest and spruce forests
|
// Add wolves in forest and spruce forests
|
||||||
case biForest:
|
case biForest:
|
||||||
@ -1145,16 +1148,21 @@ eMonsterType cFinishGenPassiveMobs::GetRandomMob(cChunkDesc & a_ChunkDesc)
|
|||||||
case biColdTaigaM:
|
case biColdTaigaM:
|
||||||
{
|
{
|
||||||
ListOfSpawnables.insert(MobIter, mtWolf);
|
ListOfSpawnables.insert(MobIter, mtWolf);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
// All other animals can be added to the list
|
// Nothing special about this biome
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
ListOfSpawnables.insert(MobIter, mtChicken);
|
break;
|
||||||
ListOfSpawnables.insert(MobIter, mtCow);
|
|
||||||
ListOfSpawnables.insert(MobIter, mtPig);
|
|
||||||
ListOfSpawnables.insert(MobIter, mtSheep);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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())
|
if (ListOfSpawnables.empty())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user