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

◆ CheckDrowning()

void Terraria.Player.CheckDrowning ( )
inline

Definition at line 7282 of file Player.cs.

7283 {
7284 Mount mount;
7285 for (;;)
7286 {
7287 int num = 1;
7288 float x = this.position.X;
7289 float y = this.position.Y;
7290 int width = this.width;
7291 bool wet = this.wet;
7292 float num2 = this.gravDir;
7293 if (num == 0)
7294 {
7295 }
7296 Item[] array = this.armor;
7299 if (this.itemAnimation == 0)
7300 {
7301 break;
7302 }
7303 bool flag = this.gills;
7304 if (!flag || !flag)
7305 {
7306 }
7307 mount = this.mount;
7308 bool flag2 = this.shimmering;
7309 if (mount._active)
7310 {
7311 goto Block_2;
7312 }
7313 }
7314 int direction = this.direction;
7315 int height = this.height;
7316 float x2 = this.position.X;
7317 float num3 = this.gravDir;
7318 int height2 = this.height;
7319 return;
7320 Block_2:
7321 if (mount._type == 0)
7322 {
7323 }
7324 int myPlayer = Main.myPlayer;
7325 int whoAmI = this.whoAmI;
7326 if (this.accMerman)
7327 {
7328 int num4 = 1;
7329 this.merman = num4 != 0;
7330 return;
7331 }
7332 int num5 = this.breathCD;
7333 Item[] array2 = this.inventory;
7336 int num6 = this.itemAnimation;
7337 bool flag3 = this.accDivingHelm;
7338 int num7 = this.breath;
7339 this.breath = num7;
7340 int num8 = this.breath;
7341 int num9 = this.statLife;
7344 }
class f__AnonymousType0<< Count > j__TPar
static PlayerDeathReason ByOther(int type)
Vector2 position
Definition Entity.cs:460
Item[] inventory
Definition Player.cs:21263

References Terraria.Mount._active, Terraria.Mount._type, Terraria.Player.accDivingHelm, Terraria.Player.accMerman, Terraria.Player.armor, System.array, Terraria.Player.breath, Terraria.Player.breathCD, Terraria.DataStructures.PlayerDeathReason.ByOther(), Terraria.Entity.direction, Terraria.Player.gills, Terraria.Player.gravDir, Terraria.Entity.height, Terraria.Player.inventory, Terraria.Player.itemAnimation, j__TPar, Terraria.Player.mount, Terraria.Main.myPlayer, Terraria.Entity.position, Terraria.Player.shimmering, Terraria.Player.statLife, Terraria.Entity.wet, Terraria.Entity.whoAmI, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.