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

◆ ShimmerUnstuck()

void Terraria.Player.ShimmerUnstuck ( )
inlineprivate

Definition at line 26691 of file Player.cs.

26692 {
26693 //IL_008f: Unknown result type (might be due to invalid IL or missing references)
26694 //IL_0022: Unknown result type (might be due to invalid IL or missing references)
26695 //IL_0027: Unknown result type (might be due to invalid IL or missing references)
26696 //IL_002f: Unknown result type (might be due to invalid IL or missing references)
26697 //IL_003e: Unknown result type (might be due to invalid IL or missing references)
26698 //IL_0043: Unknown result type (might be due to invalid IL or missing references)
26699 //IL_007d: Unknown result type (might be due to invalid IL or missing references)
26700 //IL_0082: Unknown result type (might be due to invalid IL or missing references)
26701 //IL_00d1: Unknown result type (might be due to invalid IL or missing references)
26702 //IL_00d6: Unknown result type (might be due to invalid IL or missing references)
26703 timeShimmering = 0;
26704 Vector2? vector = TryFindingShimmerFreeSpot();
26705 if (vector.HasValue)
26706 {
26707 velocity = new Vector2(0f, 0.0001f);
26708 Teleport(vector.Value + new Vector2(0f, -2f), 12);
26709 shimmering = false;
26710 shimmerWet = false;
26711 wet = false;
26712 ClearBuff(353);
26714 {
26715 PositionInWorld = base.Bottom
26716 });
26717 }
26718 else
26719 {
26720 if (Collision.WetCollision(position, width, height) && Collision.shimmer)
26721 {
26723 }
26724 ClearBuff(353);
26726 {
26727 PositionInWorld = base.Bottom
26728 });
26729 }
26730 }
bool wet
The Entity is currently in water. Projectile: Affects movement speed and some projectiles die when ...
Definition Entity.cs:57
bool shimmerWet
Definition Entity.cs:59
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 width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
static void BroadcastOrRequestParticleSpawn(ParticleOrchestraType type, ParticleOrchestraSettings settings)
Vector2? TryFindingShimmerFreeSpot()
Definition Player.cs:26732
void Teleport(Vector2 newPos, int Style=0, int extraInfo=0)
Definition Player.cs:36320
ShimmerUnstuckHelper shimmerUnstuckHelper
Definition Player.cs:2495
void ClearBuff(int type)
Removes the provided buff type from the player and shuffles the remaining buff indexes down to fill t...
Definition Player.cs:5893

References Terraria.GameContent.Drawing.ParticleOrchestrator.BroadcastOrRequestParticleSpawn(), Terraria.Player.ClearBuff(), Terraria.Entity.height, Terraria.Entity.position, Terraria.Collision.shimmer, Terraria.Player.shimmering, Terraria.Player.shimmerUnstuckHelper, Terraria.Entity.shimmerWet, Terraria.GameContent.ShimmerUnstuckHelper.StartUnstuck(), Terraria.Player.Teleport(), Terraria.Player.timeShimmering, Terraria.Player.TryFindingShimmerFreeSpot(), Terraria.Entity.velocity, Terraria.Entity.wet, Terraria.Collision.WetCollision(), and Terraria.Entity.width.

Referenced by Terraria.Player.TryToShimmerUnstuck().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: