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

◆ ItemCheck_MeleeHitPVP()

void Terraria.Player.ItemCheck_MeleeHitPVP ( Item sItem,
Rectangle itemRectangle,
int damage,
float knockBack )
inlineprivate

Definition at line 14538 of file Player.cs.

14539 {
14540 if (this.hostile)
14541 {
14542 int num = 32768;
14543 long num2 = 0L;
14544 int whoAmI = this.whoAmI;
14545 if (whoAmI != 0 && whoAmI != 0 && whoAmI == 0)
14546 {
14547 int num3 = this.team;
14548 if (num3 != 0)
14549 {
14550 }
14552 bool flag = rectangle.Intersects(rectangle);
14553 if (num3 == 0)
14554 {
14555 }
14556 float num4 = this.luck;
14557 if (num == 0)
14558 {
14559 }
14560 int num5 = Main.DamageVar(knockBack, -2f);
14561 int type = sItem.type;
14562 this.StatusToPlayerPvP(type, (int)num2);
14563 Microsoft.Xna.Framework.Vector2 center = base.Center;
14565 int direction = this.direction;
14567 int direction2 = this.direction;
14568 if (position == null)
14569 {
14570 }
14571 if (num == 0)
14572 {
14573 }
14574 if (num == 0)
14575 {
14576 }
14577 int type2 = sItem.type;
14578 int num6;
14579 if (type2 != 0)
14580 {
14581 num6 = 52992;
14582 }
14583 int type3 = sItem.type;
14584 if (type3 == 0)
14585 {
14586 }
14587 if (type3 != 0)
14588 {
14589 if (type3 == 0)
14590 {
14591 }
14592 }
14593 if (num6 == 0)
14594 {
14595 }
14596 if (num6 == 0)
14597 {
14598 }
14599 if (16256 == 0)
14600 {
14601 }
14602 bool netClientOnly = Main.NetClientOnly;
14603 }
14604 }
14605 }
class f__AnonymousType0<< Count > j__TPar
static PlayerDeathReason ByPlayer(int index)
Vector2 position
Definition Entity.cs:460
void StatusToPlayerPvP(int type, int i)
Definition Player.cs:3145
Item[] inventory
Definition Player.cs:21263
void Intersects(Rectangle value, [Out] bool result)
Definition Rectangle.cs:263

References Terraria.DataStructures.PlayerDeathReason.ByPlayer(), Terraria.Main.DamageVar(), Terraria.Entity.direction, Terraria.Player.hostile, Microsoft.Xna.Framework.Rectangle.Intersects(), Terraria.Player.inventory, j__TPar, System.L, Terraria.Player.luck, Terraria.Main.NetClientOnly, Terraria.Entity.position, Terraria.Player.StatusToPlayerPvP(), Terraria.Player.team, and Terraria.Entity.whoAmI.