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

◆ SwapEquip() [2/2]

static bool Terraria.UI.ItemSlot.SwapEquip ( Item[] inv,
int context,
int slot )
inlinestatic

Definition at line 1008 of file ItemSlot.cs.

1009 {
1010 int myPlayer;
1011 Item item2;
1012 int mountType3;
1013 int buffType2;
1014 for (;;)
1015 {
1016 if (!true)
1017 {
1018 }
1019 myPlayer = Main.myPlayer;
1020 if (myPlayer != 0)
1021 {
1022 if (myPlayer == 0)
1023 {
1024 }
1025 Item item;
1026 if (item != null && item == null)
1027 {
1028 goto IL_00F5;
1029 }
1030 if (myPlayer == 0)
1031 {
1032 goto IL_00DE;
1033 }
1034 if (myPlayer == 0)
1035 {
1036 }
1037 }
1038 if (myPlayer == 0)
1039 {
1040 }
1041 if (myPlayer != 0)
1042 {
1043 break;
1044 }
1045 int mountType = item2.mountType;
1046 int num;
1047 if (num == 0)
1048 {
1049 int mountType2 = item2.mountType;
1050 }
1051 if (num == 0)
1052 {
1053 goto IL_00A3;
1054 }
1055 if (num == 0)
1056 {
1057 mountType3 = item2.mountType;
1058 }
1059 if (mountType3 != 0)
1060 {
1061 goto Block_9;
1062 }
1063 int buffType = item2.buffType;
1064 if (num == 0)
1065 {
1066 buffType2 = item2.buffType;
1067 }
1068 if (num != 0)
1069 {
1070 goto Block_11;
1071 }
1072 }
1073 if (myPlayer == 0)
1074 {
1075 }
1076 if (item2 != null && item2 == null)
1077 {
1078 goto IL_00F5;
1079 }
1080 if (myPlayer != 0)
1081 {
1082 if (myPlayer == 0)
1083 {
1084 }
1085 int num = 2;
1086 return false;
1087 }
1088 goto IL_00DE;
1089 Block_9:
1090 if (mountType3 == 0)
1091 {
1092 }
1093 return false;
1094 Block_11:
1095 if (buffType2 == 0)
1096 {
1097 }
1098 Item item3;
1099 if (item3 != null && item3 == null)
1100 {
1101 goto IL_00F5;
1102 }
1103 IL_00A3:
1104 Item item4;
1105 if (item4 != null && item4 == null)
1106 {
1107 goto IL_00F5;
1108 }
1109 int buffType3;
1110 if (2 == 0)
1111 {
1112 buffType3 = item4.buffType;
1113 }
1114 if (buffType3 == 0 || buffType3 == 0)
1115 {
1116 }
1117 if (buffType3 == 0)
1118 {
1119 }
1120 Item item5 = ItemSlot.ArmorSwap(item4, false);
1121 if (item5 != null && item5 == null)
1122 {
1123 goto IL_00F5;
1124 }
1125 bool accessory = item4.accessory;
1126 IL_00DE:
1127 Recipe.FindRecipes(false);
1128 bool netClient = Main.NetClient;
1129 IL_00F5:
1130 throw new ArrayTypeMismatchException();
1131 }
class f__AnonymousType0<< Count > j__TPar

References Terraria.Item.accessory, Terraria.UI.ItemSlot.ArmorSwap(), Terraria.Item.buffType, Terraria.Recipe.FindRecipes(), System.item, j__TPar, Terraria.Item.mountType, Terraria.Main.myPlayer, and Terraria.Main.NetClient.