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

◆ CollideWithNPCs()

int Terraria.Player.CollideWithNPCs ( Rectangle myRect,
float Damage,
float Knockback,
int NPCImmuneTime,
int PlayerImmuneTime )
inlineprivate

Definition at line 6287 of file Player.cs.

6288 {
6289 if (!true)
6290 {
6291 }
6293 bool flag = rectangle.Intersects(rectangle);
6294 float x = this.position.X;
6295 float y = this.position.Y;
6296 int width = this.width;
6297 bool wet = this.wet;
6298 float x2 = this.velocity.X;
6299 int direction = this.direction;
6300 int whoAmI = this.whoAmI;
6301 int myPlayer = Main.myPlayer;
6302 this.GiveImmuneTimeForCollisionAttack(43143168);
6303 return 1;
6304 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
void GiveImmuneTimeForCollisionAttack(int time)
Definition Player.cs:6354
void Intersects(Rectangle value, [Out] bool result)
Definition Rectangle.cs:263

References Terraria.Entity.direction, Terraria.Player.GiveImmuneTimeForCollisionAttack(), Microsoft.Xna.Framework.Rectangle.Intersects(), j__TPar, Terraria.Main.myPlayer, Terraria.Entity.position, Terraria.Entity.velocity, Terraria.Entity.wet, Terraria.Entity.whoAmI, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.