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

◆ DropSelectedItem()

void Terraria.Player.DropSelectedItem ( )
inline

Definition at line 2097 of file Player.cs.

2098 {
2099 Item[] array = this.inventory;
2100 int whoAmI = this.whoAmI;
2101 Item item;
2102 if (item == null || item != null)
2103 {
2104 int num = this.selectedItem;
2105 Item[] array2 = this.inventory;
2107 if (array2 == null)
2108 {
2109 }
2110 Recipe.FindRecipes(false);
2112 if (position == null)
2113 {
2114 return;
2115 }
2116 if (position == null)
2117 {
2118 }
2119 bool mouseRight = Main.mouseRight;
2120 bool flag = this.mouseInterface;
2121 if (!flag)
2122 {
2123 if (!flag)
2124 {
2125 }
2126 bool mouseRightRelease = Main.mouseRightRelease;
2127 }
2128 if (!flag)
2129 {
2130 }
2131 bool playerInventory = Main.playerInventory;
2132 if (!flag)
2133 {
2134 }
2135 if (Main.mouseItem.type == 0)
2136 {
2137 }
2138 int stack = Main.mouseItem.stack;
2139 Item[] array3 = this.inventory;
2140 if (stack == 0)
2141 {
2142 }
2143 Item mouseItem = Main.mouseItem;
2144 if (mouseItem == null || mouseItem != null)
2145 {
2146 int num2 = 1;
2147 this.delayUseItem = num2 != 0;
2148 int whoAmI2 = this.whoAmI;
2149 if (num2 == 0)
2150 {
2151 }
2152 int myPlayer = Main.myPlayer;
2155 if (this.direction == 0)
2156 {
2157 }
2158 int num3 = 4;
2160 Item[] array4 = this.inventory;
2161 float x = this.position.X;
2162 float y = this.position.Y;
2163 int width = this.width;
2164 bool wet = this.wet;
2165 int num4 = 32768;
2166 Item[] array5 = this.inventory;
2168 if (num4 == 0)
2169 {
2170 }
2172 Item[] array6 = this.inventory;
2174 if (position5 != null)
2175 {
2176 if (position5 == null)
2177 {
2178 goto IL_0250;
2179 }
2180 int num5 = this.selectedItem;
2181 }
2182 Item[] array7 = this.inventory;
2183 if (position5 == null || position5 != null)
2184 {
2185 if (this.selectedItem == 0)
2186 {
2187 }
2188 int tileWand = array6.tileWand;
2189 if (num4 == 0)
2190 {
2191 }
2192 if (array6 != null || array6 == null)
2193 {
2194 }
2195 int direction = this.direction;
2196 float x2 = this.velocity.X;
2197 bool mouseRight2 = Main.mouseRight;
2198 bool flag2 = this.mouseInterface;
2199 if (flag2)
2200 {
2201 if (!flag2)
2202 {
2203 }
2204 bool playerInventory2 = Main.playerInventory;
2205 }
2206 if (!flag2)
2207 {
2208 }
2209 int type = Main.mouseItem.type;
2210 Item[] array8 = this.inventory;
2211 if (item == null || item != null)
2212 {
2213 if (num4 == 0)
2214 {
2215 }
2216 return;
2217 }
2218 }
2219 }
2220 }
2221 IL_0250:
2222 throw new ArrayTypeMismatchException();
2223 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
int tileWand
Definition Item.cs:2156
bool mouseInterface
Definition Player.cs:21080
IEntitySource GetItemSource_Misc(int itemSourceId)
Definition Player.cs:3871
Item[] inventory
Definition Player.cs:21263

References System.array, Terraria.Entity.direction, Terraria.Recipe.FindRecipes(), Terraria.Player.GetItemSource_Misc(), Terraria.Player.inventory, System.item, j__TPar, Terraria.Player.mouseInterface, Terraria.Main.mouseItem, Terraria.Main.mouseRight, Terraria.Main.mouseRightRelease, Terraria.Main.myPlayer, Terraria.Main.playerInventory, Terraria.Entity.position, Terraria.Player.selectedItem, System.stack, Terraria.Item.stack, Terraria.Item.tileWand, Terraria.Item.type, Terraria.Entity.velocity, Terraria.Entity.wet, Terraria.Entity.whoAmI, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.