Definition at line 8616 of file Player.cs.
8617 {
8619 int num = Main.rand.Next(2, 5);
8620 if (Main.rand.Next(3) == 0)
8621 {
8622 num++;
8623 }
8624 for (
int i = 0;
i < num;
i++)
8625 {
8626 int num2 = Main.rand.Next(14);
8628 {
8630 }
8632 {
8634 }
8636 {
8638 }
8640 {
8642 }
8644 {
8646 }
8648 {
8650 }
8652 {
8654 }
8656 {
8658 }
8660 {
8662 }
8664 {
8666 }
8668 {
8670 }
8672 {
8674 }
8676 {
8678 }
8680 {
8682 }
8683 int num3 = Main.rand.Next(2, 5);
8684 if (Main.rand.Next(3) == 0)
8685 {
8686 num3 += Main.rand.Next(1, 5);
8687 }
8689 if (Main.netMode == 1)
8690 {
8691 NetMessage.SendData(21, -1, -1,
null,
number, 1f);
8692 }
8693 }
8694 }
IEntitySource GetItemSource_OpenItem(int itemType)
References Terraria.Main.netMode, Terraria.Item.NewItem(), Terraria.Main.rand, and Terraria.NetMessage.SendData().
Referenced by Terraria.UI.ItemSlot.TryOpenContainer().