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

void Terraria.Player.ItemCheck_UseMiningTools_ActuallyUseMiningTool ( Item sItem,
[Out] bool canHitWalls,
int x,
int y )
inlineprivate

Definition at line 15866 of file Player.cs.

15867 {
15868 int num = 1;
15869 canHitWalls.m_value = num != 0;
15870 if (num == 0)
15871 {
15872 }
15873 Tile tile;
15874 bool flag = tile.active();
15875 int pick = sItem.pick;
15876 if (pick == 0)
15877 {
15878 }
15879 if (pick == 0)
15880 {
15881 if (pick == 0)
15882 {
15883 }
15884 if (pick == 0)
15885 {
15886 goto IL_0046;
15887 }
15888 }
15889 int axe = sItem.axe;
15890 if (axe == 0)
15891 {
15892 }
15893 if (axe == 0)
15894 {
15895 int hammer = sItem.hammer;
15896 if (hammer == 0)
15897 {
15898 }
15899 if (hammer != 0)
15900 {
15901 }
15902 }
15903 IL_0046:
15904 HitTile hitTile = this.hitTile;
15905 int num2 = 1;
15906 int num3 = hitTile.HitObject(x, y, num2);
15907 if (100 != 0)
15908 {
15909 int hammer2 = sItem.hammer;
15910 bool flag2 = WorldGen.CanKillTile(x, y);
15911 int hammer3 = sItem.hammer;
15912 if (hammer3 == 0)
15913 {
15914 }
15915 long num5;
15916 if (hammer3 == 0)
15917 {
15919 int num4 = this.statLife;
15920 int direction = this.direction;
15921 num5 = 0L;
15922 }
15923 int num6 = 1;
15924 int num7 = this.hitTile.AddDamage(num3, (int)num5, num6 != 0);
15925 HitTile hitTile2 = this.hitReplace;
15926 int num8 = 1;
15927 hitTile2.TryClearingAndPruning(x, y, num8);
15928 HitTile hitTile3 = this.hitTile;
15929 int num9 = 1;
15930 hitTile3.TryClearingAndPruning(x, y, num9);
15931 long num10 = 0L;
15932 long num11 = 0L;
15933 long num12 = 0L;
15934 WorldGen.KillTile(x, y, num10 != 0L, num11 != 0L, num12 != 0L);
15935 bool netClient = Main.NetClient;
15936 return;
15937 }
15938 }
class f__AnonymousType0<< Count > j__TPar
static PlayerDeathReason ByOther(int type)
void TryClearingAndPruning(int x, int y, int hitType)
Definition HitTile.cs:77
int HitObject(int x, int y, int hitType)
Definition HitTile.cs:83
HitTile hitTile
Definition Player.cs:21359
HitTile hitReplace
Definition Player.cs:21362

References Terraria.Tile.active(), Terraria.HitTile.AddDamage(), Terraria.DataStructures.PlayerDeathReason.ByOther(), Terraria.WorldGen.CanKillTile(), Terraria.Entity.direction, Terraria.HitTile.HitObject(), Terraria.Player.hitReplace, Terraria.Player.hitTile, j__TPar, Terraria.WorldGen.KillTile(), System.L, Terraria.Main.NetClient, Terraria.Player.statLife, and Terraria.HitTile.TryClearingAndPruning().