77312 {
77313 if (Main.netMode == 1 || (
Type == 262 &&
AnyNPCs(262)))
77314 {
77315 return;
77316 }
77318 {
77319 case 245:
77321 {
77322 return;
77323 }
77324 try
77325 {
77326 int num2 = (int)Main.player[
plr].Center.X / 16;
77327 int num3 = (int)Main.player[
plr].Center.Y / 16;
77331 {
77333 {
77334 if (Main.tile[
j,
k].active() && Main.tile[
j,
k].type == 237 && Main.tile[
j,
k].frameX == 18 && Main.tile[
j,
k].frameY == 0)
77335 {
77338 }
77339 }
77340 }
77342 {
77343 return;
77344 }
77348 {
77350 {
77352 break;
77353 }
77354 }
77356 {
77358 {
77360 break;
77361 }
77362 }
77367 if (Main.netMode == 0)
77368 {
77370 }
77371 else if (Main.netMode == 2)
77372 {
77374 }
77375 return;
77376 }
77377 catch
77378 {
77379 return;
77380 }
77381 case 370:
77382 {
77385 {
77386 return;
77387 }
77388 for (
int i = 0;
i < 1000;
i++)
77389 {
77390 Projectile projectile = Main.projectile[
i];
77391 if (projectile.active && projectile.bobber && projectile.owner ==
plr)
77392 {
77394 string typeName = Main.npc[num].TypeName;
77395 if (Main.netMode == 0)
77396 {
77398 }
77399 else if (Main.netMode == 2)
77400 {
77402 }
77403 break;
77404 }
77405 }
77406 return;
77407 }
77408 case 398:
77410 {
77413 if (Main.netMode == 0)
77414 {
77416 }
77417 else if (Main.netMode == 2)
77418 {
77420 }
77421 }
77422 return;
77423 }
77424 bool flag = false;
77436 {
77438 }
77439 if (
num13 > Main.maxTilesX)
77440 {
77441 num13 = Main.maxTilesX;
77442 }
77444 {
77446 }
77447 if (
num15 > Main.maxTilesY)
77448 {
77449 num15 = Main.maxTilesY;
77450 }
77451 for (
int m = 0;
m < 1000;
m++)
77452 {
77453 for (
int n = 0;
n < 100;
n++)
77454 {
77458 {
77459 if ((Main.wallHouse[Main.tile[
num20,
num21].wall] &&
m < 999) || (
Type == 50 &&
m < 500 && Main.tile[
num21,
num21].wall > 0))
77460 {
77461 continue;
77462 }
77464 {
77466 {
77468 {
77472 flag = true;
77473 }
77474 break;
77475 }
77476 }
77477 if (flag &&
Type == 50 &&
m < 900)
77478 {
77480 if (!Collision.CanHit(
new Vector2(
num10,
num11 - 1) * 16f, 16, 16,
new Vector2(
num10,
num11 - 1 -
num23) * 16f, 16, 16) || !Collision.CanHit(
new Vector2(
num10,
num11 - 1 -
num23) * 16f, 16, 16, Main.player[
plr].Center, 0, 0))
77481 {
77484 flag = false;
77485 }
77486 }
77487 if (flag &&
m < 999)
77488 {
77494 {
77495 flag = false;
77496 }
77497 if (
num25 > Main.maxTilesX)
77498 {
77499 flag = false;
77500 }
77502 {
77503 flag = false;
77504 }
77505 if (
num27 > Main.maxTilesY)
77506 {
77507 flag = false;
77508 }
77509 if (flag)
77510 {
77512 {
77514 {
77516 {
77517 flag = false;
77518 break;
77519 }
77520 }
77521 }
77522 }
77523 }
77524 }
77525 if (flag || flag)
77526 {
77527 break;
77528 }
77529 }
77530 if (flag &&
m < 999)
77531 {
77534 {
77535 if (Main.player[
num30].active)
77536 {
77539 {
77540 flag = false;
77541 }
77542 }
77543 }
77544 }
77545 if (flag)
77546 {
77547 break;
77548 }
77549 }
77550 if (flag)
77551 {
77555 }
77556 }
static void BroadcastChatMessage(NetworkText text, Color color, int excludedPlayer=-1)
static string GetTextValue(string key)
static NetworkText FromKey(string key, params object[] substitutions)
static void SpawnBoss(int spawnPositionX, int spawnPositionY, int Type, int targetPlayerIndex)
static bool AnyNPCs(int Type)
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)