3024 {
3026 {
3029 {
3031 }
3032 }
3034 {
3036 }
3038 {
3041 }
3043 {
3044 case 52:
3046 {
3048 }
3049 break;
3050 case 17:
3052 break;
3053 case 5:
3055 {
3058 }
3059 break;
3060 case 7:
3062 break;
3063 case 49:
3064 {
3066 {
3068 }
3070 float num5 = mountedPlayer.velocity.Y * 0.05f;
3072 {
3074 }
3075 mountedPlayer.fullRotation =
num5;
3077 break;
3078 }
3079 case 43:
3081 {
3082 mountedPlayer.isPerformingPogostickTricks = false;
3083 }
3085 {
3086 mountedPlayer.fullRotation += (float)
mountedPlayer.direction * ((
float)Math.PI * 2f) / 30f;
3087 }
3088 else
3089 {
3091 }
3093 break;
3094 case 9:
3096 {
3097 break;
3098 }
3101 {
3105 {
3107 }
3108 }
3109 break;
3110 case 46:
3112 {
3114 }
3116 {
3118 {
3121 break;
3122 }
3124 {
3126 }
3129 {
3133 {
3135 }
3136 }
3137 break;
3138 }
3140 {
3142 }
3145 {
3149 {
3151 }
3152 }
3153 break;
3154 case 8:
3155 {
3157 {
3158 break;
3159 }
3162 position.Y = mountedPlayer.position.Y + (float)
mountedPlayer.height;
3163 int num6 = (int)(position.
X / 16f);
3164 _ = position.Y / 16f;
3168 {
3169 float num9 = (float)((
num6 + 1) * 16) - position.
X;
3171 {
3173 }
3174 num7 += Collision.GetTileRotation(position) *
num9;
3178 }
3183 {
3185 }
3186 else if (
num10 > 0f)
3187 {
3189 }
3191 {
3192 mountedPlayer.fullRotation +=
num11;
3194 {
3195 mountedPlayer.fullRotation = (float)
Math.
PI / 4f;
3196 }
3198 {
3199 mountedPlayer.fullRotation = -(float)
Math.
PI / 4f;
3200 }
3201 }
3202 break;
3203 }
3204 case 10:
3205 case 40:
3206 case 41:
3207 case 42:
3208 case 47:
3209 {
3212 {
3215 {
3218 {
3220 }
3222 }
3223 else
3224 {
3226 }
3228 {
3231 {
3232 type = Utils.SelectRandom<
int>(Main.rand, 176, 177, 179);
3233 }
3236 float num22 = (float)
Math.
PI * 2f * Main.rand.NextFloat();
3238 {
3244 dust5.noGravity = true;
3246 {
3247 dust5.noLightEmittence = true;
3248 }
3249 dust5.scale = 1f + Main.rand.NextFloat() * 0.8f;
3250 dust5.fadeIn = Main.rand.NextFloat() * 2f;
3252 }
3253 }
3254 }
3256 {
3259 obj3.noGravity = true;
3260 obj3.scale = 0.5f + Main.rand.NextFloat() * 0.8f;
3261 obj3.fadeIn = 1f + Main.rand.NextFloat() * 2f;
3263 }
3265 {
3269 if (tile !=
null && tile.active() && tile.liquid == 0 &&
WorldGen.SolidTileAllowBottomSlope(
num24,
num25 + 1))
3270 {
3272 {
3275 }
3276 }
3277 break;
3278 }
3279 case 44:
3280 {
3284 {
3286 }
3289 {
3291 }
3293 {
3297 float num17 = (float)
Math.
PI * 2f * Main.rand.NextFloat();
3299 {
3300 Dust
dust4 = Main.dust[Dust.NewDust(
vector5, 0, 0, 228)];
3305 if (velocity.
X > 0f)
3306 {
3307 dust4.velocity.X *= -1f;
3308 }
3309 if (Main.rand.Next(2) == 0)
3310 {
3311 dust4.velocity *= 0.5f;
3312 }
3313 dust4.noGravity = true;
3314 dust4.scale = 1.5f + Main.rand.NextFloat() * 0.8f;
3315 dust4.fadeIn = 0f;
3317 }
3318 }
3321 {
3323 }
3324 if (Main.rand.Next(
num19) == 0)
3325 {
3327 int num21 = mountedPlayer.width / 2 + 10;
3330 bottom.Y -=
num20 - 6;
3331 Dust
obj2 = Main.dust[Dust.NewDust(bottom,
num21 * 2,
num20, 228)];
3333 obj2.noGravity = true;
3334 obj2.noLight = true;
3335 obj2.scale = 0.25f + Main.rand.NextFloat() * 0.8f;
3336 obj2.fadeIn = 0.5f + Main.rand.NextFloat() * 2f;
3338 }
3339 break;
3340 }
3341 case 45:
3342 {
3345 {
3347 }
3350 {
3352 }
3353 else if (!
flag2 && flag)
3354 {
3358 float num13 = (float)
Math.
PI * 2f * Main.rand.NextFloat();
3360 {
3361 Dust
dust2 = Main.dust[Dust.NewDust(
vector2, 0, 0, 6)];
3366 if (velocity.
X > 0f)
3367 {
3368 dust2.velocity.X *= -1f;
3369 }
3370 if (Main.rand.Next(2) == 0)
3371 {
3372 dust2.velocity *= 0.5f;
3373 }
3374 dust2.noGravity = true;
3375 dust2.scale = 1.5f + Main.rand.NextFloat() * 0.8f;
3376 dust2.fadeIn = 0f;
3378 }
3379 }
3380 if (flag)
3381 {
3382 int num15 = Utils.SelectRandom(Main.rand,
new short[3] { 6, 6, 31 });
3385 dust3.velocity = mountedPlayer.velocity * 0.1f;
3386 if (Main.rand.Next(2) == 0)
3387 {
3388 dust3.noGravity = true;
3389 }
3390 dust3.scale = 0.7f + Main.rand.NextFloat() * 0.8f;
3391 if (Main.rand.Next(3) == 0)
3392 {
3393 dust3.fadeIn = 0.1f;
3394 }
3396 {
3397 dust3.noGravity = true;
3398 dust3.scale *= 1.5f;
3399 dust3.fadeIn = 0.2f;
3400 }
3402 }
3403 break;
3404 }
3405 case 48:
3407 break;
3408 case 39:
3411 {
3415 {
3417 }
3418 }
3419 break;
3420 case 50:
3422 {
3425 break;
3426 }
3429 {
3431 }
3433 {
3437 {
3439 }
3440 }
3441 break;
3442 case 14:
3443 {
3448 if (!num)
3449 {
3450 mountedPlayer.basiliskCharge = 0f;
3451 }
3452 else
3453 {
3454 mountedPlayer.basiliskCharge = Utils.Clamp(
mountedPlayer.basiliskCharge + 1f / 180f, 0f, 1f);
3455 }
3456 if ((
double)
mountedPlayer.position.Y > Main.worldSurface * 16.0 + 160.0)
3457 {
3459 }
3460 if (num && velocity.
Y == 0f)
3461 {
3462 for (
int i = 0;
i < 2;
i++)
3463 {
3465 obj.velocity =
new Vector2(velocity.
X * 0.15f, Main.rand.NextFloat() * -2f);
3466 obj.noLight = true;
3467 obj.scale = 0.5f + Main.rand.NextFloat() * 0.8f;
3468 obj.fadeIn = 0.5f + Main.rand.NextFloat() * 1f;
3470 }
3472 {
3473 mountedPlayer.position +=
new Vector2(
num2 * 24f, 0f);
3475 mountedPlayer.position -=
new Vector2(
num2 * 24f, 0f);
3476 }
3477 }
3479 {
3480 break;
3481 }
3483 {
3486 dust.position = mountedPlayer.Center +
new Vector2(
num2 * (
num4 - 2f),
num3 - 6f + Main.rand.NextFloat() * 12f);
3487 dust.velocity = (dust.position -
vector).SafeNormalize(
Vector2.
Zero) * (3.5f + Main.rand.NextFloat() * 0.5f);
3488 if (dust.velocity.Y < 0f)
3489 {
3490 dust.velocity.Y *= 1f + 2f * Main.rand.NextFloat();
3491 }
3492 dust.velocity += mountedPlayer.velocity * 0.55f;
3495 dust.noGravity = true;
3496 dust.noLight = true;
3497 dust.scale = 0.5f + Main.rand.NextFloat() * 0.8f;
3498 dust.fadeIn = 0.5f + Main.rand.NextFloat() * 1f;
3500 }
3501 break;
3502 }
3503 }
3505 {
3506 case 0:
3508 {
3510 {
3512 {
3514 {
3516 }
3517 }
3518 else
3519 {
3522 }
3523 }
3525 {
3528 {
3530 }
3531 }
3533 }
3536 {
3539 {
3541 }
3544 if (
num30 >= idleFrameCount)
3545 {
3547 {
3550 }
3551 else
3552 {
3556 }
3557 }
3558 else
3559 {
3562 {
3564 {
3566 }
3567 }
3569 {
3571 }
3572 }
3574 {
3576 }
3578 {
3581 }
3582 }
3583 else
3584 {
3586 {
3589 }
3591 {
3593 }
3594 }
3595 break;
3596 case 1:
3597 {
3600 {
3601 case 9:
3602 case 46:
3604 break;
3605 case 44:
3607 break;
3608 case 48:
3610 break;
3611 case 6:
3613 break;
3614 case 13:
3616 break;
3617 case 50:
3619 break;
3620 default:
3622 break;
3623 }
3626 {
3628 {
3631 }
3633 {
3635 }
3636 }
3637 else
3638 {
3640 {
3643 }
3645 {
3646 _frame = _data.runningFrameStart + _data.runningFrameCount - 1;
3647 }
3648 }
3649 break;
3650 }
3651 case 3:
3654 {
3657 }
3659 {
3661 }
3662 break;
3663 case 2:
3666 {
3669 }
3671 {
3673 }
3675 {
3676 if (velocity.
Y < 0f)
3677 {
3679 }
3680 else
3681 {
3683 }
3684 }
3685 else if (
_type == 52)
3686 {
3687 if (velocity.
Y < 0f)
3688 {
3690 }
3692 {
3694 }
3695 }
3696 else if (
_type == 5)
3697 {
3701 {
3704 }
3706 {
3708 }
3709 }
3710 else if (
_type == 23)
3711 {
3714 {
3717 }
3718 else if (
num28 > 5f)
3719 {
3721 }
3722 }
3723 break;
3724 case 4:
3725 {
3729 {
3732 }
3734 {
3736 }
3737 if (
Type == 37 && velocity.
X == 0f)
3738 {
3740 }
3741 break;
3742 }
3743 case 5:
3744 {
3746 {
3751 };
3754 {
3756 {
3759 }
3761 {
3763 }
3764 }
3765 else
3766 {
3768 {
3771 }
3773 {
3774 _frame = _data.dashingFrameStart + _data.dashingFrameCount - 1;
3775 }
3776 }
3777 break;
3778 }
3779 }
3780 }
static double Abs(double value)
static int Sign(decimal value)
static byte Max(byte val1, byte val2)
static void RequestParticleSpawn(bool clientOnly, ParticleOrchestraType type, ParticleOrchestraSettings settings, int? overrideInvokingPlayerIndex=null)
static ArmorShaderDataSet Armor
object _mountSpecificData
void UpdateFrame_GolfCart(Player mountedPlayer, int state, Vector2 velocity)
@ WallOfFleshGoatMountFlames