34033 {
34034 float num = 50f;
34036 float num3 =
ai[1] + num;
34040 {
34041 num = 0f;
34045 }
34047 {
34049 }
34052 {
34054 }
34056 {
34058 }
34061 {
34064 return;
34065 }
34071 {
34074 {
34076 }
34078 {
34080 bool flag = false;
34083 {
34087 {
34088 flag = true;
34089 break;
34090 }
34091 }
34092 if (!flag)
34093 {
34095 }
34096 }
34103 float f =
rotation + Main.rand.NextFloatDirection() * ((float)
Math.
PI / 2f) * 0.7f;
34105 if (Main.rand.Next(5) == 0)
34106 {
34107 Dust dust = Dust.NewDustPerfect(
vector, 14,
null, 150,
default(
Color), 1.4f);
34108 dust.noLight = (dust.noLightEmittence = true);
34109 }
34110 for (
int i = 0; (float)i < 3f *
Opacity;
i++)
34111 {
34113 int num11 = ((Main.rand.NextFloat() <
Opacity) ? 75 : 27);
34115 dust2.noGravity = true;
34116 dust2.customData =
Opacity * 0.2f;
34117 }
34118 }
34120 {
34121 return;
34122 }
34125 {
34127 }
34134 {
34139 {
34140 bool flag2 =
false;
34142 {
34146 {
34148 break;
34149 }
34150 }
34152 {
34154 }
34155 }
34157 {
34159 }
34161 {
34163 }
34164 }
34167 (
num14 +
ai[0] * ((float)
Math.
PI / 2f)).ToRotationVector2();
34171 for (
int j = 0;
j < 3;
j++)
34172 {
34173 if (Main.rand.NextFloat() <
Opacity + 0.1f)
34174 {
34175 Color.
Lerp(
Color.
Lerp(
Color.
Lerp(
value2,
value, Utils.Remap(
fromValue, 0f, 0.6f, 0f, 1f)),
Color.
White, Utils.Remap(
fromValue, 0.6f, 0.8f, 0f, 0.5f)),
Color.
White, Main.rand.NextFloat() * 0.3f);
34177 dust3.scale *= 0.7f;
34178 dust3.velocity += player.velocity * 0.1f;
34179 dust3.position -= dust3.velocity * 6f;
34180 }
34181 }
34183 {
34186 }
34188 {
34191 for (
int k = 0;
k < 4;
k++)
34192 {
34193 float num15 = Main.rand.NextFloatDirection();
34197 Color.
Lerp(
Color.
Lerp(
Color.
Lerp(
value2,
value, Utils.Remap(
fromValue, 0f, 0.6f, 0f, 1f)),
Color.
White, Utils.Remap(
fromValue, 0.6f, 0.8f, 0f, 0.5f)),
Color.
White, Main.rand.NextFloat() * 0.3f);
34199 dust4.velocity += player.velocity * 0.1f;
34200 dust4.position -= dust4.velocity * Main.rand.NextFloat() * 3f;
34201 }
34202 }
34203 }
static float Lerp(float value1, float value2, float amount)
static double Abs(double value)
static void PlaySound(int type, Vector2 position, int style=1)
static readonly LegacySoundStyle Item8
static Color Lerp(Color value1, Color value2, float amount)