42240 {
42241 if (Main.netMode != 1 && !Main.player[
owner].active)
42242 {
42245 Point point =
base.Center.ToTileCoordinates();
42250 return;
42251 }
42255 {
42258 velocity.Y = -5f;
42259 }
42261 {
42263 float num4 = Utils.Remap(
localAI[1], 15f, 30f, 0f, 1f);
42265 velocity.Y = -3f * (1f -
num4) + (
float)(-32 *
num5);
42268 {
42269 for (
int i = 0;
i < 30;
i++)
42270 {
42272 dust.velocity *= 1f;
42273 dust.velocity.X *= 0.5f;
42274 dust.velocity.Y = -3f;
42275 dust.fadeIn = 1.2f;
42276 dust.noGravity = true;
42277 dust.position.X += Main.rand.NextFloatDirection() * 8f;
42278 dust.velocity =
new Vector2(0f, -1f).RotatedBy((
float)
Math.
PI / 4f * Main.rand.NextFloatDirection() * 0f) * (Main.rand.NextFloatDirection() * 9f);
42279 if (dust.velocity.Y < 0f)
42280 {
42281 dust.velocity.Y *= 1f + Main.rand.NextFloat() * 3f;
42282 }
42283 }
42284 }
42285 bool flag =
num4 > 0f &&
num5 <= 0;
42286 if ((Main.rand.Next(6) == 0 ||
num5 > 0) && !flag)
42287 {
42289 dust2.velocity *= 1f;
42290 dust2.velocity.X *= 0.5f;
42291 dust2.velocity.Y = -3f;
42292 dust2.fadeIn = 1.2f;
42293 dust2.noGravity = true;
42294 }
42297 {
42300 {
42302 }
42303 }
42304 if (Main.myPlayer ==
owner)
42305 {
42311 bool flag2 = point4.Y - point3.Y >=
num2;
42314 {
42316 }
42318 {
42320 {
42321 if (Main.tile[x,
num7].active() && !Main.tileCut[Main.tile[x,
num7].type] && Main.tile[x,
num7].type != 504)
42322 {
42324 break;
42325 }
42326 }
42327 }
42329 {
42332 {
42334 {
42336 if (Main.netMode == 1)
42337 {
42338 NetMessage.SendData(17, -1, -1,
null, 1, x,
num9, 504f);
42339 }
42340 }
42341 }
42347 }
42348 }
42349 }
42351 {
42352 return;
42353 }
42363 {
42366 {
42368 if (tile.active() && tile.type == 504)
42369 {
42371 }
42372 }
42373 }
42374 else
42375 {
42377 {
42379 if (
tile2.active() && tile2.type == 504 && Main.rand.Next(80) == 0)
42380 {
42382 dust3.velocity *= 1f;
42383 dust3.velocity.X = 0f;
42384 dust3.fadeIn = 1.2f;
42385 dust3.noGravity = true;
42386 }
42387 }
42388 }
42390 {
42392 {
42394 if (
tile3.active() && tile3.type == 504)
42395 {
42397 }
42398 }
42399 }
42401 {
42402 return;
42403 }
42405 {
42407 return;
42408 }
42409 if (Main.myPlayer ==
owner)
42410 {
42412 }
42414 }
void AI_155_SpawnRopeIn(int x, int y)
void AI_155_RemoveRope(Point start, Point end)