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

◆ KillWire2()

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

Definition at line 52293 of file WorldGen.cs.

52294 {
52295 //IL_0081: Unknown result type (might be due to invalid IL or missing references)
52296 //IL_0099: Unknown result type (might be due to invalid IL or missing references)
52297 //IL_009f: Unknown result type (might be due to invalid IL or missing references)
52298 if (Main.tile[i, j].wire2())
52299 {
52300 SoundEngine.PlaySound(0, i * 16, j * 16);
52301 Main.tile[i, j].wire2(wire2: false);
52302 if (Main.netMode != 1)
52303 {
52304 Item.NewItem(GetItemSource_FromTileBreak(i, j), i * 16, j * 16, 16, 16, 530);
52305 }
52306 for (int k = 0; k < 5; k++)
52307 {
52308 Dust.NewDust(new Vector2((float)(i * 16), (float)(j * 16)), 16, 16, 50);
52309 }
52310 return true;
52311 }
52312 return false;
52313 }
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: