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

◆ KillWire3()

static bool Terraria.WorldGen.KillWire3 ( int i,
int j )
inlinestatic

Definition at line 49120 of file WorldGen.cs.

49121 {
49122 if (Main.tile[i, j].wire3())
49123 {
49124 SoundEngine.PlaySound(0, i * 16, j * 16);
49125 Main.tile[i, j].wire3(wire3: false);
49126 if (Main.netMode != 1)
49127 {
49128 Item.NewItem(GetItemSource_FromTileBreak(i, j), i * 16, j * 16, 16, 16, 530);
49129 }
49130 for (int k = 0; k < 5; k++)
49131 {
49132 Dust.NewDust(new Vector2(i * 16, j * 16), 16, 16, 50);
49133 }
49134 return true;
49135 }
49136 return false;
49137 }
static void PlaySound(int type, Vector2 position, int style=1)
static IEntitySource GetItemSource_FromTileBreak(int x, int y)

References Terraria.Main.netMode, Terraria.Dust.NewDust(), Terraria.Item.NewItem(), Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Main.tile.

Referenced by Terraria.MessageBuffer.GetData(), Terraria.Player.ItemCheck_UseWiringTools(), and Terraria.Wiring.MassWireOperationStep().