public override float SpawnChance(NPCSpawnInfo spawnInfo) { int x = spawnInfo.spawnTileX; int y = spawnInfo.spawnTileY; int tile = Main.tile[x, y].type; return((Consolaria.NormalSpawn(spawnInfo) && Consolaria.NoZoneAllowWater(spawnInfo)) && Main.dayTime && !CWorld.downedLepus && y < Main.worldSurface && !spawnInfo.sky ? 0.01f : 0); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { int x = spawnInfo.spawnTileX; int y = spawnInfo.spawnTileY; int tile = (int)Main.tile[x, y].type; return((Consolaria.NoZoneAllowWater(spawnInfo)) && !spawnInfo.player.ZoneDungeon && !spawnInfo.player.ZoneJungle && y > Main.rockLayer ? 0.001f : 0f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { int x = spawnInfo.spawnTileX; int y = spawnInfo.spawnTileY; int tile = Main.tile[x, y].type; return((Consolaria.NormalSpawn(spawnInfo) && Consolaria.NoZoneAllowWater(spawnInfo)) && spawnInfo.player.ZoneDungeon && spawnInfo.spawnTileY > Main.maxTilesY - 200 ? 0.03f : 0); }