51079 {
51080
51081
51082
51083
51084
51085
51086
51087
51088
51089
51090
51091
51092
51093
51094
51095
51096
51097
51098
51099
51100
51101
51102
51103
51104
51105
51106
51107
51108
51109
51110 Color
value = Color.HotPink;
51111 Color
value2 = Color.LightPink;
51114 {
51115 value = Color.LimeGreen;
51116 value2 = Color.LightSeaGreen;
51117 }
51119 {
51120 value = Color.RoyalBlue;
51121 value2 = Color.LightBlue;
51122 }
51123 for (int i = 0; i < 40; i++)
51124 {
51125 Dust dust = Dust.NewDustDirect(Position -
new Vector2((
float)
num) * 0.5
f,
num + 4,
num + 4, 278, 0
f, 0
f, 200, Color.Lerp(
value,
value2, Main.rand.NextFloat()), 0.65f);
51126 dust.velocity *= 1.5f;
51127 if (i >= 30)
51128 {
51129 dust.velocity *= 3.5f;
51130 }
51131 else if (i >= 20)
51132 {
51133 dust.velocity *= 2
f;
51134 }
51135 dust.fadeIn = (float)Main.rand.Next(0, 17) * 0.1f;
51136 dust.noGravity = true;
51137 }
51139 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static readonly SoundStyle Item4
float value
How many copper coins the NPC will drop when killed (100 copper coins = 1 silver coin etc....
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....