Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ OpenOyster()

void Terraria.Player.OpenOyster ( int sourceItemType)
inline

Definition at line 8710 of file Player.cs.

8711 {
8713 if (Main.rand.Next(5) == 0)
8714 {
8715 if (Main.rand.Next(15) == 0)
8716 {
8718 }
8719 else if (Main.rand.Next(3) == 0)
8720 {
8722 }
8723 else
8724 {
8726 }
8727 }
8729 }
IEntitySource GetItemSource_OpenItem(int itemType)
Definition Player.cs:9277
void QuickSpawnItem(IEntitySource source, int item, int stack=1)
Definition Player.cs:6265

References Terraria.Main.rand.

Referenced by Terraria.UI.ItemSlot.TryOpenContainer().