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

◆ SetGemTreeDrops()

static void Terraria.WorldGen.SetGemTreeDrops ( int gemType,
int seedType,
Tile tileCache,
ref int dropItem,
ref int secondaryItem )
inlinestaticprivate

Definition at line 56801 of file WorldGen.cs.

56802 {
56803 if (Main.rand.Next(10) == 0)
56804 {
56805 dropItem = gemType;
56806 }
56807 else
56808 {
56809 dropItem = 3;
56810 }
56811 if (tileCache.frameX >= 22 && tileCache.frameY >= 198 && Main.rand.Next(2) == 0)
56812 {
56814 }
56815 }

References Terraria.Tile.frameX, Terraria.Tile.frameY, and Terraria.Main.rand.