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.NPC.CheckDrowning ( )
inline

Definition at line 10590 of file NPC.cs.

10591 {
10592 int num = 1;
10593 float x = this.position.X;
10594 float y = this.position.Y;
10595 int width = this.width;
10596 bool wet = this.wet;
10597 if (num == 0)
10598 {
10599 }
10600 bool logicHost = Main.LogicHost;
10601 int num2 = this.breathCounter;
10603 int num3 = this.breath;
10604 this.breath = num3;
10605 int num4 = this.life;
10606 this.life = num4;
10607 int num5 = 1;
10608 this.netUpdate = num5 != 0;
10609 int num6 = 1;
10610 this.life = num6;
10611 if (num6 == 0)
10612 {
10613 }
10614 if (num6 != 0)
10615 {
10616 int whoAmI = this.whoAmI;
10617 return;
10618 }
10619 int num7;
10620 if (num7 == 0 && !this.lavaWet && !this.honeyWet && !this.shimmerWet)
10621 {
10622 int num8 = this.type;
10623 float x2 = this.position.X;
10624 float y2 = this.position.Y;
10625 int direction = this.direction;
10626 int width2 = this.width;
10627 if (direction == 0)
10628 {
10629 }
10630 return;
10631 }
10632 }
class f__AnonymousType0<< Count > j__TPar
bool shimmerWet
Definition Entity.cs:487
Vector2 position
Definition Entity.cs:460
int breath
Definition NPC.cs:11558
int breathCounter
Definition NPC.cs:11564

References Terraria.NPC.breath, Terraria.NPC.breathCounter, Terraria.Entity.direction, Terraria.Entity.honeyWet, j__TPar, Terraria.Entity.lavaWet, Terraria.NPC.life, Terraria.Main.LogicHost, Terraria.Entity.position, Terraria.Entity.shimmerWet, Terraria.NPC.type, Terraria.Entity.wet, Terraria.Entity.whoAmI, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.