terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ ResizeHitbox()

void Terraria.Player.ResizeHitbox ( )
inlineprivate

Definition at line 8414 of file Player.cs.

8415 {
8416 int height = this.height;
8417 float y = this.position.Y;
8418 Mount mount = this.mount;
8419 this.position.Y = (float)height;
8420 float y2;
8421 if (mount._active)
8422 {
8423 int heightBoost = mount.HeightBoost;
8424 y2 = this.position.Y;
8425 return;
8426 }
8427 bool isInUse = this.portableStoolInfo.IsInUse;
8428 if (isInUse)
8429 {
8431 return;
8432 }
8433 this.height = (isInUse ? 1 : 0);
8435 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
int HeightBoost
Definition Mount.cs:256
PortableStoolUsage portableStoolInfo
Definition Player.cs:20984

References Terraria.Mount._active, Terraria.Entity.height, Terraria.DataStructures.PortableStoolUsage.HeightBoost, Terraria.Mount.HeightBoost, Terraria.DataStructures.PortableStoolUsage.IsInUse, j__TPar, Terraria.Player.mount, Terraria.Player.portableStoolInfo, Terraria.Entity.position, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.Player.ResetEffects(), and Terraria.Player.UpdatePortableStoolUsage().