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

◆ KillWall_DropItems()

static void Terraria.WorldGen.KillWall_DropItems ( int i,
int j,
Tile tileCache )
inlinestaticprivate

Definition at line 54772 of file WorldGen.cs.

54773 {
54774 int num = KillWall_GetItemDrops(tileCache);
54775 if (WallLoader.Drop(i, j, Main.tile[i, j].wall, ref num) && num > 0)
54776 {
54777 Item.NewItem(GetItemSource_FromWallBreak(i, j), i * 16, j * 16, 16, 16, num);
54778 }
54779 }
static bool Drop(int i, int j, int type, ref int dropType)
This serves as the central class from which wall-related functions are supported and carried out.
Definition WallLoader.cs:17
static int KillWall_GetItemDrops(Tile tileCache)
static IEntitySource GetItemSource_FromWallBreak(int x, int y)

References Terraria.ModLoader.WallLoader.Drop(), Terraria.Item.NewItem(), and Terraria.Main.tile.

+ Here is the call graph for this function: