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

void Terraria.Player.ItemCheck_StartActualUse ( Item sItem)
inlineprivate

Definition at line 16871 of file Player.cs.

16872 {
16873 int pick = sItem.pick;
16874 int type = sItem.type;
16875 int axe = sItem.axe;
16876 if (type != 0)
16877 {
16878 int num = 1;
16879 this.toolTime = num;
16880 }
16881 int[] array = this.grappling;
16882 bool flag = this.controlRight;
16883 int num2 = 1;
16884 this.pulleyDir = (byte)num2;
16885 bool flag2;
16886 if (!flag)
16887 {
16888 flag2 = this.controlLeft;
16889 if (!flag2)
16890 {
16891 goto IL_005C;
16892 }
16893 }
16894 this.direction = (flag2 ? 1 : 0);
16895 IL_005C:
16896 int shoot;
16897 if (sItem.channel)
16898 {
16899 int num3 = 1;
16900 this.channel = num3 != 0;
16901 shoot = sItem.shoot;
16902 this._channelShotCache = shoot;
16903 }
16906 if (shoot == 0)
16907 {
16908 }
16909 if (shoot == 0 && sItem.UseSound != null)
16910 {
16911 Microsoft.Xna.Framework.Vector2 center = base.Center;
16912 return;
16913 }
16914 }
class f__AnonymousType0<< Count > j__TPar
void ResetMeleeHitCooldowns()
Definition Player.cs:14739
void ApplyItemAnimation(Item sItem)
Definition Player.cs:1743

References Terraria.Player.ApplyItemAnimation(), System.array, Terraria.Player.controlLeft, Terraria.Player.controlRight, Terraria.Player.grappling, j__TPar, and Terraria.Player.ResetMeleeHitCooldowns().