25956 {
25960 float num = proj.scale * 1.1f;
25962 float num2 = 0.975f;
25963 float fromValue = Lighting.GetColor(
proj.Center.ToTileCoordinates()).ToVector3().Length() / (float)
Math.
Sqrt(3.0);
25966 _ = proj.Size / 2f;
25969 {
25971 {
25973 float num6 =
proj.oldRot[(int)
num5] +
proj.ai[0] * ((
float)Math.PI * 2f) * 0.1f * (0f -
num5);
25982 color3.A = (byte)((
float)(int)
color3.A * (1f -
num3));
25984 color4.G = (byte)((
float)(int)
color4.G *
num3);
25985 color4.R = (byte)((
float)(int)
color4.R * (0.25f +
num3 * 0.75f));
25988 {
25989 float num11 = Utils.Remap(
num10, (
float)Math.PI * -2f, 0f, 0f, 0.5f);
25991 spriteBatch.Draw(val.Value, position,
rectangle,
Microsoft.
Xna.
Framework.
Color.
Lerp(
new Microsoft.
Xna.
Framework.
Color(80, 30, 160),
new Microsoft.
Xna.
Framework.
Color(200, 255, 0),
amount) *
fromValue *
num8 *
num11,
num6 +
num10, origin, num * 0.8f, effects, 0f);
25992 spriteBatch.Draw(val.Value, position,
rectangle,
color2 *
fromValue *
num8 *
MathHelper.
Lerp(0.05f, 0.4f,
fromValue) *
num11,
num6 +
num10, origin, num *
num2, effects, 0f);
25993 spriteBatch.Draw(val.Value, position, val.Frame(1, 4, 0, 3), Microsoft.Xna.Framework.Color.White *
MathHelper.
Lerp(0.05f, 0.5f,
fromValue) *
num8 *
num11,
num6 +
num10, origin, num, effects, 0f);
25994 }
25996 spriteBatch.Draw(val.Value, position,
rectangle,
Microsoft.
Xna.
Framework.
Color.
Lerp(
new Microsoft.
Xna.
Framework.
Color(80, 30, 160),
new Microsoft.
Xna.
Framework.
Color(200, 255, 0),
amount) *
num3 *
num8,
num6, origin, num * 0.8f, effects, 0f);
25997 spriteBatch.Draw(val.Value, position,
rectangle,
color2 *
fromValue *
num8 *
MathHelper.
Lerp(0.05f, 0.4f,
num3),
num6, origin, num *
num2, effects, 0f);
25998 spriteBatch.Draw(val.Value, position, val.Frame(1, 4, 0, 3), Microsoft.Xna.Framework.Color.White *
MathHelper.
Lerp(0.05f, 0.5f,
num3) *
num8,
num6, origin, num, effects, 0f);
25999 }
26000 }
26001 float num12 = 1f -
proj.localAI[0] * 1f / 80f;
26003 {
26005 }
26008 DrawPrettyStarSparkle(
proj.Opacity,
SpriteEffects.None,
drawpos,
new Microsoft.
Xna.
Framework.
Color(255, 255, 255, 0) *
proj.Opacity * 0.5f *
num13,
new Microsoft.
Xna.
Framework.
Color(150, 255, 100) *
num13,
proj.Opacity, 0f, 1f, 1f, 2f, (
float)
Math.
PI / 4f,
new Vector2(2f, 2f),
Vector2.
One);
26009 }
static float Lerp(float value1, float value2, float amount)
static float Min(float value1, float value2)
static double Sqrt(double d)
static Asset< Texture2D >[] Projectile
static void DrawPrettyStarSparkle(float opacity, SpriteEffects dir, Vector2 drawpos, Microsoft.Xna.Framework.Color drawColor, Microsoft.Xna.Framework.Color shineColor, float flareCounter, float fadeInStart, float fadeInEnd, float fadeOutStart, float fadeOutEnd, float rotation, Vector2 scale, Vector2 fatness)
static SpriteBatch spriteBatch
static Vector2 screenPosition
static Color Lerp(Color value1, Color value2, float amount)