1291 {
1292
1293
1298 if (
NPC.waveNumber > 1)
1299 {
1301 }
1302 if (
NPC.waveNumber > 3)
1303 {
1305 }
1306 if (
NPC.waveNumber > 5)
1307 {
1309 }
1311 if (
NPC.waveNumber > 4)
1312 {
1314 }
1317 if (
NPC.waveNumber > 3)
1318 {
1320 }
1322 if (
NPC.waveNumber > 5)
1323 {
1325 }
1326 for (int i = 1; i < Main.CurrentFrameFlags.ActivePlayersCount; i++)
1327 {
1328 num = (int)((
double)
num * 1.3);
1330 num5 = (int)((
double)
num * 1.3);
1331 num6 = (int)((
double)
num * 1.35);
1332 }
1335 switch (
NPC.waveNumber)
1336 {
1337 case 1:
1338 if (Main.rand.Next(20) == 0 &&
NPC.CountNPCS(562) <
num2)
1339 {
1341 }
1342 else if (
NPC.CountNPCS(553) <
num)
1343 {
1345 }
1346 break;
1347 case 2:
1348 if (Main.rand.Next(3) == 0 &&
NPC.CountNPCS(572) <
num5)
1349 {
1351 }
1352 else if (Main.rand.Next(8) == 0 &&
NPC.CountNPCS(562) <
num2)
1353 {
1355 }
1356 else if (
NPC.CountNPCS(553) <
num)
1357 {
1359 }
1360 break;
1361 case 3:
1362 if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(572) <
num5)
1363 {
1365 }
1366 else if (Main.rand.Next(10) == 0 &&
NPC.CountNPCS(559) <
num3)
1367 {
1369 }
1370 else if (Main.rand.Next(8) == 0 &&
NPC.CountNPCS(562) <
num2)
1371 {
1373 }
1374 else if (
NPC.CountNPCS(553) +
NPC.CountNPCS(556) <
num)
1375 {
1376 if (Main.rand.Next(4) == 0)
1377 {
1379 }
1381 }
1382 break;
1383 case 4:
1384 if (Main.rand.Next(10) == 0 &&
NPC.CountNPCS(570) <
num6)
1385 {
1387 }
1388 else if (Main.rand.Next(12) == 0 &&
NPC.CountNPCS(559) <
num3)
1389 {
1391 }
1392 else if (Main.rand.Next(6) == 0 &&
NPC.CountNPCS(562) <
num2)
1393 {
1395 }
1396 else if (Main.rand.Next(3) == 0 &&
NPC.CountNPCS(572) <
num5)
1397 {
1399 }
1400 else if (
NPC.CountNPCS(553) <
num)
1401 {
1403 }
1404 break;
1405 case 5:
1406 if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(570) <
num6)
1407 {
1409 }
1410 else if (Main.rand.Next(10) == 0 &&
NPC.CountNPCS(559) <
num3)
1411 {
1413 }
1414 else if (Main.rand.Next(4) == 0 &&
NPC.CountNPCS(572) +
NPC.CountNPCS(574) <
num5)
1415 {
1417 }
1418 else if (
NPC.CountNPCS(553) +
NPC.CountNPCS(556) <
num)
1419 {
1420 if (Main.rand.Next(3) == 0)
1421 {
1423 }
1425 }
1426 break;
1427 case 6:
1428 if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(570) <
num6)
1429 {
1431 }
1432 else if (Main.rand.Next(17) == 0 &&
NPC.CountNPCS(568) <
num4)
1433 {
1435 }
1436 else if (Main.rand.Next(5) == 0 &&
NPC.CountNPCS(572) +
NPC.CountNPCS(574) <
num5)
1437 {
1439 }
1440 else if (Main.rand.Next(9) == 0 &&
NPC.CountNPCS(559) <
num3)
1441 {
1443 }
1444 else if (Main.rand.Next(3) == 0 &&
NPC.CountNPCS(562) <
num2)
1445 {
1447 }
1448 else if (
NPC.CountNPCS(553) +
NPC.CountNPCS(556) <
num)
1449 {
1450 if (Main.rand.Next(3) != 0)
1451 {
1453 }
1455 }
1456 break;
1457 case 7:
1458 {
1461 {
1463 }
1464 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(570) <
num6)
1465 {
1467 }
1468 else if (Main.rand.Next(17) == 0 &&
NPC.CountNPCS(568) <
num4)
1469 {
1471 }
1472 else if (Main.rand.Next(7) == 0 &&
NPC.CountNPCS(572) +
NPC.CountNPCS(574) <
num5)
1473 {
1475 }
1476 else if (Main.rand.Next(11) == 0 &&
NPC.CountNPCS(559) <
num3)
1477 {
1479 }
1480 else if (
NPC.CountNPCS(553) +
NPC.CountNPCS(556) <
num)
1481 {
1482 if (Main.rand.Next(2) == 0)
1483 {
1485 }
1487 }
1488 break;
1489 }
1490 default:
1492 break;
1493 }
1494 if (Main.netMode == 2 &&
num7 < 200)
1495 {
1496 NetMessage.SendData(23, -1, -1,
null,
num7);
1497 }
1498 if (Main.netMode == 2 &&
num8 < 200)
1499 {
1500 NetMessage.SendData(23, -1, -1,
null,
num8);
1501 }
1502 }
static void GetInvasionStatus(out int currentWave, out int requiredKillCount, out int currentKillCount, bool currentlyInCheckProgress=false)
static IEntitySource GetSpawnSource_OldOnesArmy()