summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-10-12 22:33:31 +0200
committerMattes D <github@xoft.cz>2013-10-12 22:33:31 +0200
commit3f09294e937ce579744299b9624e61d049810d98 (patch)
treed658e44398bc8f057252869bd36cd3528f35a5ea
parentFixed and exported cWorld:QueueTask(). (diff)
parentAdded more ghast spawning probability (diff)
downloadcuberite-3f09294e937ce579744299b9624e61d049810d98.tar
cuberite-3f09294e937ce579744299b9624e61d049810d98.tar.gz
cuberite-3f09294e937ce579744299b9624e61d049810d98.tar.bz2
cuberite-3f09294e937ce579744299b9624e61d049810d98.tar.lz
cuberite-3f09294e937ce579744299b9624e61d049810d98.tar.xz
cuberite-3f09294e937ce579744299b9624e61d049810d98.tar.zst
cuberite-3f09294e937ce579744299b9624e61d049810d98.zip
-rw-r--r--source/World.cpp27
1 files changed, 24 insertions, 3 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 2011f5a97..67b2738f0 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -772,16 +772,36 @@ void cWorld::TickSpawnMobs(float a_Dt)
// Spawn nether mobs
switch (nightRand)
{
- case 5: MobType = cMonster::mtGhast; break;
+ case 0: MobType = cMonster::mtBlaze; break;
+ case 1: MobType = cMonster::mtGhast; break;
+ case 2: MobType = cMonster::mtGhast; break;
+ case 3: MobType = cMonster::mtGhast; break;
+ case 4: MobType = cMonster::mtZombiePigman; break;
+ case 5: MobType = cMonster::mtZombiePigman; break;
case 6: MobType = cMonster::mtZombiePigman; break;
+ case 7: MobType = cMonster::mtZombiePigman; break;
+ case 8: MobType = cMonster::mtZombiePigman; break;
+ case 9: MobType = cMonster::mtZombiePigman; break;
}
break;
}
case biEnd:
{
- // Only endermen spawn in the End
- MobType = cMonster::mtEnderman;
+ // Spawn only The End mobs
+ switch (nightRand)
+ {
+ case 0: MobType = cMonster::mtEnderDragon; break;
+ case 1: MobType = cMonster::mtEnderman; break;
+ case 2: MobType = cMonster::mtEnderman; break;
+ case 3: MobType = cMonster::mtEnderman; break;
+ case 4: MobType = cMonster::mtEnderman; break;
+ case 5: MobType = cMonster::mtEnderman; break;
+ case 6: MobType = cMonster::mtEnderman; break;
+ case 7: MobType = cMonster::mtEnderman; break;
+ case 8: MobType = cMonster::mtEnderman; break;
+ case 9: MobType = cMonster::mtEnderman; break;
+ }
break;
}
@@ -822,6 +842,7 @@ void cWorld::TickSpawnMobs(float a_Dt)
case 3: MobType = cMonster::mtSheep; break;
case 4: MobType = cMonster::mtSquid; break;
case 5: MobType = cMonster::mtWolf; break;
+ case 6: MobType = cMonster::mtHorse; break;
}
} // else (night)
} // case overworld biomes