Exemple #1
0
        public override float SpawnChance(NPCSpawnInfo spawnInfo)
        {
            int x    = spawnInfo.spawnTileX;
            int y    = spawnInfo.spawnTileY;
            int tile = Main.tile[x, y].type;

            return((AntiarisMod.NoZoneAllowWater(spawnInfo)) && !spawnInfo.player.ZoneDungeon && !spawnInfo.player.ZoneJungle && y > Main.rockLayer ? 0.01f : 0f);
        }
Exemple #2
0
        public override float SpawnChance(NPCSpawnInfo spawnInfo)
        {
            int x    = spawnInfo.spawnTileX;
            int y    = spawnInfo.spawnTileY;
            int tile = Main.tile[x, y].type;

            return((AntiarisMod.NormalSpawn(spawnInfo) && Main.raining && AntiarisMod.NoZoneAllowWater(spawnInfo)) && spawnInfo.player.ZoneHoly && y < Main.worldSurface ? 0.1f : 0f);
        }
Exemple #3
0
 public override float SpawnChance(NPCSpawnInfo spawnInfo)
 {
     if (!Main.hardMode)
     {
         return(spawnInfo.spawnTileY <= Main.worldSurface || spawnInfo.playerSafe || (!spawnInfo.player.ZoneDungeon || !AntiarisMod.NoInvasion(spawnInfo)) ? 0.0f : 0.02f);
     }
     return(spawnInfo.spawnTileY <= Main.worldSurface || spawnInfo.playerSafe || (!spawnInfo.player.ZoneDungeon || !AntiarisMod.NoInvasion(spawnInfo)) ? 0.0f : 0.01f);
 }