34206 {
34208 {
34211 {
34212 soundEffectInstance.Volume *= 0.65f;
34213 }
34214 }
34225 {
34226 case 982:
34228 break;
34229 case 997:
34231 break;
34232 case 983:
34235 break;
34236 case 984:
34238 break;
34239 }
34240 base.Center = player.RotatedRelativePoint(player.MountedCenter) -
velocity;
34243 {
34245 {
34247 float num7 = Utils.Remap(
localAI[0], 10f,
ai[1] - 5f, 0f, 1f);
34250 }
34251 if (Main.rand.Next(2) == 0)
34252 {
34253 float f =
rotation + Main.rand.NextFloatDirection() * ((float)
Math.
PI / 2f) * 0.7f;
34255 if (Main.rand.Next(5) == 0)
34256 {
34257 Dust dust = Dust.NewDustPerfect(
vector, 14,
null, 150,
default(
Color), 1.4f);
34258 dust.noLight = (dust.noLightEmittence = true);
34259 }
34260 if (Main.rand.Next(2) == 0)
34261 {
34262 Dust.NewDustPerfect(
vector, 27,
new Vector2(player.velocity.X * 0.2f + (
float)(player.direction * 3), player.velocity.Y * 0.2f), 100,
default(
Color), 1.4f).noGravity =
true;
34263 }
34264 }
34265 }
34267 {
34268 float num8 =
rotation + Main.rand.NextFloatDirection() * ((float)
Math.
PI / 2f) * 0.7f;
34271 if (Main.rand.NextFloat() * 2f <
Opacity)
34272 {
34274 dust2.fadeIn = 0.4f + Main.rand.NextFloat() * 0.15f;
34275 dust2.noGravity = true;
34276 }
34277 if (Main.rand.NextFloat() * 1.5f <
Opacity)
34278 {
34280 }
34281 }
34283 {
34284 float num9 =
rotation + Main.rand.NextFloatDirection() * ((float)
Math.
PI / 2f) * 0.7f;
34285 _ = base.Center +
num9.ToRotationVector2() * 84f *
scale;
34287 if (Main.rand.NextFloat() * 2f <
Opacity)
34288 {
34289 Dust
dust3 = Dust.NewDustPerfect(
base.Center +
num9.ToRotationVector2() * (Main.rand.NextFloat() * 80f *
scale + 20f *
scale), 6,
vector4 * 4f, 0,
default(
Color), 0.4f);
34290 dust3.noGravity = true;
34291 dust3.scale = 1.4f;
34292 }
34293 }
34295 {
34299 if (Main.rand.NextFloat() <
Opacity)
34300 {
34302 dust4.fadeIn = 0.4f + Main.rand.NextFloat() * 0.15f;
34303 dust4.noGravity = true;
34304 }
34305 if (Main.rand.NextFloat() * 1.5f <
Opacity)
34306 {
34308 }
34309 }
34311 {
34317 Lighting.AddLight(
base.Center,
value2.ToVector3());
34318 if (Main.rand.NextFloat() * 2f <
Opacity)
34319 {
34323 dust5.fadeIn = 0.4f + Main.rand.NextFloat() * 0.15f;
34324 dust5.noGravity = true;
34325 }
34326 if (Main.rand.NextFloat() <
Opacity)
34327 {
34328 Color.
Lerp(
Color.
Lerp(
Color.
Lerp(
value2,
value, Utils.Remap(num, 0f, 0.6f, 0f, 1f)),
Color.
White, Utils.Remap(num, 0.6f, 0.8f, 0f, 0.5f)),
Color.
White, Main.rand.NextFloat() * 0.3f);
34330 dust6.velocity += player.velocity * 0.1f;
34331 dust6.velocity +=
new Vector2(player.direction, 0f);
34332 dust6.position -= dust6.velocity * 6f;
34333 }
34334 }
34337 {
34339 }
34340 }
static double Abs(double value)
static void PlaySound(int type, Vector2 position, int style=1)
static readonly LegacySoundStyle Item60
static Color Lerp(Color value1, Color value2, float amount)