77175 {
77176 bool flag = true;
77177 bool flag2 =
false;
77179 int num = 0;
77181 for (
int i = 0;
i < 200;
i++)
77182 {
77183 if (Main.npc[i].active && Main.npc[i].type == 35)
77184 {
77185 flag = false;
77186 break;
77187 }
77188 }
77189 for (
int j = 0;
j < 200;
j++)
77190 {
77191 if (!Main.npc[
j].active)
77192 {
77193 continue;
77194 }
77195 if (Main.npc[
j].type == 37)
77196 {
77198 Main.npc[
j].ai[3] = 1f;
77199 zero = Main.npc[
j].position;
77200 num = Main.npc[
j].width;
77201 num2 = Main.npc[
j].height;
77202 if (Main.netMode == 2)
77203 {
77204 NetMessage.SendData(23, -1, -1,
null,
j);
77205 }
77206 }
77207 else if (Main.npc[
j].type == 54)
77208 {
77210 zero = Main.npc[
j].position;
77211 num = Main.npc[
j].width;
77212 num2 = Main.npc[
j].height;
77213 }
77214 }
77216 {
77218 Main.npc[
num3].netUpdate =
true;
77220 if (Main.netMode == 0)
77221 {
77223 }
77224 else if (Main.netMode == 2)
77225 {
77227 }
77228 }
77229 }
static void BroadcastChatMessage(NetworkText text, Color color, int excludedPlayer=-1)
static string GetTextValue(string key)
static NetworkText FromKey(string key, params object[] substitutions)
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)
static IEntitySource GetBossSpawnSource(int targetPlayerIndex)