49708 {
49710 {
49711 return 0;
49712 }
49713 if (Main.rand == null)
49714 {
49716 }
49717 if (Main.tenthAnniversaryWorld)
49718 {
49720 {
49721 Type = Main.rand.NextFromList(
new short[3] { 1734, 1867, 58 });
49722 }
49724 {
49725 Type = Main.rand.NextFromList(
new short[3] { 1735, 1868, 184 });
49726 }
49727 }
49728 if (Main.halloween)
49729 {
49731 {
49733 }
49735 {
49737 }
49738 }
49739 if (Main.xMas)
49740 {
49742 {
49744 }
49746 {
49748 }
49749 }
49751 {
49753 return 400;
49754 }
49755 Main.item[400] =
new Item();
49756 int num = 400;
49757 if (Main.netMode != 1)
49758 {
49760 }
49761 Main.timeItemSlotCannotBeReusedFor[num] = 0;
49762 Main.item[num] =
new Item();
49766 item.stack =
Stack;
49767 item.position.X =
X + Width / 2 - item.width / 2;
49768 item.position.Y =
Y + Height / 2 - item.height / 2;
49769 item.wet = Collision.WetCollision(
item.position,
item.width,
item.height);
49770 item.velocity.X = (float)Main.rand.Next(-30, 31) * 0.1f;
49771 item.velocity.Y = (float)Main.rand.Next(-40, -15) * 0.1f;
49773 {
49774 item.velocity *= 0f;
49775 }
49777 {
49778 item.velocity.X = (float)Main.rand.Next(-30, 31) * 0.1f;
49779 item.velocity.Y = (float)Main.rand.Next(-30, 31) * 0.1f;
49780 }
49781 item.active = true;
49785 {
49786 item.newAndShiny = true;
49787 }
49789 {
49790 NetMessage.SendData(21, -1, -1,
null, num,
noGrabDelay.ToInt());
49791 }
49792 else if (Main.netMode == 0)
49793 {
49794 item.playerIndexTheItemIsReservedFor = Main.myPlayer;
49795 }
49796 return num;
49797 }
static bool[] NeverAppearsAsNewInInventory
static int[] OverflowProtectionTimeOffset
static bool[] NebulaPickup
static int numberOfNewItems
static int PickAnItemSlotToSpawnItemOn(bool reverseLookup, int nextItem)
static int[] cachedItemSpawnsByType
static bool HighlightNewItems