public override float SpawnChance(NPCSpawnInfo spawnInfo) { return((CheezeMod.NoBiomeNormalSpawn(spawnInfo) && (spawnInfo.spawnTileY > Main.worldSurface + 50) && (spawnInfo.spawnTileY < CheezeMod.CavernLayer)) ? 0.125f : 0f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { return((CheezeMod.NoBiomeNormalSpawn(spawnInfo) && (Main.dayTime) && (spawnInfo.spawnTileY < CheezeMod.HellLayer - 400)) ? ((Main.hardMode) ? 0.05f : 0.105f) : 0f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { return((CheezeMod.NoBiomeNormalSpawn(spawnInfo) && (Main.dayTime) && (Main.hardMode) && (spawnInfo.spawnTileY < Main.rockLayer)) ? 0.105f : 0f); }