1
0

Added cave spider to MobSpawner

This commit is contained in:
Lukas Pioch 2015-10-27 18:41:21 +01:00
parent ca705c23e8
commit 3e48b1f1eb

View File

@ -237,6 +237,17 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_R
return CanSpawn && HasFloor && (SkyLight <= 7) && (BlockLight <= 7);
}
case mtCaveSpider:
{
return (
(TargetBlock == E_BLOCK_AIR) &&
(!cBlockInfo::IsTransparent(BlockBelow)) &&
(SkyLight <= 7) &&
(BlockLight <= 7) &&
(Random.NextInt(2) == 0)
);
}
case mtCreeper:
case mtSkeleton:
case mtZombie: