Definition at line 18732 of file Player.cs.
18733 {
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18771 {
18772 return;
18773 }
18780 Dust dust = Dust.NewDustDirect(Vector2.Lerp(
val,
value2,
num), 0, 0, 31, 0
f, (0
f -
gravDir) * 0.25f, 127);
18781 dust.scale = 0.9f;
18782 dust.position -=
new Vector2(4
f);
18783 if (dust.velocity.Y > 0
f)
18784 {
18785 dust.velocity.Y *= -1
f;
18786 }
18787 dust.velocity *= 0.25f;
18790 {
18792 myRect.Height -= 4;
18793 myRect.Y += 2;
18795 float knockback = 2
f;
18799 }
18801 if (
whoAmI == Main.myPlayer)
18802 {
18806 if (!
WorldGen.SolidTile(Framing.GetTileSafely(
vector.ToTileCoordinates())))
18807 {
18809 }
18810 }
18811 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
int height
The height of this Entity's hitbox, in pixels.
bool[] ItemCheck_GetTileCutIgnoreList(Item sItem)
void ItemCheck_CutTiles(Item sItem, Rectangle itemRectangle, bool[] shouldIgnore)
void MowGrassTile(Vector2 thePos)
int CollideWithNPCs(Rectangle myRect, float Damage, float Knockback, int NPCImmuneTime, int PlayerImmuneTime, DamageClass? damageType=null)
References Terraria.Utils.CenteredRectangle(), Terraria.Player.CollideWithNPCs(), Terraria.Entity.direction, Terraria.Framing.GetTileSafely(), Terraria.Player.grappling, Terraria.Player.gravDir, Terraria.Entity.height, Terraria.Player.HeldItem, Terraria.Player.itemAnimation, Terraria.Player.itemAnimationMax, Terraria.Player.ItemCheck_CutTiles(), Terraria.Player.ItemCheck_GetTileCutIgnoreList(), Terraria.Player.miscCounter, Terraria.Player.MowGrassTile(), Terraria.Main.myPlayer, Terraria.Dust.NewDustDirect(), Terraria.WorldGen.SolidTile(), Terraria.Dust.velocity, Terraria.Entity.velocity, and Terraria.Entity.whoAmI.
Referenced by Terraria.Player.HorizontalMovement().