public override float SpawnChance(NPCSpawnInfo spawnInfo) { int x = spawnInfo.spawnTileX; int y = spawnInfo.spawnTileY; int tile = Main.tile[x, y].type; return((DarkSouls.NoZoneAllowWater(spawnInfo)) && Main.hardMode && y >= Main.rockLayer ? 0.1f : 0f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { int x = spawnInfo.spawnTileX; int y = spawnInfo.spawnTileY; int tile = Main.tile[x, y].type; return(DarkSoulsWorld.downedAttraidies && DarkSouls.NoZoneAllowWater(spawnInfo) && Main.hardMode && !Main.dayTime && !spawnInfo.player.ZoneDungeon && y < Main.rockLayer ? 0.001f : 0f); }