52597 {
52598 bool canSpawn = false;
52599 int num = Main.maxTilesX / 2;
52604 RandomTeleportationAttemptSettings settings = new RandomTeleportationAttemptSettings
52605 {
52606 mostlySolidFloor = true,
52607 avoidAnyLiquid = true,
52608 avoidLava = true,
52609 avoidHurtTiles = true,
52610 avoidWalls = true,
52611 attemptsBeforeGivingUp = 1000,
52612 maximumFallDistanceFromOrignalPoint = 30
52613 };
52615 if (!canSpawn)
52616 {
52618 }
52619 if (!canSpawn)
52620 {
52622 }
52623 if (canSpawn)
52624 {
52628 if (Main.netMode == 2)
52629 {
52632 }
52633 }
52634 else
52635 {
52639 if (Main.netMode == 2)
52640 {
52643 }
52644 }
52645 }
void Teleport(Vector2 newPos, int Style=0, int extraInfo=0)
Vector2 CheckForGoodTeleportationSpot(ref bool canSpawn, int teleportStartX, int teleportRangeX, int teleportStartY, int teleportRangeY, RandomTeleportationAttemptSettings settings)