Definition at line 16531 of file Main.cs.
16532 {
16535 int num = 0;
16539 for (
int i = 0;
i < 255;
i++)
16540 {
16542 {
16543 continue;
16544 }
16545 try
16546 {
16549 {
16550 num++;
16551 if (
player[
i].sleeping.FullyFallenAsleep)
16552 {
16554 }
16555 }
16556 }
16557 catch
16558 {
16560 {
16561 throw;
16562 }
16563 }
16564 }
16565 CurrentFrameFlags.ActivePlayersCount = num;
16566 CurrentFrameFlags.SleepingPlayersCount =
num2;
16568 {
16571 {
16575 }
16576 }
16578 NPC.RevengeManager.Update();
16580 {
16582 {
16584 }
16585 try
16586 {
16588 }
16589 catch
16590 {
16591 }
16593 {
16594 NPC.ResetRemixHax();
16595 }
16596 }
16598 {
16600 }
16601 for (
int j = 0;
j < 255;
j++)
16602 {
16603 player[
j].nearbyActiveNPCs = 0f;
16605 }
16609 NPC.taxCollector = false;
16610 NPC.ClearFoundActiveNPCs();
16611 NPC.UpdateFoundActiveNPCs();
16614 {
16616 }
16618 if (
NPC.offSetDelayTime > 0)
16619 {
16620 NPC.offSetDelayTime--;
16621 }
16623 {
16624 NPC.empressRageMode = false;
16625 }
16627 {
16628 for (
int k = 0;
k < 200;
k++)
16629 {
16631 if (
nPC.active &&
nPC.townNPC &&
nPC.type != 37 &&
nPC.type != 453 &&
nPC.type != 368)
16632 {
16633 nPC.StrikeNPCNoInteraction(9999, 10f, -
nPC.direction);
16635 {
16636 NetMessage.SendData(28, -1, -1,
null,
k, 9999f, 10f, -
nPC.direction);
16637 }
16638 }
16639 }
16640 NPC.unlockedPartyGirlSpawn = false;
16641 NPC.unlockedPrincessSpawn = false;
16642 NPC.unlockedSlimeRainbowSpawn = false;
16643 NPC.unlockedSlimeGreenSpawn = false;
16645 }
16646 if (
NPC.brainOfGravity >= 0 &&
NPC.brainOfGravity < 200 && (!
npc[
NPC.brainOfGravity].active ||
npc[
NPC.brainOfGravity].type != 266))
16647 {
16648 NPC.brainOfGravity = -1;
16649 }
16650 for (
int l = 0;
l < 200;
l++)
16651 {
16653 {
16654 try
16655 {
16656 npc[
l].UpdateNPC(
l);
16658 {
16660 }
16661 }
16663 {
16665 }
16666 }
16667 else
16668 {
16669 npc[
l].UpdateNPC(
l);
16670 }
16671 }
16673 for (
int m = 0;
m < 600;
m++)
16674 {
16676 {
16677 try
16678 {
16680 }
16681 catch
16682 {
16683 gore[
m] =
new Gore();
16684 }
16685 }
16686 else
16687 {
16689 }
16690 }
16692 CurrentFrameFlags.HadAnActiveInteractibleProjectile = false;
16694 for (
int n = 0;
n < 1000;
n++)
16695 {
16698 {
16699 try
16700 {
16702 }
16703 catch
16704 {
16706 }
16707 }
16708 else
16709 {
16711 }
16712 }
16716 Item.numberOfNewItems = 0;
16718 {
16720 {
16721 try
16722 {
16724 }
16725 catch
16726 {
16728 }
16729 }
16730 else
16731 {
16733 }
16734 }
16736 {
16737 try
16738 {
16739 Dust.UpdateDust();
16740 }
16741 catch
16742 {
16744 {
16747 }
16748 }
16749 }
16750 else
16751 {
16752 Dust.UpdateDust();
16753 }
16755 {
16756 CombatText.UpdateCombatText();
16757 PopupText.UpdateItemText();
16758 }
16760 {
16761 try
16762 {
16764 }
16765 catch
16766 {
16768 }
16769 }
16770 else
16771 {
16773 }
16776 {
16777 return;
16778 }
16780 {
16782 {
16783 try
16784 {
16787 }
16788 catch
16789 {
16790 }
16791 }
16792 else
16793 {
16796 }
16797 }
16799 {
16800 try
16801 {
16803 {
16805 }
16807 {
16809 }
16810 }
16811 catch
16812 {
16815 }
16816 }
16817 else
16818 {
16820 {
16822 }
16824 {
16826 }
16827 }
16829 upTimer = (float)
sw.Elapsed.TotalMilliseconds;
16831 {
16833 }
16834 else
16835 {
16837 }
16839 {
16842 }
16843 Chest.UpdateChestFrames();
16848 {
16851 {
16853 }
16855 {
16857 }
16858 }
16859 }
static bool[] DangerThatPreventsOtherDangers
static int cameraLerpTimeToggle
static int checkForSpawns
static int cameraLerpTimer
static void UpdateClient()
void PostUpdateAllProjectiles()
static AnchoredEntitiesCollection sleepingManager
TileDrawing TilesRenderer
static void UpdateInvasion()
void UpdateParticleSystems()
static uint _gameUpdateCount
static IChatMonitor chatMonitor
static BestiaryUnlocksTracker BestiaryTracker
AmbientWindSystem _ambientWindSys
static Projectile[] projectile
void PreUpdateAllProjectiles()
static bool afterPartyOfDoom
WallDrawing WallsRenderer
static int ProjectileUpdateLoopIndex
static float upTimerMaxDelay
static void UpdateServer()
static AnchoredEntitiesCollection sittingManager
static void CheckBossIndexes()
References Terraria.Main._ambientWindSys, Terraria.Main._gameUpdateCount, Terraria.Main.afterPartyOfDoom, Terraria.NPC.AnyNPCs(), Terraria.Main.BestiaryTracker, Terraria.NPC.brainOfGravity, Terraria.Main.cameraLerp, Terraria.Main.cameraLerpTimer, Terraria.Main.cameraLerpTimeToggle, Terraria.Main.chatMonitor, Terraria.Main.CheckBossIndexes(), Terraria.Main.checkForSpawns, Terraria.NPC.ClearFoundActiveNPCs(), Terraria.ID.NPCID.Sets.DangerThatPreventsOtherDangers, Terraria.Main.dust, Terraria.NPC.empressRageMode, Terraria.Main.gameMenu, Terraria.Main.gore, System.Text.RegularExpressions.i, Terraria.Main.ignoreErrors, Terraria.Main.item, Terraria.Main.myPlayer, Terraria.Main.netMode, Terraria.Enums.NPC, Terraria.Main.npc, Terraria.NPC.offSetDelayTime, Terraria.GameContent.Events.BirthdayParty.PartyIsUp, Terraria.Main.player, Terraria.Main.PostUpdateAllProjectiles(), Terraria.Main.PreUpdateAllProjectiles(), Terraria.Main.projectile, Terraria.Main.ProjectileUpdateLoopIndex, Terraria.Main.remixWorld, Terraria.NPC.ResetRemixHax(), Terraria.NPC.RevengeManager, Terraria.NetMessage.SendData(), Terraria.GameInput.LockOnHelper.SetDOWN(), Terraria.NPC.SetRemixHax(), Terraria.GameInput.LockOnHelper.SetUP(), Terraria.Main.sittingManager, Terraria.Main.sleepingManager, Terraria.NPC.SpawnNPC(), Terraria.Main.tileSolid, Terraria.Main.TilesRenderer, Terraria.GameContent.Drawing.TileDrawing.Update(), Terraria.GameContent.Drawing.WallDrawing.Update(), Terraria.GameContent.AmbientWindSystem.Update(), Terraria.GameContent.FixExploitManEaters.Update(), Terraria.GameContent.PressurePlateHelper.Update(), Terraria.Chest.UpdateChestFrames(), Terraria.Main.UpdateClient(), Terraria.CombatText.UpdateCombatText(), Terraria.Dust.UpdateDust(), Terraria.NPC.UpdateFoundActiveNPCs(), Terraria.Main.UpdateInvasion(), Terraria.PopupText.UpdateItemText(), Terraria.Main.UpdateParticleSystems(), Terraria.Main.UpdateServer(), Terraria.Main.UpdateTime(), Terraria.WorldGen.UpdateWorld(), Terraria.Main.upTimer, Terraria.Main.upTimerMax, Terraria.Main.upTimerMaxDelay, and Terraria.Main.WallsRenderer.
Referenced by Terraria.Main.DoUpdate().