38083 {
38084 for (int i = 54; i < 58; i++)
38085 {
38087 {
38090 {
38092 }
38094 if (
plr == Main.myPlayer)
38095 {
38096 Recipe.FindRecipes();
38097 }
38100 {
38101 return new Item();
38102 }
38103 }
38104 }
38105 if (
newItem.CanFillEmptyAmmoSlot())
38106 {
38107 for (
int j = 54;
j < 58;
j++)
38108 {
38110 {
38111 newItem.shimmered = false;
38114 {
38115 PopupText.NewText(PopupTextContext.RegularItemPickup,
newItem,
newItem.stack);
38116 }
38119 if (
plr == Main.myPlayer)
38120 {
38121 Recipe.FindRecipes();
38122 }
38124 return new Item();
38125 }
38126 }
38127 }
38129 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
Vector2 position
The position of this Entity in world coordinates.
static bool TryStackItems(Item destination, Item source, out int numTransferred, bool infiniteSource=false)
Stacks source onto destination if CanStack permits the transfer.
This serves as the central class from which item-related functions are carried out....
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...