Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ moneyPing()

void Terraria.NPC.moneyPing ( Vector2 pos)
inline

Definition at line 86870 of file NPC.cs.

86871 {
86872 SoundEngine.PlaySound(38, pos);
86873 int num = 244;
86874 if (extraValue >= 1000000)
86875 {
86876 num = 247;
86877 }
86878 else if (extraValue >= 10000)
86879 {
86880 num = 246;
86881 }
86882 else if (extraValue >= 100)
86883 {
86884 num = 245;
86885 }
86886 for (int i = 0; i < 20; i++)
86887 {
86888 int num2 = Dust.NewDust(pos - new Vector2(1f, 2f), 10, 14, num, 0f, 0f, 254, default(Color), 0.25f);
86889 Main.dust[num2].velocity *= 0.2f;
86890 }
86891 }
static void PlaySound(int type, Vector2 position, int style=1)
int extraValue
Definition NPC.cs:525

References Terraria.Main.dust, Terraria.Dust.NewDust(), Terraria.Audio.SoundEngine.PlaySound(), and Microsoft.Xna.Framework.Graphics.Vector2.