TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DoBootsEffect()

void Terraria.Player.DoBootsEffect ( Utils::TileActionAttempt theEffectMethod)
inline

Definition at line 12006 of file Player.cs.

12007 {
12008 //IL_003a: Unknown result type (might be due to invalid IL or missing references)
12009 if (miscCounter % 2 == 0 && velocity.Y == 0f && grappling[0] == -1 && velocity.X != 0f)
12010 {
12011 int x = (int)base.Center.X / 16;
12012 int y = (int)(position.Y + (float)height - 1f) / 16;
12013 theEffectMethod(x, y);
12014 }
12015 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
int[] grappling
Definition Player.cs:2840

References Terraria.Player.grappling, Terraria.Entity.height, Terraria.Player.miscCounter, Terraria.Entity.position, and Terraria.Entity.velocity.

Referenced by Terraria.Player.ApplyEquipFunctional(), Terraria.Player.ApplyEquipVanity(), and Terraria.Player.GrantArmorBenefits().

+ Here is the caller graph for this function: