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

◆ GetChestItemDrop()

static int Terraria.WorldGen.GetChestItemDrop ( int x,
int y,
int type )
inlinestaticprivate

Definition at line 52206 of file WorldGen.cs.

52207 {
52208 int num = Main.tile[x, y].frameX / 36;
52209 if (type == 467)
52210 {
52211 return Chest.chestItemSpawn2[num];
52212 }
52213 return Chest.chestItemSpawn[num];
52214 }

References Terraria.Chest.chestItemSpawn, Terraria.Chest.chestItemSpawn2, and Terraria.Main.tile.