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

◆ IsSpotShimmerFree()

static bool Terraria.GameContent.ShimmerHelper.IsSpotShimmerFree ( Entity entity,
Vector2 landingPosition,
bool allowSolidTop )
inlinestaticprivate

Definition at line 116 of file ShimmerHelper.cs.

117 {
118 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
119 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
120 //IL_0023: Unknown result type (might be due to invalid IL or missing references)
121 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
122 //IL_003f: Unknown result type (might be due to invalid IL or missing references)
123 if (Collision.SolidCollision(landingPosition, entity.width, entity.height))
124 {
125 return false;
126 }
127 if (!Collision.SolidCollision(landingPosition + new Vector2(0f, (float)entity.height), entity.width, 100, allowSolidTop))
128 {
129 return false;
130 }
131 if (Collision.WetCollision(landingPosition, entity.width, entity.height + 100) && Collision.shimmer)
132 {
133 return false;
134 }
135 return true;
136 }

References Terraria.Entity.height, Terraria.Collision.shimmer, Terraria.Collision.SolidCollision(), Terraria.Collision.WetCollision(), and Terraria.Entity.width.

Referenced by Terraria.GameContent.ShimmerHelper.FindSpotWithoutShimmer().

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