1598 {
1599
1600
1605 if (
NPC.waveNumber > 1)
1606 {
1608 }
1609 if (
NPC.waveNumber > 3)
1610 {
1612 }
1613 if (
NPC.waveNumber > 5)
1614 {
1616 }
1618 if (
NPC.waveNumber > 4)
1619 {
1621 }
1623 if (
NPC.waveNumber > 5)
1624 {
1626 }
1628 if (
NPC.waveNumber > 3)
1629 {
1631 }
1633 if (
NPC.waveNumber > 5)
1634 {
1636 }
1638 for (int i = 1; i < Main.CurrentFrameFlags.ActivePlayersCount; i++)
1639 {
1640 num = (int)((
double)
num * 1.3);
1642 num5 = (int)((
double)
num * 1.3);
1643 num6 = (int)((
double)
num * 1.35);
1645 }
1648 switch (
NPC.waveNumber)
1649 {
1650 case 1:
1651 if (Main.rand.Next(18) == 0 &&
NPC.CountNPCS(563) <
num2)
1652 {
1654 }
1655 else if (
NPC.CountNPCS(554) <
num)
1656 {
1657 if (Main.rand.Next(7) == 0)
1658 {
1660 }
1662 }
1663 break;
1664 case 2:
1665 if (Main.rand.Next(3) == 0 &&
NPC.CountNPCS(578) <
num7)
1666 {
1668 }
1669 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(563) <
num2)
1670 {
1672 }
1673 else if (Main.rand.Next(3) == 0 &&
NPC.CountNPCS(573) <
num5)
1674 {
1676 }
1677 else if (
NPC.CountNPCS(554) <
num)
1678 {
1679 if (Main.rand.Next(4) == 0)
1680 {
1682 }
1684 }
1685 break;
1686 case 3:
1687 if (Main.rand.Next(13) == 0 &&
NPC.CountNPCS(571) <
num6)
1688 {
1690 }
1691 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(573) <
num5)
1692 {
1694 }
1695 else if (Main.rand.Next(10) == 0 &&
NPC.CountNPCS(560) <
num3)
1696 {
1698 }
1699 else if (Main.rand.Next(8) == 0 &&
NPC.CountNPCS(563) <
num2)
1700 {
1702 }
1703 else if (
NPC.CountNPCS(554) +
NPC.CountNPCS(557) <
num)
1704 {
1706 }
1707 break;
1708 case 4:
1709 if (Main.rand.Next(24) == 0 && !
NPC.AnyNPCs(565))
1710 {
1712 }
1713 else if (Main.rand.Next(12) == 0 &&
NPC.CountNPCS(571) <
num6)
1714 {
1716 }
1717 else if (Main.rand.Next(15) == 0 &&
NPC.CountNPCS(560) <
num3)
1718 {
1720 }
1721 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(563) <
num2)
1722 {
1724 }
1725 else if (Main.rand.Next(5) == 0 &&
NPC.CountNPCS(573) +
NPC.CountNPCS(575) <
num5)
1726 {
1728 }
1729 else if (
NPC.CountNPCS(554) <
num)
1730 {
1732 }
1733 break;
1734 case 5:
1735 if (Main.rand.Next(20) == 0 && !
NPC.AnyNPCs(577))
1736 {
1738 }
1739 else if (Main.rand.Next(17) == 0 &&
NPC.CountNPCS(569) <
num4)
1740 {
1742 }
1743 else if (Main.rand.Next(8) == 0 &&
NPC.CountNPCS(571) <
num6)
1744 {
1746 }
1747 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(573) +
NPC.CountNPCS(575) <
num5)
1748 {
1750 }
1751 else if (
NPC.CountNPCS(554) +
NPC.CountNPCS(557) <
num)
1752 {
1753 if (Main.rand.Next(3) == 0)
1754 {
1756 }
1758 }
1759 break;
1760 case 6:
1761 if (Main.rand.Next(20) == 0 && !
NPC.AnyNPCs(577))
1762 {
1764 }
1765 else if (Main.rand.Next(20) == 0 && !
NPC.AnyNPCs(565))
1766 {
1768 }
1769 else if (Main.rand.Next(12) == 0 &&
NPC.CountNPCS(571) <
num6)
1770 {
1772 }
1773 else if (Main.rand.Next(25) == 0 &&
NPC.CountNPCS(569) <
num4)
1774 {
1776 }
1777 if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(578) <
num7)
1778 {
1780 }
1781 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(573) +
NPC.CountNPCS(575) <
num5)
1782 {
1784 }
1785 else if (Main.rand.Next(5) == 0 &&
NPC.CountNPCS(563) <
num2)
1786 {
1788 }
1789 else if (
NPC.CountNPCS(554) +
NPC.CountNPCS(557) <
num)
1790 {
1791 if (Main.rand.Next(3) == 0)
1792 {
1794 }
1796 }
1797 break;
1798 case 7:
1799 if (Main.rand.Next(20) == 0 &&
NPC.CountNPCS(571) <
num6)
1800 {
1802 }
1803 else if (Main.rand.Next(17) == 0 &&
NPC.CountNPCS(569) <
num4)
1804 {
1806 }
1807 else if (Main.rand.Next(10) == 0 &&
NPC.CountNPCS(563) <
num2)
1808 {
1810 }
1811 else if (
NPC.CountNPCS(554) +
NPC.CountNPCS(557) <
num)
1812 {
1813 if (Main.rand.Next(5) == 0)
1814 {
1816 }
1818 }
1819 break;
1820 default:
1822 break;
1823 }
1824 if (Main.netMode == 2 &&
num8 < 200)
1825 {
1826 NetMessage.SendData(23, -1, -1,
null,
num8);
1827 }
1828 if (Main.netMode == 2 &&
num9 < 200)
1829 {
1830 NetMessage.SendData(23, -1, -1,
null,
num9);
1831 }
1832 }
static IEntitySource GetSpawnSource_OldOnesArmy()