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

◆ RequestToSkipWaitTime()

static void Terraria.GameContent.Events.DD2Event.RequestToSkipWaitTime ( int x,
int y )
inlinestatic

Definition at line 1762 of file DD2Event.cs.

1763 {
1764 if (TimeLeftBetweenWaves > 60 && IsStandActive(x, y))
1765 {
1766 SoundEngine.PlaySound(SoundID.NPCDeath7, x * 16 + 8, y * 16 + 8);
1767 if (Main.netMode == 0)
1768 {
1770 }
1771 else if (Main.netMode != 2)
1772 {
1773 NetMessage.SendData(143);
1774 }
1775 }
1776 }
static void PlaySound(int type, Vector2 position, int style=1)
static bool IsStandActive(int x, int y)
Definition DD2Event.cs:1748
static readonly LegacySoundStyle NPCDeath7
Definition SoundID.cs:294

References Terraria.GameContent.Events.DD2Event.AttemptToSkipWaitTime(), Terraria.GameContent.Events.DD2Event.IsStandActive(), Terraria.Main.netMode, Terraria.ID.SoundID.NPCDeath7, Terraria.Audio.SoundEngine.PlaySound(), Terraria.NetMessage.SendData(), and Terraria.GameContent.Events.DD2Event.TimeLeftBetweenWaves.

Referenced by Terraria.Player.TileInteractionsUse().