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

◆ KillWire3()

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

Definition at line 52326 of file WorldGen.cs.

52327 {
52328 //IL_0081: Unknown result type (might be due to invalid IL or missing references)
52329 //IL_0099: Unknown result type (might be due to invalid IL or missing references)
52330 //IL_009f: Unknown result type (might be due to invalid IL or missing references)
52331 if (Main.tile[i, j].wire3())
52332 {
52333 SoundEngine.PlaySound(0, i * 16, j * 16);
52334 Main.tile[i, j].wire3(wire3: false);
52335 if (Main.netMode != 1)
52336 {
52337 Item.NewItem(GetItemSource_FromTileBreak(i, j), i * 16, j * 16, 16, 16, 530);
52338 }
52339 for (int k = 0; k < 5; k++)
52340 {
52341 Dust.NewDust(new Vector2((float)(i * 16), (float)(j * 16)), 16, 16, 50);
52342 }
52343 return true;
52344 }
52345 return false;
52346 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: