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

◆ TryPlayingIdleMessage()

static void Terraria.GameContent.LucyAxeMessage.TryPlayingIdleMessage ( )
inlinestatic

Definition at line 67 of file LucyAxeMessage.cs.

68 {
69 MessageSource messageSource = MessageSource.Idle;
70 if (_messageCooldownsByType[(int)messageSource] <= 0)
71 {
72 Player localPlayer = Main.LocalPlayer;
73 Create(messageSource, localPlayer.Top, new Vector2(Main.rand.NextFloatDirection() * 7f, -2f + Main.rand.NextFloat() * -2f));
74 }
75 }
static void Create(MessageSource source, Vector2 position, Vector2 velocity)

References Terraria.GameContent.LucyAxeMessage._messageCooldownsByType, Terraria.GameContent.LucyAxeMessage.Create(), Terraria.Main.LocalPlayer, Terraria.Main.rand, and Terraria.Entity.Top.

Referenced by Terraria.Player.Update().