90566 {
90567
90568
90569
90570
90571
90572
90573 if (pos.Y / 16
f < (
float)(Main.maxTilesY - 205) || Main.wofNPCIndex >= 0 || Main.netMode == 1 ||
AnyNPCs(113))
90574 {
90575 return;
90576 }
90577 Player.FindClosest(pos, 16, 16);
90579 if (pos.X / 16
f > (
float)(Main.maxTilesX / 2))
90580 {
90582 }
90584 int num3 = (int)pos.X;
90587 {
90589 for (int i = 0; i < 255; i++)
90590 {
90591 if (Main.player[i].active && Main.player[i].position.X > (
float)(
num3 - 1200) && Main.player[i].position.X < (
float)(
num3 + 1200))
90592 {
90596 }
90597 }
90598 if (
num3 / 16 < 20 ||
num3 / 16 > Main.maxTilesX - 20)
90599 {
90601 }
90602 }
90603 int num4 = (int)pos.Y;
90609 {
90610 while (true)
90611 {
90614 {
90615 break;
90616 }
90617 try
90618 {
90620 {
90622 break;
90623 }
90625 {
90627 break;
90628 }
90630 }
90631 catch
90632 {
90633 break;
90634 }
90635 }
90636 }
90637 int num9 = Main.UnderworldLayer + 10;
90640 {
90642 }
90644 {
90646 }
90649 if (Main.netMode == 0)
90650 {
90652 }
90653 else if (Main.netMode == 2)
90654 {
90656 }
90657 }
static void BroadcastChatMessage(NetworkText text, Color color, int excludedPlayer=-1)
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
static NetworkText FromKey(string key, params object[] substitutions)
Creates a NetworkText object from a localization key and optional substitutions. The receiving client...
Represents text that will be sent over the network in multiplayer and displayed to the receiving user...
static bool AnyNPCs(int Type)
Returns true if there are any active NPC in the world of the given NPC type (F:Terraria....
static int NewNPC(IEntitySource source, int X, int Y, int Type, int Start=0, float ai0=0f, float ai1=0f, float ai2=0f, float ai3=0f, int Target=255)
Spawns an NPC into the game world with the given type. This method should not be called on multipla...
static IEntitySource GetBossSpawnSource(int targetPlayerIndex)