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

◆ KillWire2()

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

Definition at line 49090 of file WorldGen.cs.

49091 {
49092 if (Main.tile[i, j].wire2())
49093 {
49094 SoundEngine.PlaySound(0, i * 16, j * 16);
49095 Main.tile[i, j].wire2(wire2: false);
49096 if (Main.netMode != 1)
49097 {
49098 Item.NewItem(GetItemSource_FromTileBreak(i, j), i * 16, j * 16, 16, 16, 530);
49099 }
49100 for (int k = 0; k < 5; k++)
49101 {
49102 Dust.NewDust(new Vector2(i * 16, j * 16), 16, 16, 50);
49103 }
49104 return true;
49105 }
49106 return false;
49107 }
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().