1
0

Only spawn nether mobs in nether biome.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@613 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
cedeel@gmail.com 2012-06-14 23:25:26 +00:00
parent 6f70fb2845
commit 6327d63e25

View File

@ -747,26 +747,32 @@ void cWorld::TickSpawnMobs(float a_Dt)
if (m_WorldTime >= 12000 + 1000) if (m_WorldTime >= 12000 + 1000)
{ {
if (nightRand == 0) //random percent to spawn for night if (GetBiomeAt(SpawnPos.x, SpawnPos.z) == biHell) // Spawn nether mobs
Monster = new cSpider(); {
else if (nightRand == 1) if (nightRand == 1 && GetBiomeAt(SpawnPos.x, SpawnPos.z) == biHell)
Monster = new cZombie(); Monster = new cZombie();
else if (nightRand == 2) else if (nightRand == 5)
Monster = new cEnderman(); Monster = new cGhast();
else if (nightRand == 3) else if (nightRand == 6)
Monster = new cCreeper(); Monster = new cZombiepigman();
else if (nightRand == 4) }
Monster = new cCavespider(); else
else if (nightRand == 5) {
Monster = new cGhast(); if (nightRand == 0) //random percent to spawn for night
else if (nightRand == 6) Monster = new cSpider();
Monster = new cZombiepigman(); else if (nightRand == 2)
else if (nightRand == 7) Monster = new cEnderman();
Monster = new cSlime(); else if (nightRand == 3)
else if (nightRand == 8) Monster = new cCreeper();
Monster = new cSilverfish(); else if (nightRand == 4)
else if (nightRand == 9) Monster = new cCavespider();
Monster = new cSkeleton(); else if (nightRand == 7)
Monster = new cSlime();
else if (nightRand == 8)
Monster = new cSilverfish();
else if (nightRand == 9)
Monster = new cSkeleton();
}
//end random percent to spawn for night //end random percent to spawn for night
} }
else else