public override float SpawnChance(NPCSpawnInfo spawnInfo) { if (SpawnHelper.SupressSpawns(spawnInfo, SpawnFlags.None, SpawnZones.Jungle)) { return(0); } return(spawnInfo.spawnTileY > Main.rockLayer && NPC.downedBoss1 ? 0.0368f : 0f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { if (SpawnHelper.SupressSpawns(spawnInfo, SpawnFlags.Hardmode, SpawnZones.Underground)) { return(0); } return(SpawnCondition.Cavern.Chance * 0.0438f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { if (SpawnHelper.SupressSpawns(spawnInfo, SpawnFlags.Lihzahrd, SpawnZones.None, SpawnFlags.SafeWall)) { return(0); } return(SpawnCondition.JungleTemple.Chance * 0.456f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { if (SpawnHelper.SupressSpawns(spawnInfo, SpawnFlags.None)) { return(0); } return((spawnInfo.spawnTileY > Main.rockLayer && spawnInfo.player.ZoneJungle) ? 0.0368f : 0f); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { if (SpawnHelper.SupressSpawns(spawnInfo, SpawnFlags.Eclipse)) { return(0); } if (NPC.downedMechBoss2 && NPC.downedMechBoss1 && NPC.downedMechBoss3) { return(0.1f); } return(0); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { if (SpawnHelper.SupressSpawns(spawnInfo, SpawnFlags.None, SpawnZones.Sandstorm)) { return(0); } if (Main.tileSand[spawnInfo.spawnTileType]) { return(SpawnCondition.SandstormEvent.Chance * 0.06f); } return(0); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { if (SpawnHelper.SupressSpawns(spawnInfo, SpawnFlags.Daytime, SpawnZones.Desert | SpawnZones.Overworld)) { return(0); } if (Main.tileSand[spawnInfo.spawnTileType]) { return(SpawnCondition.OverworldDayDesert.Chance * 0.04f); } return(0); }
public override float SpawnChance(NPCSpawnInfo spawnInfo) { if (SpawnHelper.SupressSpawns(spawnInfo, SpawnFlags.None, SpawnZones.Underground)) { return(0); } if (!NPC.downedBoss1) { return(0); } return(SpawnCondition.Cavern.Chance * 0.07f); }