1433 {
1434 float num = Main.rand.NextFloat() * ((float)
Math.
PI * 2f);
1435 float num2 = 5f;
1437 for (float num3 = 0f; num3 < 1f; num3 += 1f / num2)
1438 {
1439 float num4 = (float)
Math.
PI * 2f * num3 + num + Main.rand.NextFloatDirection() * 0.25f;
1440 Vector2 vector2 = 1.5f * vector;
1441 float num5 = 60f;
1442 Vector2 vector3 = Main.rand.NextVector2Circular(12f, 12f) * vector;
1444 if (Main.rand.Next(2) == 0)
1445 {
1447 }
1449 prettySparkleParticle.Velocity = num4.ToRotationVector2() * vector2;
1450 prettySparkleParticle.AccelerationPerFrame = num4.ToRotationVector2() * -(vector2 / num5);
1451 prettySparkleParticle.ColorTint = colorTint;
1452 prettySparkleParticle.LocalPosition = settings.PositionInWorld + vector3;
1453 prettySparkleParticle.Rotation = num4;
1454 prettySparkleParticle.Scale = vector * (Main.rand.NextFloat() * 0.8f + 0.2f);
1455 Main.ParticleSystem_World_OverPlayers.
Add(prettySparkleParticle);
1456 }
1457 num2 = 1f;
1458 }
static ParticlePool< PrettySparkleParticle > _poolPrettySparkle
static Color Lerp(Color value1, Color value2, float amount)
static Vector2 Add(Vector2 value1, Vector2 value2)