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_CatchCritters()

Rectangle Terraria.Player.ItemCheck_CatchCritters ( Item sItem,
Rectangle itemRectangle )
inlineprivate

Definition at line 15047 of file Player.cs.

15048 {
15049 int num = 1;
15050 int type = sItem.type;
15051 if (num == 0)
15052 {
15053 }
15054 int myPlayer = Main.myPlayer;
15055 int whoAmI = this.whoAmI;
15057 Microsoft.Xna.Framework.Vector2 center = base.Center;
15058 bool flag = this.dead;
15059 if (!flag)
15060 {
15061 int num2 = 24;
15062 int num3 = 300;
15063 long num4 = 0L;
15064 long num5 = 0L;
15065 this.AddBuff(num2, num3, num4 != 0L, num5 != 0L);
15066 if (!flag)
15067 {
15068 }
15069 if (!flag)
15070 {
15071 }
15072 int whoAmI2 = this.whoAmI;
15073 if (!flag)
15074 {
15075 }
15076 NPC.CatchNPC(int.MinValue, whoAmI2);
15077 }
15078 return int.MinValue;
15079 }
class f__AnonymousType0<< Count > j__TPar
static PlayerDeathReason ByNPC(int index)
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
Definition Player.cs:2280

References Terraria.Player.AddBuff(), Terraria.DataStructures.PlayerDeathReason.ByNPC(), Terraria.NPC.CatchNPC(), Terraria.Player.dead, j__TPar, System.L, Terraria.Main.myPlayer, and Terraria.Entity.whoAmI.