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

◆ KillWire4()

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

Definition at line 49150 of file WorldGen.cs.

49151 {
49152 if (Main.tile[i, j].wire4())
49153 {
49154 SoundEngine.PlaySound(0, i * 16, j * 16);
49155 Main.tile[i, j].wire4(wire4: false);
49156 if (Main.netMode != 1)
49157 {
49158 Item.NewItem(GetItemSource_FromTileBreak(i, j), i * 16, j * 16, 16, 16, 530);
49159 }
49160 for (int k = 0; k < 5; k++)
49161 {
49162 Dust.NewDust(new Vector2(i * 16, j * 16), 16, 16, 50);
49163 }
49164 return true;
49165 }
49166 return false;
49167 }
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().