14031 {
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14107 {
14108 return;
14109 }
14110 AchievementsHelper.CurrentlyMining = true;
14117 {
14119 }
14121 {
14125 Vector2
vector =
default(Vector2);
14128 {
14130 }
14131 }
14132 else if (
type == 756)
14133 {
14134 Utils.PlotTileLine(
base.Center,
base.Center +
velocity.SafeNormalize(-Vector2.UnitY) * 200
f *
scale, 22
f *
scale, DelegateMethods.CutTiles);
14135 }
14136 else if (
type == 927)
14137 {
14138 Vector2
end = base.Center +
velocity.SafeNormalize(Vector2.UnitX) * 220
f *
scale;
14139 Utils.PlotTileLine(
base.Center,
end, 80
f *
scale, DelegateMethods.CutTiles);
14140 }
14142 {
14143 Utils.PlotTileLine(
base.Center,
base.Center +
velocity.SafeNormalize(-Vector2.UnitY) * 10
f, 10
f *
scale, DelegateMethods.CutTiles);
14144 }
14145 else if (
type == 611)
14146 {
14148 }
14149 else if (
type == 697 ||
type == 707)
14150 {
14153 {
14155 }
14157 Utils.PlotTileLine(
base.Center +
f.ToRotationVector2() * (0
f -
num),
base.Center +
f.ToRotationVector2() *
num, (float)
width *
scale, DelegateMethods.CutTiles);
14158 }
14160 {
14166 }
14168 {
14170 }
14172 {
14174 }
14175 AchievementsHelper.CurrentlyMining = false;
14176 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
static bool[] IsAWhip
If true for a given projectile type (F:Terraria.Projectile.type), then that projectile will use whip ...
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
int aiStyle
Selects which vanilla code to use for the AI method. Vanilla projectile AI styles are enumerated in t...
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
static void FillWhipControlPoints(Projectile proj, List< Vector2 > controlPoints)
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
bool AI_019_Spears_GetExtensionHitbox(out Rectangle extensionBox)
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...
bool trap
If true, this projectile was spawned by a trap tile.
List< Vector2 > WhipPointsForCollision
void CutTilesAt(Vector2 boxPosition, int boxWidth, int boxHeight)
float scale
Scales how large the projectile will be drawn. Will also affect the hitbox (F:Terraria....