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

◆ FillAmmo()

Item Terraria.Player.FillAmmo ( int plr,
Item newItem,
GetItemSettings settings )
inline

Definition at line 11318 of file Player.cs.

11319 {
11320 int num = 54;
11322 float x = this.position.X;
11323 float y = this.position.Y;
11324 Item[] array = this.inventory;
11325 int stack = newItem.stack;
11328 bool flag = this.DoCoins(num);
11329 int myPlayer = Main.myPlayer;
11330 Recipe.FindRecipes(false);
11332 bool flag2 = newItem.CanFillEmptyAmmoSlot();
11333 Item[] array2 = this.inventory;
11334 if (newItem == null || newItem != null)
11335 {
11336 int stack2 = newItem.stack;
11337 float x2 = this.position.X;
11338 float y2 = this.position.Y;
11339 int num2 = 32640;
11340 int num3 = 32768;
11341 if (num2 == 0)
11342 {
11343 }
11344 int myPlayer2 = Main.myPlayer;
11345 Recipe.FindRecipes(false);
11347 int stack3 = newItem.stack;
11348 int myPlayer3 = Main.myPlayer;
11349 Recipe.FindRecipes(false);
11351 }
11352 throw new ArrayTypeMismatchException();
11353 }
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.Item.CanFillEmptyAmmoSlot(), Terraria.Player.DoCoins(), Terraria.Recipe.FindRecipes(), Terraria.Player.inventory, j__TPar, Terraria.Main.myPlayer, Terraria.Entity.position, System.stack, Terraria.Item.stack, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.