47353 {
47355 {
47357 CompositeArmStretchAmount stretch = CompositeArmStretchAmount.ThreeQuarters;
47358 if (num == 1)
47359 {
47360 stretch = CompositeArmStretchAmount.Full;
47361 }
47364 {
47366 }
47368 }
47370 {
47371 return;
47372 }
47374 {
47375 if (Main.dedServ)
47376 {
47377 itemLocation.X = position.X + (float)
width * 0.5f + 20f * (
float)
direction;
47378 }
47379 else if (
sItem.type == 930)
47380 {
47381 itemLocation.X = position.X + (float)(
width / 2) * 0.5f - 12f - (float)(2 *
direction);
47382 float x = position.X + (float)(
width / 2) + (float)(38 *
direction);
47384 {
47385 x -= 10f;
47386 }
47387 float y = MountedCenter.Y - 4f *
gravDir;
47389 {
47390 y -= 8f;
47391 }
47394 for (
int i = 54;
i < 58;
i++)
47395 {
47397 {
47399 break;
47400 }
47401 }
47403 {
47404 for (
int j = 0;
j < 54;
j++)
47405 {
47407 {
47409 break;
47410 }
47411 }
47412 }
47414 {
47415 case 931:
47417 break;
47418 case 1614:
47420 break;
47421 case 5377:
47423 break;
47424 case 5378:
47426 break;
47427 case 5379:
47429 break;
47430 case 5380:
47432 break;
47433 }
47435 {
47437 Main.dust[
num4].noGravity =
true;
47440 {
47441 Main.dust[
num4].color = Main.hslToRgb(Main.GlobalTimeWrappedHourly * 0.6f % 1f, 1f, 0.5f);
47442 Main.dust[
num4].scale *= 0.5f;
47443 Main.dust[
num4].velocity *= 0.75f;
47444 }
47445 }
47446 }
47447 else if (
sItem.type == 968)
47448 {
47449 itemLocation.X = position.X + (float)
width * 0.5f + (
float)(8 *
direction);
47450 if (
whoAmI == Main.myPlayer)
47451 {
47454 if (Main.tile[
num5,
num6] ==
null)
47455 {
47457 }
47459 {
47461 if (Main.rand.Next(5) == 0)
47462 {
47464 }
47466 {
47468 sItem.SetDefaults(969);
47470 {
47471 Main.mouseItem.SetDefaults(969);
47472 }
47473 for (
int k = 0;
k < 58;
k++)
47474 {
47476 {
47479 sItem.SetDefaults();
47481 {
47482 Main.mouseItem.SetDefaults();
47483 }
47484 }
47485 }
47486 }
47487 }
47488 else
47489 {
47491 }
47492 }
47493 }
47494 else if (
sItem.type == 856)
47495 {
47496 itemLocation.X = position.X + (float)
width * 0.5f + (
float)(4 *
direction);
47497 }
47498 else if (
sItem.fishingPole > 0)
47499 {
47500 itemLocation.X = position.X + (float)
width * 0.5f + (
float)heldItemFrame.Width * 0.18f * (float)
direction;
47501 }
47502 else
47503 {
47504 itemLocation.X = position.X + (float)
width * 0.5f + ((
float)heldItemFrame.Width * 0.5f + 2f) * (
float)
direction;
47506 {
47508 itemLocation.Y += 4f;
47509 }
47510 else if (
sItem.type == 3002)
47511 {
47513 itemLocation.Y += 2f;
47514 }
47515 }
47517 if (
sItem.type == 856)
47518 {
47520 }
47521 if (
sItem.type == 930)
47522 {
47524 }
47525 if (
sItem.fishingPole > 0)
47526 {
47527 itemLocation.Y += 4f;
47528 }
47529 else if (
sItem.type == 3476)
47530 {
47531 itemLocation.X = base.Center.X + (float)(14 *
direction);
47533 }
47534 else if (
sItem.type == 3779)
47535 {
47536 itemLocation.X = base.Center.X + (float)(6 *
direction);
47537 itemLocation.Y = MountedCenter.Y + 6f;
47538 }
47539 else if (
sItem.type == 4952)
47540 {
47541 itemLocation.X = base.Center.X + (float)(2 *
direction);
47542 itemLocation.Y = MountedCenter.Y + 26f;
47543 }
47544 else if (
sItem.type == 353)
47545 {
47546 itemLocation.X = base.Center.X + (float)(6 *
direction);
47547 itemLocation.Y = MountedCenter.Y + 11f;
47548 }
47550 {
47551 itemLocation.X = base.Center.X + (float)(4 *
direction);
47552 itemLocation.Y = MountedCenter.Y + (float)(
heldItemFrame.Height / 2);
47553 }
47554 else if (
sItem.type == 4049 && Main.rand.Next(4) == 0)
47555 {
47557 dust.noGravity = true;
47558 dust.velocity = Main.rand.NextVector2Circular(1f, 1f) +
new Vector2(0f, -1f);
47559 }
47562 {
47565 if (
sItem.type == 930)
47566 {
47567 itemLocation.Y -= 24f;
47568 }
47569 }
47570 }
47572 {
47573 if (
sItem.type == 946 ||
sItem.type == 4707)
47574 {
47576 itemLocation.X = position.X + (float)
width * 0.5f - (
float)(16 *
direction);
47580 {
47584 {
47585 velocity.Y = -2f;
47586 }
47587 }
47589 {
47590 velocity.Y = 2f;
47591 }
47592 }
47593 else
47594 {
47595 itemLocation.X = position.X + (float)
width * 0.5f + (
float)(6 *
direction);
47599 {
47602 }
47603 }
47604 }
47606 {
47607 if (!Main.dedServ)
47608 {
47609 itemLocation.X = position.X + (float)
width * 0.5f - (
float)heldItemFrame.Width * 0.5f - (float)(
direction * 2);
47610 itemLocation.Y = MountedCenter.Y - (float)
heldItemFrame.Height * 0.5f;
47612 }
47613 }
47614 else if (
sItem.holdStyle == 4)
47615 {
47616 if (!Main.dedServ)
47617 {
47621 {
47623 }
47624 CompositeArmStretchAmount
stretch2 = CompositeArmStretchAmount.Full;
47625 CompositeArmStretchAmount
stretch3 = CompositeArmStretchAmount.ThreeQuarters;
47628 {
47630 }
47633 {
47635 }
47643 }
47644 }
47646 {
47647 if (!Main.dedServ)
47648 {
47650 itemLocation.X = base.Center.X - (float)(8 *
direction);
47654 CompositeArmStretchAmount
stretch4 = CompositeArmStretchAmount.Quarter;
47656 CompositeArmStretchAmount
stretch5 = CompositeArmStretchAmount.Full;
47659 }
47660 }
47661 else if (
sItem.holdStyle == 6 && !
pulley && !Main.dedServ)
47662 {
47664 itemLocation.X = base.Center.X + (float)(8 *
direction);
47665 itemLocation.Y = position.Y + 40f +
mountOffset - 2f;
47668 CompositeArmStretchAmount
stretch6 = CompositeArmStretchAmount.ThreeQuarters;
47671 }
47672 }
static void PlaySound(int type, Vector2 position, int style=1)
void RotateRelativePoint(ref float x, ref float y)
void SetCompositeArmBack(bool enabled, CompositeArmStretchAmount stretch, float rotation)
void FlipItemLocationAndRotationForGravity()
void SetCompositeArmFront(bool enabled, CompositeArmStretchAmount stretch, float rotation)
bool isTheAnimalBeingPetSmall
bool CanVisuallyHoldItem(Item item)