Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Difficulty_3_GetRequiredWaveKills()

static int Terraria.GameContent.Events.DD2Event.Difficulty_3_GetRequiredWaveKills ( ref int waveNumber,
ref int currentKillCount,
bool currentlyInCheckProgress )
inlinestaticprivate

Definition at line 1451 of file DD2Event.cs.

1452 {
1453 switch (waveNumber)
1454 {
1455 case -1:
1456 return 0;
1457 case 1:
1458 return 60;
1459 case 2:
1460 return 80;
1461 case 3:
1462 return 100;
1463 case 4:
1464 return 120;
1465 case 5:
1466 return 140;
1467 case 6:
1468 return 180;
1469 case 7:
1470 {
1471 int num = NPC.FindFirstNPC(551);
1472 if (num == -1)
1473 {
1474 return 1;
1475 }
1476 currentKillCount = 100 - (int)((float)Main.npc[num].life / (float)Main.npc[num].lifeMax * 100f);
1477 return 100;
1478 }
1479 case 8:
1480 waveNumber = 7;
1481 currentKillCount = 1;
1483 {
1485 }
1486 return 1;
1487 default:
1488 return 10;
1489 }
1490 }

References Terraria.NPC.FindFirstNPC(), Terraria.Main.npc, and Terraria.GameContent.Events.DD2Event.StartVictoryScene().

Referenced by Terraria.GameContent.Events.DD2Event.GetInvasionStatus().