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

◆ Create()

static void Terraria.GameContent.LucyAxeMessage.Create ( MessageSource source,
Vector2 position,
Vector2 velocity )
inlinestatic

Definition at line 125 of file LucyAxeMessage.cs.

126 {
127 if (Main.netMode != 2)
128 {
130 SpawnPopupText(source, _variation, position, velocity);
131 PlaySound(source, position);
133 if (Main.netMode == 1)
134 {
135 NetMessage.SendData(141, -1, -1, null, (int)source, (int)_variation, velocity.X, velocity.Y, (int)position.X, (int)position.Y);
136 }
137 _variation++;
138 }
139 }
static void PlaySound(MessageSource source, Vector2 position)
static void SpawnPopupText(MessageSource source, int variationUnwrapped, Vector2 position, Vector2 velocity)

References Terraria.GameContent.LucyAxeMessage._variation, Terraria.GameContent.LucyAxeMessage.GiveIdleMessageCooldown(), Terraria.Main.netMode, Terraria.GameContent.LucyAxeMessage.PlaySound(), Terraria.NetMessage.SendData(), Terraria.GameContent.LucyAxeMessage.SpawnEmoteBubble(), Terraria.GameContent.LucyAxeMessage.SpawnPopupText(), Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.Player.DropSelectedItem(), Terraria.Player.GetItem_FillEmptyInventorySlot(), Terraria.Player.ItemCheck_UseMiningTools_ActuallyUseMiningTool(), Terraria.GameContent.LucyAxeMessage.ItemSlot_OnItemTransferred(), Terraria.GameContent.LucyAxeMessage.TryCreatingMessageWithCooldown(), and Terraria.GameContent.LucyAxeMessage.TryPlayingIdleMessage().