public override float SpawnChance(NPCSpawnInfo spawnInfo) { int x = spawnInfo.spawnTileX; int y = spawnInfo.spawnTileY; return(SGAUtils.NoInvasion(spawnInfo) && spawnInfo.water && spawnInfo.player.SGAPly().DankShrineZone ? 2f : 0f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { return(SGAUtils.NoInvasion(spawnInfo) && spawnInfo.spawnTileType == mod.TileType("MoistStone") && spawnInfo.player.SGAPly().DankShrineZone ? 0.75f : 0f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { int spawn = Main.rand.Next(1, 3); return(spawn == 2 && SGAUtils.NoInvasion(spawnInfo) && spawnInfo.spawnTileType == mod.TileType("MoistStone") && spawnInfo.player.SGAPly().DankShrineZone ? 0.50f : 0f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { int spawn = Main.rand.Next(100); return(Main.hardMode && spawnInfo.spawnTileY < Main.rockLayer && (SGAUtils.NoInvasion(spawnInfo) && spawn == 24 || (spawnInfo.spawnTileType == mod.TileType("MoistStone") && spawn < 4)) ? 1f : 0f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { int rand = Main.rand.Next(1, 95); return(Main.hardMode && rand == 45 && SGAUtils.NoInvasion(spawnInfo) && spawnInfo.spawnTileType == mod.TileType("MoistStone") && spawnInfo.player.SGAPly().DankShrineZone ? 0.5f : 0f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { return(spawnInfo.water && SGAUtils.NoInvasion(spawnInfo) && spawnInfo.player.SGAPly().DankShrineZone ? 0.75f : 0f); }