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

◆ KillActuator()

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

Definition at line 49030 of file WorldGen.cs.

49031 {
49032 if (Main.tile[i, j].actuator())
49033 {
49034 SoundEngine.PlaySound(0, i * 16, j * 16);
49035 Main.tile[i, j].actuator(actuator: false);
49036 if (Main.netMode != 1)
49037 {
49038 Item.NewItem(GetItemSource_FromTileBreak(i, j), i * 16, j * 16, 16, 16, 849);
49039 }
49040 for (int k = 0; k < 5; k++)
49041 {
49042 Dust.NewDust(new Vector2(i * 16, j * 16), 16, 16, 50);
49043 }
49044 return true;
49045 }
49046 return false;
49047 }
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().