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

◆ GetItem_FillEmptyInventorySlot()

bool Terraria.Player.GetItem_FillEmptyInventorySlot ( int plr,
Item newItem,
GetItemSettings settings,
Item returnItem,
int i,
bool disableMerge )
inlineprivate

Definition at line 11506 of file Player.cs.

11507 {
11508 if (this.inventory.position != null)
11509 {
11510 }
11511 bool isACoin = newItem.IsACoin;
11512 float x = this.position.X;
11513 float y = this.position.Y;
11514 Item[] array = this.inventory;
11515 if (i == 0 || i != 0)
11516 {
11517 int stack = newItem.stack;
11518 bool flag = this.DoCoins(disableMerge ? 1 : 0);
11519 int myPlayer = Main.myPlayer;
11520 Recipe.FindRecipes(false);
11521 int myPlayer2 = Main.myPlayer;
11522 int type = newItem.type;
11524 if (type == 0)
11525 {
11526 }
11528 }
11529 throw new ArrayTypeMismatchException();
11530 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
bool DoCoins(int i)
Definition Player.cs:11281
Item[] inventory
Definition Player.cs:21263

References System.array, Terraria.Player.DoCoins(), Terraria.Recipe.FindRecipes(), Terraria.Player.inventory, Terraria.Item.IsACoin, j__TPar, Terraria.Main.myPlayer, Terraria.Entity.position, System.stack, Terraria.Item.stack, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.