1514 {
1517 int num = 60;
1519 if (
NPC.waveNumber > 1)
1520 {
1522 }
1523 if (
NPC.waveNumber > 3)
1524 {
1526 }
1527 if (
NPC.waveNumber > 5)
1528 {
1530 }
1532 if (
NPC.waveNumber > 4)
1533 {
1535 }
1537 if (
NPC.waveNumber > 5)
1538 {
1540 }
1542 if (
NPC.waveNumber > 3)
1543 {
1545 }
1547 if (
NPC.waveNumber > 5)
1548 {
1550 }
1552 for (
int i = 1;
i < Main.CurrentFrameFlags.ActivePlayersCount;
i++)
1553 {
1554 num = (int)((double)num * 1.3);
1556 num5 = (int)((
double)num * 1.3);
1557 num6 = (int)((
double)num * 1.35);
1559 }
1562 switch (
NPC.waveNumber)
1563 {
1564 case 1:
1565 if (Main.rand.Next(18) == 0 &&
NPC.CountNPCS(563) <
num2)
1566 {
1568 }
1569 else if (
NPC.CountNPCS(554) < num)
1570 {
1571 if (Main.rand.Next(7) == 0)
1572 {
1574 }
1576 }
1577 break;
1578 case 2:
1579 if (Main.rand.Next(3) == 0 &&
NPC.CountNPCS(578) <
num7)
1580 {
1582 }
1583 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(563) <
num2)
1584 {
1586 }
1587 else if (Main.rand.Next(3) == 0 &&
NPC.CountNPCS(573) <
num5)
1588 {
1590 }
1591 else if (
NPC.CountNPCS(554) < num)
1592 {
1593 if (Main.rand.Next(4) == 0)
1594 {
1596 }
1598 }
1599 break;
1600 case 3:
1601 if (Main.rand.Next(13) == 0 &&
NPC.CountNPCS(571) <
num6)
1602 {
1604 }
1605 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(573) <
num5)
1606 {
1608 }
1609 else if (Main.rand.Next(10) == 0 &&
NPC.CountNPCS(560) <
num3)
1610 {
1612 }
1613 else if (Main.rand.Next(8) == 0 &&
NPC.CountNPCS(563) <
num2)
1614 {
1616 }
1617 else if (
NPC.CountNPCS(554) +
NPC.CountNPCS(557) < num)
1618 {
1620 }
1621 break;
1622 case 4:
1623 if (Main.rand.Next(24) == 0 && !
NPC.AnyNPCs(565))
1624 {
1626 }
1627 else if (Main.rand.Next(12) == 0 &&
NPC.CountNPCS(571) <
num6)
1628 {
1630 }
1631 else if (Main.rand.Next(15) == 0 &&
NPC.CountNPCS(560) <
num3)
1632 {
1634 }
1635 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(563) <
num2)
1636 {
1638 }
1639 else if (Main.rand.Next(5) == 0 &&
NPC.CountNPCS(573) +
NPC.CountNPCS(575) <
num5)
1640 {
1642 }
1643 else if (
NPC.CountNPCS(554) < num)
1644 {
1646 }
1647 break;
1648 case 5:
1649 if (Main.rand.Next(20) == 0 && !
NPC.AnyNPCs(577))
1650 {
1652 }
1653 else if (Main.rand.Next(17) == 0 &&
NPC.CountNPCS(569) <
num4)
1654 {
1656 }
1657 else if (Main.rand.Next(8) == 0 &&
NPC.CountNPCS(571) <
num6)
1658 {
1660 }
1661 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(573) +
NPC.CountNPCS(575) <
num5)
1662 {
1664 }
1665 else if (
NPC.CountNPCS(554) +
NPC.CountNPCS(557) < num)
1666 {
1667 if (Main.rand.Next(3) == 0)
1668 {
1670 }
1672 }
1673 break;
1674 case 6:
1675 if (Main.rand.Next(20) == 0 && !
NPC.AnyNPCs(577))
1676 {
1678 }
1679 else if (Main.rand.Next(20) == 0 && !
NPC.AnyNPCs(565))
1680 {
1682 }
1683 else if (Main.rand.Next(12) == 0 &&
NPC.CountNPCS(571) <
num6)
1684 {
1686 }
1687 else if (Main.rand.Next(25) == 0 &&
NPC.CountNPCS(569) <
num4)
1688 {
1690 }
1691 if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(578) <
num7)
1692 {
1694 }
1695 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(573) +
NPC.CountNPCS(575) <
num5)
1696 {
1698 }
1699 else if (Main.rand.Next(5) == 0 &&
NPC.CountNPCS(563) <
num2)
1700 {
1702 }
1703 else if (
NPC.CountNPCS(554) +
NPC.CountNPCS(557) < num)
1704 {
1705 if (Main.rand.Next(3) == 0)
1706 {
1708 }
1710 }
1711 break;
1712 case 7:
1713 if (Main.rand.Next(20) == 0 &&
NPC.CountNPCS(571) <
num6)
1714 {
1716 }
1717 else if (Main.rand.Next(17) == 0 &&
NPC.CountNPCS(569) <
num4)
1718 {
1720 }
1721 else if (Main.rand.Next(10) == 0 &&
NPC.CountNPCS(563) <
num2)
1722 {
1724 }
1725 else if (
NPC.CountNPCS(554) +
NPC.CountNPCS(557) < num)
1726 {
1727 if (Main.rand.Next(5) == 0)
1728 {
1730 }
1732 }
1733 break;
1734 default:
1736 break;
1737 }
1738 if (Main.netMode == 2 &&
num8 < 200)
1739 {
1740 NetMessage.SendData(23, -1, -1,
null,
num8);
1741 }
1742 if (Main.netMode == 2 &&
num9 < 200)
1743 {
1744 NetMessage.SendData(23, -1, -1,
null,
num9);
1745 }
1746 }
static IEntitySource GetSpawnSource_OldOnesArmy()