Definition at line 2520 of file Mount.cs.
2521 {
2523 {
2524 return;
2525 }
2527 bool flag = mountedPlayer.whoAmI == Main.myPlayer;
2529 {
2531 {
2533 {
2534 break;
2535 }
2537 {
2540 {
2541 continue;
2542 }
2545 {
2546 continue;
2547 }
2548 drillBeam.curTileTarget = point;
2550 if (flag)
2551 {
2553 if (
WorldGen.InWorld(point.
X, point.
Y) && Main.tile[point.
X, point.
Y] !=
null && Main.tile[point.
X, point.
Y].type == 26 && !Main.hardMode)
2554 {
2557 }
2559 {
2561 }
2563 {
2565 }
2566 }
2569 for (
int k = 0;
k < 2;
k++)
2570 {
2571 float num2 = num + ((Main.rand.Next(2) == 1) ? (-1f) : 1f) * ((float)
Math.
PI / 2f);
2572 float num3 = (float)Main.rand.NextDouble() * 2f + 2f;
2575 Main.dust[
num4].noGravity =
true;
2577 }
2578 if (flag)
2579 {
2581 }
2583 drillBeam.lastPurpose = 0;
2584 break;
2585 }
2586 }
2587 }
2589 {
2590 return;
2591 }
2593 {
2595 {
2596 break;
2597 }
2599 {
2602 {
2603 continue;
2604 }
2607 {
2608 continue;
2609 }
2610 drillBeam2.curTileTarget =
point2;
2612 if (flag)
2613 {
2616 {
2618 }
2620 {
2622 }
2623 }
2626 for (
int n = 0;
n < 2;
n++)
2627 {
2628 float num6 =
num5 + ((Main.rand.Next(2) == 1) ? (-1f) : 1f) * ((float)
Math.
PI / 2f);
2629 float num7 = (float)Main.rand.NextDouble() * 2f + 2f;
2632 Main.dust[
num8].noGravity =
true;
2634 }
2636 drillBeam2.lastPurpose = 1;
2637 break;
2638 }
2639 }
2640 }
static double Cos(double d)
static double Sin(double a)
static PlayerDeathReason ByOther(int type)
static int drillPickPower
object _mountSpecificData
static int amountOfBeamsAtOnce
Point16 DrillSmartCursor_Walls(Player mountedPlayer, DrillMountData data)
Point16 DrillSmartCursor_Blocks(Player mountedPlayer, DrillMountData data)
static Point16 NegativeOne
References Terraria.Mount._abilityActive, Terraria.Mount._mountSpecificData, Terraria.Mount._type, Terraria.Mount.amountOfBeamsAtOnce, Terraria.DataStructures.PlayerDeathReason.ByOther(), System.Math.Cos(), Terraria.Mount.drillPickPower, Terraria.Mount.drillPickTime, Terraria.Mount.DrillSmartCursor_Blocks(), Terraria.Mount.DrillSmartCursor_Walls(), Terraria.Main.dust, Terraria.Main.hardMode, Terraria.WorldGen.InWorld(), Terraria.Main.myPlayer, Terraria.DataStructures.Point16.NegativeOne, Terraria.Dust.NewDust(), Terraria.Main.rand, System.Math.Sin(), Terraria.Tile.SmoothSlope(), Terraria.Main.tile, Microsoft.Xna.Framework.Graphics.Vector2, Terraria.DataStructures.Point16.X, and Terraria.DataStructures.Point16.Y.