TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ItemCheck_ApplyUseStyle_Inner()

void Terraria.Player.ItemCheck_ApplyUseStyle_Inner ( float mountOffset,
Item sItem,
Rectangle heldItemFrame )
inlineprivate

Definition at line 51562 of file Player.cs.

51563 {
51564 //IL_01cd: Unknown result type (might be due to invalid IL or missing references)
51565 //IL_01d2: Unknown result type (might be due to invalid IL or missing references)
51566 //IL_090d: Unknown result type (might be due to invalid IL or missing references)
51567 //IL_0931: Unknown result type (might be due to invalid IL or missing references)
51568 //IL_0936: Unknown result type (might be due to invalid IL or missing references)
51569 //IL_093b: Unknown result type (might be due to invalid IL or missing references)
51570 //IL_097c: Unknown result type (might be due to invalid IL or missing references)
51571 //IL_0990: Unknown result type (might be due to invalid IL or missing references)
51572 //IL_0995: Unknown result type (might be due to invalid IL or missing references)
51573 //IL_099c: Unknown result type (might be due to invalid IL or missing references)
51574 //IL_09a3: Unknown result type (might be due to invalid IL or missing references)
51575 //IL_09b4: Unknown result type (might be due to invalid IL or missing references)
51576 //IL_09b9: Unknown result type (might be due to invalid IL or missing references)
51577 //IL_09be: Unknown result type (might be due to invalid IL or missing references)
51578 //IL_09c3: Unknown result type (might be due to invalid IL or missing references)
51579 //IL_09c6: Unknown result type (might be due to invalid IL or missing references)
51580 //IL_09c8: Unknown result type (might be due to invalid IL or missing references)
51581 //IL_07ee: Unknown result type (might be due to invalid IL or missing references)
51582 //IL_0761: Unknown result type (might be due to invalid IL or missing references)
51583 //IL_01f7: Unknown result type (might be due to invalid IL or missing references)
51584 //IL_09f9: Unknown result type (might be due to invalid IL or missing references)
51585 //IL_09fe: Unknown result type (might be due to invalid IL or missing references)
51586 //IL_0a05: Unknown result type (might be due to invalid IL or missing references)
51587 //IL_0a0b: Unknown result type (might be due to invalid IL or missing references)
51588 //IL_0a10: Unknown result type (might be due to invalid IL or missing references)
51589 //IL_0a15: Unknown result type (might be due to invalid IL or missing references)
51590 //IL_0a1c: Unknown result type (might be due to invalid IL or missing references)
51591 //IL_0a32: Unknown result type (might be due to invalid IL or missing references)
51592 //IL_0a37: Unknown result type (might be due to invalid IL or missing references)
51593 //IL_0a3e: Unknown result type (might be due to invalid IL or missing references)
51594 //IL_0a44: Unknown result type (might be due to invalid IL or missing references)
51595 //IL_0a49: Unknown result type (might be due to invalid IL or missing references)
51596 //IL_0a4e: Unknown result type (might be due to invalid IL or missing references)
51597 //IL_049b: Unknown result type (might be due to invalid IL or missing references)
51598 //IL_0318: Unknown result type (might be due to invalid IL or missing references)
51599 //IL_0208: Unknown result type (might be due to invalid IL or missing references)
51600 //IL_0070: Unknown result type (might be due to invalid IL or missing references)
51601 //IL_0cbd: Unknown result type (might be due to invalid IL or missing references)
51602 //IL_0cd1: Unknown result type (might be due to invalid IL or missing references)
51603 //IL_0ced: Unknown result type (might be due to invalid IL or missing references)
51604 //IL_0cf3: Unknown result type (might be due to invalid IL or missing references)
51605 //IL_0cf5: Unknown result type (might be due to invalid IL or missing references)
51606 //IL_0cfa: Unknown result type (might be due to invalid IL or missing references)
51607 //IL_0cff: Unknown result type (might be due to invalid IL or missing references)
51608 //IL_04ac: Unknown result type (might be due to invalid IL or missing references)
51609 //IL_0329: Unknown result type (might be due to invalid IL or missing references)
51610 //IL_0219: Unknown result type (might be due to invalid IL or missing references)
51611 //IL_0153: Unknown result type (might be due to invalid IL or missing references)
51612 //IL_00ef: Unknown result type (might be due to invalid IL or missing references)
51613 //IL_0bf3: Unknown result type (might be due to invalid IL or missing references)
51614 //IL_0b66: Unknown result type (might be due to invalid IL or missing references)
51615 //IL_04bd: Unknown result type (might be due to invalid IL or missing references)
51616 //IL_033a: Unknown result type (might be due to invalid IL or missing references)
51617 //IL_022a: Unknown result type (might be due to invalid IL or missing references)
51618 //IL_04ce: Unknown result type (might be due to invalid IL or missing references)
51619 //IL_034b: Unknown result type (might be due to invalid IL or missing references)
51620 //IL_1054: Unknown result type (might be due to invalid IL or missing references)
51621 //IL_10a2: Unknown result type (might be due to invalid IL or missing references)
51622 //IL_04df: Unknown result type (might be due to invalid IL or missing references)
51623 //IL_1315: Unknown result type (might be due to invalid IL or missing references)
51624 //IL_1335: Unknown result type (might be due to invalid IL or missing references)
51625 //IL_0db9: Unknown result type (might be due to invalid IL or missing references)
51626 //IL_0dc3: Unknown result type (might be due to invalid IL or missing references)
51627 //IL_0dd4: Unknown result type (might be due to invalid IL or missing references)
51628 //IL_0ddf: Unknown result type (might be due to invalid IL or missing references)
51629 //IL_0de4: Unknown result type (might be due to invalid IL or missing references)
51630 //IL_0de9: Unknown result type (might be due to invalid IL or missing references)
51631 //IL_02a2: Unknown result type (might be due to invalid IL or missing references)
51632 //IL_1371: Unknown result type (might be due to invalid IL or missing references)
51633 //IL_137b: Unknown result type (might be due to invalid IL or missing references)
51634 //IL_13a1: Unknown result type (might be due to invalid IL or missing references)
51635 //IL_1221: Unknown result type (might be due to invalid IL or missing references)
51636 //IL_1272: Unknown result type (might be due to invalid IL or missing references)
51637 //IL_03c3: Unknown result type (might be due to invalid IL or missing references)
51638 //IL_03e8: Unknown result type (might be due to invalid IL or missing references)
51639 //IL_1c49: Unknown result type (might be due to invalid IL or missing references)
51640 //IL_1c93: Unknown result type (might be due to invalid IL or missing references)
51641 //IL_1c98: Unknown result type (might be due to invalid IL or missing references)
51642 //IL_1c9c: Unknown result type (might be due to invalid IL or missing references)
51643 //IL_1ca1: Unknown result type (might be due to invalid IL or missing references)
51644 //IL_1ca3: Unknown result type (might be due to invalid IL or missing references)
51645 //IL_1ca8: Unknown result type (might be due to invalid IL or missing references)
51646 //IL_1554: Unknown result type (might be due to invalid IL or missing references)
51647 //IL_1578: Unknown result type (might be due to invalid IL or missing references)
51648 //IL_1582: Unknown result type (might be due to invalid IL or missing references)
51649 //IL_13e0: Unknown result type (might be due to invalid IL or missing references)
51650 //IL_15ab: Unknown result type (might be due to invalid IL or missing references)
51651 //IL_15b6: Unknown result type (might be due to invalid IL or missing references)
51652 //IL_15c0: Unknown result type (might be due to invalid IL or missing references)
51653 //IL_15cc: Unknown result type (might be due to invalid IL or missing references)
51654 //IL_15d1: Unknown result type (might be due to invalid IL or missing references)
51655 //IL_15d6: Unknown result type (might be due to invalid IL or missing references)
51656 //IL_15de: Unknown result type (might be due to invalid IL or missing references)
51657 //IL_15e8: Unknown result type (might be due to invalid IL or missing references)
51658 //IL_15f4: Unknown result type (might be due to invalid IL or missing references)
51659 //IL_15f9: Unknown result type (might be due to invalid IL or missing references)
51660 //IL_0557: Unknown result type (might be due to invalid IL or missing references)
51661 //IL_057c: Unknown result type (might be due to invalid IL or missing references)
51662 //IL_03f9: Unknown result type (might be due to invalid IL or missing references)
51663 //IL_18c7: Unknown result type (might be due to invalid IL or missing references)
51664 //IL_18ce: Unknown result type (might be due to invalid IL or missing references)
51665 //IL_14f5: Unknown result type (might be due to invalid IL or missing references)
51666 //IL_14fa: Unknown result type (might be due to invalid IL or missing references)
51667 //IL_1501: Unknown result type (might be due to invalid IL or missing references)
51668 //IL_150c: Unknown result type (might be due to invalid IL or missing references)
51669 //IL_1513: Unknown result type (might be due to invalid IL or missing references)
51670 //IL_151f: Unknown result type (might be due to invalid IL or missing references)
51671 //IL_1524: Unknown result type (might be due to invalid IL or missing references)
51672 //IL_1529: Unknown result type (might be due to invalid IL or missing references)
51673 //IL_152e: Unknown result type (might be due to invalid IL or missing references)
51674 //IL_161c: Unknown result type (might be due to invalid IL or missing references)
51675 //IL_1621: Unknown result type (might be due to invalid IL or missing references)
51676 //IL_1623: Unknown result type (might be due to invalid IL or missing references)
51677 //IL_1637: Unknown result type (might be due to invalid IL or missing references)
51678 //IL_164d: Unknown result type (might be due to invalid IL or missing references)
51679 //IL_1650: Unknown result type (might be due to invalid IL or missing references)
51680 //IL_1655: Unknown result type (might be due to invalid IL or missing references)
51681 //IL_1669: Unknown result type (might be due to invalid IL or missing references)
51682 //IL_166e: Unknown result type (might be due to invalid IL or missing references)
51683 //IL_1673: Unknown result type (might be due to invalid IL or missing references)
51684 //IL_16cc: Unknown result type (might be due to invalid IL or missing references)
51685 //IL_16d2: Unknown result type (might be due to invalid IL or missing references)
51686 //IL_16d7: Unknown result type (might be due to invalid IL or missing references)
51687 //IL_16dc: Unknown result type (might be due to invalid IL or missing references)
51688 //IL_058d: Unknown result type (might be due to invalid IL or missing references)
51689 //IL_040a: Unknown result type (might be due to invalid IL or missing references)
51690 //IL_063c: Unknown result type (might be due to invalid IL or missing references)
51691 //IL_0641: Unknown result type (might be due to invalid IL or missing references)
51692 //IL_0643: Unknown result type (might be due to invalid IL or missing references)
51693 //IL_0648: Unknown result type (might be due to invalid IL or missing references)
51694 //IL_064d: Unknown result type (might be due to invalid IL or missing references)
51695 //IL_0652: Unknown result type (might be due to invalid IL or missing references)
51696 //IL_20c1: Unknown result type (might be due to invalid IL or missing references)
51697 //IL_2111: Unknown result type (might be due to invalid IL or missing references)
51698 //IL_2116: Unknown result type (might be due to invalid IL or missing references)
51699 //IL_211a: Unknown result type (might be due to invalid IL or missing references)
51700 //IL_211f: Unknown result type (might be due to invalid IL or missing references)
51701 //IL_2121: Unknown result type (might be due to invalid IL or missing references)
51702 //IL_2126: Unknown result type (might be due to invalid IL or missing references)
51703 //IL_1818: Unknown result type (might be due to invalid IL or missing references)
51704 //IL_14b4: Unknown result type (might be due to invalid IL or missing references)
51705 //IL_14b6: Unknown result type (might be due to invalid IL or missing references)
51706 //IL_174c: Unknown result type (might be due to invalid IL or missing references)
51707 //IL_174e: Unknown result type (might be due to invalid IL or missing references)
51708 //IL_1755: Unknown result type (might be due to invalid IL or missing references)
51709 //IL_175c: Unknown result type (might be due to invalid IL or missing references)
51710 //IL_1770: Unknown result type (might be due to invalid IL or missing references)
51711 //IL_1775: Unknown result type (might be due to invalid IL or missing references)
51712 //IL_177b: Unknown result type (might be due to invalid IL or missing references)
51713 //IL_1780: Unknown result type (might be due to invalid IL or missing references)
51714 //IL_1785: Unknown result type (might be due to invalid IL or missing references)
51715 //IL_1729: Unknown result type (might be due to invalid IL or missing references)
51716 //IL_172e: Unknown result type (might be due to invalid IL or missing references)
51717 //IL_0f49: Unknown result type (might be due to invalid IL or missing references)
51718 //IL_0f53: Unknown result type (might be due to invalid IL or missing references)
51719 //IL_0f64: Unknown result type (might be due to invalid IL or missing references)
51720 //IL_0f6f: Unknown result type (might be due to invalid IL or missing references)
51721 //IL_0f74: Unknown result type (might be due to invalid IL or missing references)
51722 //IL_0f79: Unknown result type (might be due to invalid IL or missing references)
51723 //IL_059e: Unknown result type (might be due to invalid IL or missing references)
51724 //IL_191f: Unknown result type (might be due to invalid IL or missing references)
51725 //IL_1ace: Unknown result type (might be due to invalid IL or missing references)
51726 //IL_1ad3: Unknown result type (might be due to invalid IL or missing references)
51727 //IL_1ad5: Unknown result type (might be due to invalid IL or missing references)
51728 //IL_1ada: Unknown result type (might be due to invalid IL or missing references)
51729 //IL_1adf: Unknown result type (might be due to invalid IL or missing references)
51730 //IL_1bdb: Unknown result type (might be due to invalid IL or missing references)
51731 //IL_1bee: Unknown result type (might be due to invalid IL or missing references)
51732 //IL_1bf3: Unknown result type (might be due to invalid IL or missing references)
51733 //IL_1bf7: Unknown result type (might be due to invalid IL or missing references)
51734 //IL_1bfc: Unknown result type (might be due to invalid IL or missing references)
51735 //IL_1bfe: Unknown result type (might be due to invalid IL or missing references)
51736 //IL_1c03: Unknown result type (might be due to invalid IL or missing references)
51737 //IL_1c08: Unknown result type (might be due to invalid IL or missing references)
51738 //IL_19c1: Unknown result type (might be due to invalid IL or missing references)
51739 //IL_19cb: Unknown result type (might be due to invalid IL or missing references)
51740 //IL_19d0: Unknown result type (might be due to invalid IL or missing references)
51741 //IL_19d4: Unknown result type (might be due to invalid IL or missing references)
51742 //IL_19d9: Unknown result type (might be due to invalid IL or missing references)
51743 //IL_19db: Unknown result type (might be due to invalid IL or missing references)
51744 //IL_19e0: Unknown result type (might be due to invalid IL or missing references)
51745 //IL_19e5: Unknown result type (might be due to invalid IL or missing references)
51746 //IL_1dd1: Unknown result type (might be due to invalid IL or missing references)
51747 //IL_1dd6: Unknown result type (might be due to invalid IL or missing references)
51748 //IL_1ddd: Unknown result type (might be due to invalid IL or missing references)
51749 //IL_1de5: Unknown result type (might be due to invalid IL or missing references)
51750 //IL_1df7: Unknown result type (might be due to invalid IL or missing references)
51751 //IL_1dfc: Unknown result type (might be due to invalid IL or missing references)
51752 //IL_1e06: Unknown result type (might be due to invalid IL or missing references)
51753 //IL_1e0b: Unknown result type (might be due to invalid IL or missing references)
51754 //IL_1e10: Unknown result type (might be due to invalid IL or missing references)
51755 //IL_1e12: Unknown result type (might be due to invalid IL or missing references)
51756 //IL_1e28: Unknown result type (might be due to invalid IL or missing references)
51757 //IL_1e35: Unknown result type (might be due to invalid IL or missing references)
51758 //IL_1e3b: Unknown result type (might be due to invalid IL or missing references)
51759 //IL_1e56: Unknown result type (might be due to invalid IL or missing references)
51760 //IL_1e60: Unknown result type (might be due to invalid IL or missing references)
51761 //IL_1e65: Unknown result type (might be due to invalid IL or missing references)
51762 //IL_1e8d: Unknown result type (might be due to invalid IL or missing references)
51763 //IL_1e94: Unknown result type (might be due to invalid IL or missing references)
51764 //IL_1ec1: Unknown result type (might be due to invalid IL or missing references)
51765 //IL_1ec7: Unknown result type (might be due to invalid IL or missing references)
51766 //IL_1ec9: Unknown result type (might be due to invalid IL or missing references)
51767 //IL_1ee4: Unknown result type (might be due to invalid IL or missing references)
51768 //IL_1ef3: Unknown result type (might be due to invalid IL or missing references)
51769 //IL_1ef8: Unknown result type (might be due to invalid IL or missing references)
51770 //IL_1f13: Unknown result type (might be due to invalid IL or missing references)
51771 //IL_1f2f: Unknown result type (might be due to invalid IL or missing references)
51772 //IL_1f39: Unknown result type (might be due to invalid IL or missing references)
51773 //IL_1f3e: Unknown result type (might be due to invalid IL or missing references)
51774 //IL_1f4e: Unknown result type (might be due to invalid IL or missing references)
51775 //IL_1f55: Unknown result type (might be due to invalid IL or missing references)
51776 //IL_1f5f: Unknown result type (might be due to invalid IL or missing references)
51777 //IL_1f64: Unknown result type (might be due to invalid IL or missing references)
51778 //IL_1f69: Unknown result type (might be due to invalid IL or missing references)
51779 //IL_1fa0: Unknown result type (might be due to invalid IL or missing references)
51780 //IL_1fa7: Unknown result type (might be due to invalid IL or missing references)
51781 //IL_1fd4: Unknown result type (might be due to invalid IL or missing references)
51782 //IL_1fda: Unknown result type (might be due to invalid IL or missing references)
51783 //IL_1fdc: Unknown result type (might be due to invalid IL or missing references)
51784 //IL_1ff7: Unknown result type (might be due to invalid IL or missing references)
51785 //IL_2006: Unknown result type (might be due to invalid IL or missing references)
51786 //IL_200b: Unknown result type (might be due to invalid IL or missing references)
51787 //IL_2026: Unknown result type (might be due to invalid IL or missing references)
51788 //IL_2042: Unknown result type (might be due to invalid IL or missing references)
51789 //IL_204c: Unknown result type (might be due to invalid IL or missing references)
51790 //IL_2051: Unknown result type (might be due to invalid IL or missing references)
51791 //IL_2061: Unknown result type (might be due to invalid IL or missing references)
51792 //IL_2068: Unknown result type (might be due to invalid IL or missing references)
51793 //IL_2072: Unknown result type (might be due to invalid IL or missing references)
51794 //IL_2077: Unknown result type (might be due to invalid IL or missing references)
51795 //IL_207c: Unknown result type (might be due to invalid IL or missing references)
51796 if (Main.dedServ)
51797 {
51798 return;
51799 }
51800 if (sItem.useStyle == 1)
51801 {
51802 if (sItem.type > -1 && Item.claw[sItem.type])
51803 {
51804 if ((double)itemAnimation < (double)itemAnimationMax * 0.333)
51805 {
51806 float num = 10f;
51807 itemLocation.X = position.X + (float)width * 0.5f + ((float)heldItemFrame.Width * 0.5f - num) * (float)direction;
51808 itemLocation.Y = position.Y + 26f + mountOffset;
51809 }
51810 else if ((double)itemAnimation < (double)itemAnimationMax * 0.666)
51811 {
51812 float num12 = 8f;
51813 itemLocation.X = position.X + (float)width * 0.5f + ((float)heldItemFrame.Width * 0.5f - num12) * (float)direction;
51814 num12 = 24f;
51815 itemLocation.Y = position.Y + num12 + mountOffset;
51816 }
51817 else
51818 {
51819 float num23 = 6f;
51820 itemLocation.X = position.X + (float)width * 0.5f - ((float)heldItemFrame.Width * 0.5f - num23) * (float)direction;
51821 num23 = 20f;
51822 itemLocation.Y = position.Y + num23 + mountOffset;
51823 }
51824 itemRotation = ((float)itemAnimation / (float)itemAnimationMax - 0.5f) * (float)(-direction) * 3.5f - (float)direction * 0.3f;
51825 }
51826 else
51827 {
51828 Vector2 zero = Vector2.Zero;
51829 if ((double)itemAnimation < (double)itemAnimationMax * 0.333)
51830 {
51831 float num33 = 10f;
51832 if (heldItemFrame.Width > 32)
51833 {
51834 num33 = 14f;
51835 }
51836 if (heldItemFrame.Width >= 52)
51837 {
51838 num33 = 24f;
51839 }
51840 if (heldItemFrame.Width >= 64)
51841 {
51842 num33 = 28f;
51843 }
51844 if (heldItemFrame.Width >= 92)
51845 {
51846 num33 = 38f;
51847 }
51848 if (sItem.type == 2330 || sItem.type == 2320 || sItem.type == 2341)
51849 {
51850 num33 += 8f;
51851 }
51852 if (sItem.type == 671)
51853 {
51854 num33 += 12f;
51855 }
51856 itemLocation.X = position.X + (float)width * 0.5f + ((float)heldItemFrame.Width * 0.5f - num33) * (float)direction;
51857 itemLocation.Y = position.Y + 24f + mountOffset;
51858 ((Vector2)(ref zero))._002Ector(-4f, 1f);
51859 }
51860 else if ((double)itemAnimation < (double)itemAnimationMax * 0.666)
51861 {
51862 float num35 = 10f;
51863 if (heldItemFrame.Width > 32)
51864 {
51865 num35 = 18f;
51866 }
51867 if (heldItemFrame.Width >= 52)
51868 {
51869 num35 = 24f;
51870 }
51871 if (heldItemFrame.Width >= 64)
51872 {
51873 num35 = 28f;
51874 }
51875 if (heldItemFrame.Width >= 92)
51876 {
51877 num35 = 38f;
51878 }
51879 if (sItem.type == 2330 || sItem.type == 2320 || sItem.type == 2341)
51880 {
51881 num35 += 4f;
51882 }
51883 if (sItem.type == 671)
51884 {
51885 num35 += 6f;
51886 }
51887 itemLocation.X = position.X + (float)width * 0.5f + ((float)heldItemFrame.Width * 0.5f - num35) * (float)direction;
51888 num35 = 10f;
51889 if (heldItemFrame.Height > 32)
51890 {
51891 num35 = 8f;
51892 }
51893 if (heldItemFrame.Height > 52)
51894 {
51895 num35 = 12f;
51896 }
51897 if (heldItemFrame.Height > 64)
51898 {
51899 num35 = 14f;
51900 }
51901 if (sItem.type == 2330 || sItem.type == 2320 || sItem.type == 2341)
51902 {
51903 num35 += 4f;
51904 }
51905 if (sItem.type == 671)
51906 {
51907 num35 += 10f;
51908 }
51909 itemLocation.Y = position.Y + num35 + mountOffset;
51910 ((Vector2)(ref zero))._002Ector(-6f, -4f);
51911 }
51912 else
51913 {
51914 float num36 = 6f;
51915 if (heldItemFrame.Width > 32)
51916 {
51917 num36 = 14f;
51918 }
51919 if (heldItemFrame.Width >= 48)
51920 {
51921 num36 = 18f;
51922 }
51923 if (heldItemFrame.Width >= 52)
51924 {
51925 num36 = 24f;
51926 }
51927 if (heldItemFrame.Width >= 64)
51928 {
51929 num36 = 28f;
51930 }
51931 if (heldItemFrame.Width >= 92)
51932 {
51933 num36 = 38f;
51934 }
51935 if (sItem.type == 2330 || sItem.type == 2320 || sItem.type == 2341)
51936 {
51937 num36 += 4f;
51938 }
51939 if (sItem.type == 671)
51940 {
51941 num36 += 8f;
51942 }
51943 itemLocation.X = position.X + (float)width * 0.5f - ((float)heldItemFrame.Width * 0.5f - num36) * (float)direction;
51944 num36 = 10f;
51945 if (heldItemFrame.Height > 32)
51946 {
51947 num36 = 10f;
51948 }
51949 if (heldItemFrame.Height > 52)
51950 {
51951 num36 = 12f;
51952 }
51953 if (heldItemFrame.Height > 64)
51954 {
51955 num36 = 14f;
51956 }
51957 if (sItem.type == 2330 || sItem.type == 2320 || sItem.type == 2341)
51958 {
51959 num36 += 4f;
51960 }
51961 if (sItem.type == 671)
51962 {
51963 num36 += 8f;
51964 }
51965 itemLocation.Y = position.Y + num36 + mountOffset;
51966 ((Vector2)(ref zero))._002Ector(4f, -2f);
51967 }
51968 if (sItem.type > -1 && ItemID.Sets.UsesBetterMeleeItemLocation[sItem.type])
51969 {
51971 }
51972 itemRotation = ((float)itemAnimation / (float)itemAnimationMax - 0.5f) * (float)(-direction) * 3.5f - (float)direction * 0.3f;
51973 }
51974 if (gravDir == -1f)
51975 {
51977 itemLocation.Y = position.Y + (float)height + (position.Y - itemLocation.Y);
51978 }
51979 }
51980 else if (sItem.useStyle == 7)
51981 {
51982 itemRotation = (float)itemAnimation / (float)itemAnimationMax * (float)direction * 2f + -1.4f * (float)direction;
51983 if ((double)itemAnimation < (double)itemAnimationMax * 0.5)
51984 {
51985 itemLocation.X = position.X + (float)width * 0.5f + ((float)heldItemFrame.Width * 0.5f - 9f - itemRotation * 12f * (float)direction) * (float)direction;
51986 itemLocation.Y = position.Y + 38f + itemRotation * (float)direction * 4f + mountOffset;
51987 }
51988 else
51989 {
51990 itemLocation.X = position.X + (float)width * 0.5f + ((float)heldItemFrame.Width * 0.5f - 9f - itemRotation * 16f * (float)direction) * (float)direction;
51991 itemLocation.Y = position.Y + 38f + itemRotation * (float)direction + mountOffset;
51992 }
51993 if (gravDir == -1f)
51994 {
51996 itemLocation.Y = position.Y + (float)height + (position.Y - itemLocation.Y);
51997 }
51998 }
51999 else if (sItem.useStyle == 9)
52000 {
52001 float num37 = (float)itemAnimation / (float)itemAnimationMax;
52002 float t = 1f - num37;
52003 t = Utils.GetLerpValue(0f, 0.7f, t, clamped: true);
52004 itemRotation = t * (float)(-direction) * 2f + 0.7f * (float)direction;
52005 itemLocation = MountedCenter + new Vector2((float)(direction * 10) * ((float)itemAnimation / (float)itemAnimationMax), 0f);
52006 float num38 = 8f;
52007 float num39 = 7f;
52008 float num2 = (float)Math.PI * 2f / 5f;
52009 float num3 = (0f - num2) * 0.5f + (1f - t) * num2;
52010 num3 += (float)Math.PI / 10f;
52011 Vector2 vector = base.Center + new Vector2((float)direction * num38, 0f) + num3.ToRotationVector2() * num39 * new Vector2((float)direction, 1f);
52013 float num4 = num3 - (float)Math.PI / 2f;
52014 if (direction == -1)
52015 {
52016 num4 = 0f - num4;
52017 }
52018 SetCompositeArmFront(enabled: true, CompositeArmStretchAmount.Full, num4);
52019 itemLocation = GetFrontHandPosition(CompositeArmStretchAmount.Full, num4);
52021 itemLocation *= MathHelper.Lerp(1.5f, 1.2f, t);
52023 itemLocation.X += (float)direction * MathHelper.Lerp(8f, 2f, t);
52024 if (gravDir == -1f)
52025 {
52027 itemLocation.Y = position.Y + (float)height + (position.Y - itemLocation.Y);
52028 }
52029 }
52030 else if (sItem.useStyle == 6)
52031 {
52032 float num5 = 1f - (float)itemAnimation / (float)itemAnimationMax;
52033 num5 *= 6f;
52034 if (num5 > 1f)
52035 {
52036 num5 = 1f;
52037 }
52038 itemRotation = (1f - num5) * (float)direction * 2f - 1.4f * (float)direction;
52039 if (num5 >= 0.5f)
52040 {
52041 itemLocation.X = position.X + (float)width * 0.5f + ((float)heldItemFrame.Width * 0.5f - 9f - itemRotation * 12f * (float)direction) * (float)direction;
52042 itemLocation.Y = position.Y + 38f + itemRotation * (float)direction * 4f + mountOffset;
52043 }
52044 else
52045 {
52046 itemLocation.X = position.X + (float)width * 0.5f + ((float)heldItemFrame.Width * 0.5f - 9f - itemRotation * 16f * (float)direction) * (float)direction;
52047 itemLocation.Y = position.Y + 38f + itemRotation * (float)direction + mountOffset;
52048 }
52049 if (gravDir == -1f)
52050 {
52052 itemLocation.Y = position.Y + (float)height + (position.Y - itemLocation.Y);
52053 }
52054 }
52055 else if (sItem.useStyle == 2)
52056 {
52057 itemLocation = MountedCenter + Utils.RotatedBy(new Vector2((float)(10 * direction), -10f), itemRotation + (float)Math.PI / 4f * (float)direction);
52058 float num6 = 1f - (float)itemAnimation / (float)itemAnimationMax;
52059 CompositeArmStretchAmount compositeArmStretchAmount = CompositeArmStretchAmount.Full;
52060 if (num6 > 0.25f && num6 <= 0.5f)
52061 {
52062 compositeArmStretchAmount = CompositeArmStretchAmount.ThreeQuarters;
52063 }
52064 if (num6 > 0.5f && num6 <= 0.75f)
52065 {
52066 compositeArmStretchAmount = CompositeArmStretchAmount.Quarter;
52067 }
52068 if (num6 > 0.75f && num6 <= 1f)
52069 {
52070 compositeArmStretchAmount = CompositeArmStretchAmount.None;
52071 }
52072 SetCompositeArmFront(enabled: true, compositeArmStretchAmount, -(float)Math.PI / 2f * (float)direction);
52073 SetCompositeArmBack(enabled: true, compositeArmStretchAmount, -(float)Math.PI / 2f * (float)direction);
52074 int num7 = 8;
52076 {
52077 case CompositeArmStretchAmount.Full:
52078 num7 = 8;
52079 break;
52080 case CompositeArmStretchAmount.ThreeQuarters:
52081 num7 = 6;
52082 break;
52083 case CompositeArmStretchAmount.Quarter:
52084 num7 = 4;
52085 break;
52086 case CompositeArmStretchAmount.None:
52087 num7 = 2;
52088 break;
52089 }
52090 itemLocation = MountedCenter + new Vector2((float)((num7 + 10 - heldItemFrame.Width / 2) * direction), (float)(heldItemFrame.Height / 2 - 4));
52091 if (gravDir == -1f)
52092 {
52094 itemLocation.Y = position.Y + (float)height + (position.Y - itemLocation.Y);
52095 }
52096 }
52097 else if (sItem.useStyle == 11)
52098 {
52099 float num8 = 1f - (float)itemAnimation / (float)itemAnimationMax;
52100 num8 *= 2f;
52101 CompositeArmStretchAmount compositeArmStretchAmount2 = CompositeArmStretchAmount.Full;
52102 if (num8 > 0.25f && num8 <= 0.5f)
52103 {
52104 compositeArmStretchAmount2 = CompositeArmStretchAmount.ThreeQuarters;
52105 }
52106 if (num8 > 0.5f && num8 <= 0.75f)
52107 {
52108 compositeArmStretchAmount2 = CompositeArmStretchAmount.Quarter;
52109 }
52110 if (num8 > 0.75f && num8 <= 1.25f)
52111 {
52112 compositeArmStretchAmount2 = CompositeArmStretchAmount.None;
52113 }
52114 if (num8 > 1.25f && num8 <= 1.5f)
52115 {
52116 compositeArmStretchAmount2 = CompositeArmStretchAmount.Quarter;
52117 }
52118 if (num8 > 1.5f && num8 <= 1.75f)
52119 {
52120 compositeArmStretchAmount2 = CompositeArmStretchAmount.ThreeQuarters;
52121 }
52122 if (num8 > 1.75f && num8 <= 2f)
52123 {
52124 compositeArmStretchAmount2 = CompositeArmStretchAmount.Full;
52125 }
52126 SetCompositeArmFront(enabled: true, compositeArmStretchAmount2, -(float)Math.PI / 4f * (float)direction);
52127 SetCompositeArmBack(enabled: true, CompositeArmStretchAmount.Full, -(float)Math.PI / 16f);
52128 int num9 = 8;
52130 {
52131 case CompositeArmStretchAmount.Full:
52132 num9 = 8;
52133 break;
52134 case CompositeArmStretchAmount.ThreeQuarters:
52135 num9 = 6;
52136 break;
52137 case CompositeArmStretchAmount.Quarter:
52138 num9 = 4;
52139 break;
52140 case CompositeArmStretchAmount.None:
52141 num9 = 2;
52142 break;
52143 }
52144 itemLocation = MountedCenter + new Vector2((float)((num9 + 22 - heldItemFrame.Width / 2) * direction), (float)(heldItemFrame.Height / 2 - 8));
52145 if (gravDir == -1f)
52146 {
52148 itemLocation.Y = position.Y + (float)height + (position.Y - itemLocation.Y);
52149 }
52150 }
52151 else if (sItem.useStyle == 3)
52152 {
52153 if ((double)itemAnimation > (double)itemAnimationMax * 0.666)
52154 {
52155 itemLocation.X = -1000f;
52156 itemLocation.Y = -1000f;
52157 itemRotation = -1.3f * (float)direction;
52158 }
52159 else
52160 {
52161 itemLocation.X = position.X + (float)width * 0.5f + ((float)heldItemFrame.Width * 0.5f - 4f) * (float)direction;
52162 itemLocation.Y = position.Y + 24f + mountOffset;
52163 float num10 = (float)itemAnimation / (float)itemAnimationMax * (float)heldItemFrame.Width * (float)direction * GetAdjustedItemScale(sItem) * 1.2f - (float)(10 * direction);
52164 if (num10 > -4f && direction == -1)
52165 {
52166 num10 = -8f;
52167 }
52168 if (num10 < 4f && direction == 1)
52169 {
52170 num10 = 8f;
52171 }
52172 itemLocation.X -= num10;
52173 itemRotation = 0.8f * (float)direction;
52174 if (sItem.type == 946 || sItem.type == 4707)
52175 {
52176 itemLocation.X -= 6 * direction;
52177 }
52178 }
52179 if (gravDir == -1f)
52180 {
52182 itemLocation.Y = position.Y + (float)height + (position.Y - itemLocation.Y);
52183 }
52184 }
52185 else if (sItem.useStyle == 4)
52186 {
52187 int num11 = 0;
52188 int num13 = 0;
52189 if (sItem.type == 3601)
52190 {
52191 num11 = 10;
52192 }
52193 if (sItem.type == 5114)
52194 {
52195 num11 = 10;
52196 num13 = -2;
52197 }
52198 if (sItem.type == 5120)
52199 {
52200 num11 = 10;
52201 }
52202 itemRotation = 0f;
52203 itemLocation.X = position.X + (float)width * 0.5f + ((float)heldItemFrame.Width * 0.5f - 9f - itemRotation * 14f * (float)direction - 4f - (float)num11) * (float)direction;
52204 itemLocation.Y = position.Y + (float)heldItemFrame.Height * 0.5f + 4f + mountOffset + (float)num13;
52205 if (gravDir == -1f)
52206 {
52208 itemLocation.Y = position.Y + (float)height + (position.Y - itemLocation.Y);
52209 }
52210 }
52211 else if (sItem.useStyle == 5)
52212 {
52213 if (sItem.type == 3779)
52214 {
52215 itemRotation = 0f;
52216 itemLocation.X = base.Center.X + (float)(6 * direction);
52217 itemLocation.Y = MountedCenter.Y + 6f;
52218 }
52219 else if (sItem.type == 4262)
52220 {
52221 itemRotation = 0f;
52222 itemLocation.X = base.Center.X + (float)(-heldItemFrame.Width) * 0.5f + (float)(direction * -6);
52223 itemLocation.Y = MountedCenter.Y - 6f;
52224 if (Main.rand.Next(20) == 0)
52225 {
52226 int num14 = Main.rand.Next(570, 573);
52227 Vector2 vector4 = default(Vector2);
52228 ((Vector2)(ref vector4))._002Ector(base.Center.X + (float)(direction * 30) - 6f, itemLocation.Y - 30f);
52229 Vector2 vector5 = default(Vector2);
52230 ((Vector2)(ref vector5))._002Ector(Main.WindForVisuals * 2f + (float)direction * 0.3f, -0.5f);
52231 vector5.X *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
52232 vector5.Y *= 1f + (float)Main.rand.Next(-50, 51) * 0.01f;
52233 if (num14 == 572)
52234 {
52235 vector4.X -= 8f;
52236 }
52237 if (num14 == 571)
52238 {
52239 vector4.X -= 4f;
52240 }
52241 Gore.NewGore(vector4, vector5, num14, 0.8f);
52242 }
52243 }
52244 else if (Item.staff[sItem.type])
52245 {
52246 float num15 = 6f;
52247 if (sItem.type == 3476)
52248 {
52249 num15 = 14f;
52250 }
52252 itemLocation += (itemRotation.ToRotationVector2() * num15 * (float)direction).Floor();
52253 }
52254 else
52255 {
52256 itemLocation.X = position.X + (float)width * 0.5f - (float)heldItemFrame.Width * 0.5f - (float)(direction * 2);
52257 itemLocation.Y = MountedCenter.Y - (float)heldItemFrame.Height * 0.5f;
52258 }
52259 if (sItem.type != 5065)
52260 {
52261 return;
52262 }
52263 _ = itemRotation;
52264 Vector2 vector6 = itemLocation + itemRotation.ToRotationVector2() * 38f * (float)direction;
52265 Vector2 vector7 = itemRotation.ToRotationVector2() * 5f * (float)direction;
52266 if (itemAnimation % 2 == 0)
52267 {
52268 Color newColor = Main.hslToRgb(0.92f, 1f, 0.5f);
52269 int num16 = Dust.NewDust(vector6, 0, 0, 267, 0f, 0f, 0, newColor);
52270 Main.dust[num16].position = vector6 - velocity + Main.rand.NextVector2Circular(10f, 10f);
52271 Main.dust[num16].noGravity = true;
52272 Main.dust[num16].scale = 0.3f;
52273 Main.dust[num16].fadeIn = Main.rand.NextFloat() * 1.2f;
52274 Main.dust[num16].velocity = Main.rand.NextVector2Circular(1f, 1f) + velocity;
52275 if (num16 != 6000)
52276 {
52277 Dust dust5 = Dust.CloneDust(num16);
52278 dust5.scale /= 2f;
52279 dust5.fadeIn *= 0.85f;
52280 dust5.color = new Color(255, 255, 255, 255);
52281 }
52282 }
52283 if (itemAnimation % 4 == 0)
52284 {
52286 {
52287 PositionInWorld = vector6,
52288 MovementVector = vector7 * 0.1f + Main.rand.NextVector2Circular(2f, 2f) + velocity
52289 }, whoAmI);
52290 }
52291 }
52292 else if (sItem.useStyle == 13)
52293 {
52294 int useAnimation = itemAnimationMax;
52295 if (itemTimeMax != 0)
52296 {
52297 useAnimation = itemTimeMax;
52298 }
52299 if (useAnimation == 0)
52300 {
52301 useAnimation = sItem.useAnimation;
52302 }
52303 float num17 = 1f - (float)(itemAnimation % useAnimation) / (float)useAnimation;
52304 CompositeArmStretchAmount stretch = CompositeArmStretchAmount.Quarter;
52305 if (num17 > 0.33f && num17 <= 0.66f)
52306 {
52307 stretch = CompositeArmStretchAmount.ThreeQuarters;
52308 }
52309 if (num17 > 0.66f && num17 <= 1f)
52310 {
52311 stretch = CompositeArmStretchAmount.Full;
52312 }
52313 float rotation = itemRotation * Directions.Y - (float)Math.PI / 2f * (float)direction;
52314 SetCompositeArmFront(enabled: true, stretch, rotation);
52315 }
52316 else if (sItem.useStyle == 8)
52317 {
52318 Projectile projectile = null;
52319 if (ownedProjectileCounts[722] > 0)
52320 {
52321 for (int i = 0; i < 1000; i++)
52322 {
52323 Projectile projectile2 = Main.projectile[i];
52324 if (projectile2.active && projectile2.owner == whoAmI && projectile2.type == 722)
52325 {
52326 projectile = projectile2;
52327 break;
52328 }
52329 }
52330 }
52331 float num18 = 1f;
52332 if (projectile != null)
52333 {
52334 num18 = MathHelper.Lerp(0.6f, 1f, Utils.GetLerpValue(0f, 800f, Vector2.Distance(MountedCenter, projectile.Center), clamped: true));
52335 }
52336 num18 = 1f;
52337 if (itemAnimation >= sItem.useAnimation - 1 && itemAnimation <= sItem.useAnimation)
52338 {
52339 float num19 = Utils.ToRotation(new Vector2((float)(10 * direction), 10f)) + (float)Math.PI / 4f;
52341 if (direction == -1)
52342 {
52343 itemRotation += (float)Math.PI / 2f;
52344 }
52345 _ = (float)itemAnimation / (float)itemAnimationMax;
52346 CompositeArmStretchAmount stretch2 = CompositeArmStretchAmount.Full;
52347 CompositeArmStretchAmount stretch3 = CompositeArmStretchAmount.ThreeQuarters;
52348 float num20 = -(float)Math.PI / 10f;
52349 if (direction == -1)
52350 {
52351 num20 *= -1f;
52352 }
52353 float num21 = itemRotation - (float)Math.PI / 4f + (float)Math.PI;
52354 if (direction == 1)
52355 {
52356 num21 += (float)Math.PI / 2f;
52357 }
52358 float rotation2 = num21 + num20;
52359 float rotation3 = num21 - num20;
52360 Vector2 vector8 = (num21 + (float)Math.PI / 2f).ToRotationVector2() * -2f;
52361 itemLocation = (MountedCenter + vector8).Floor();
52364 }
52365 else if (itemAnimation > sItem.useAnimation)
52366 {
52367 float num22 = 0f - Utils.GetLerpValue(itemAnimationMax, itemAnimationMax * 5, itemAnimation, clamped: true);
52368 num22 *= num18;
52369 CompositeArmStretchAmount stretch4 = CompositeArmStretchAmount.Full;
52370 CompositeArmStretchAmount stretch5 = CompositeArmStretchAmount.ThreeQuarters;
52371 float num24 = -(float)Math.PI / 10f;
52372 num24 *= 0f - num22;
52373 itemRotation = (float)Math.PI / 2f * (float)(-direction) + (float)Math.PI + (float)Math.PI * num22 * (float)(-direction);
52374 float num40 = -(float)Math.PI / 5f * (float)direction;
52375 if (direction < 1)
52376 {
52377 num24 *= -1f;
52378 }
52379 float rotation4 = num40 + num24;
52380 float rotation5 = num40 - num24;
52381 Vector2 vector9 = default(Vector2);
52382 ((Vector2)(ref vector9))._002Ector((float)(10 * direction), num22 * -6f);
52383 itemLocation = (MountedCenter + vector9).Floor();
52386 }
52387 else
52388 {
52389 float num25 = 1f - (float)itemAnimation / (float)itemAnimationMax;
52390 CompositeArmStretchAmount stretch6 = CompositeArmStretchAmount.Full;
52391 CompositeArmStretchAmount stretch7 = CompositeArmStretchAmount.ThreeQuarters;
52392 if (num25 > 0.6f)
52393 {
52394 stretch7 = CompositeArmStretchAmount.Quarter;
52395 }
52396 float num26 = -(float)Math.PI / 10f;
52397 if (direction == -1)
52398 {
52399 num26 *= -1f;
52400 }
52401 num26 *= 1f - num25 * 2.2f;
52402 itemRotation = (num25 * (float)Math.PI * 1.6f + -(float)Math.PI / 2f) * num18 * (float)(-direction) + (float)Math.PI;
52403 float num27 = (num25 * (float)Math.PI * 0.6f + (float)Math.PI * 2f / 5f) * (float)(-direction) + (float)Math.PI - (float)Math.PI / 4f + (float)Math.PI;
52404 if (direction == 1)
52405 {
52406 num27 += (float)Math.PI / 2f;
52407 }
52408 float rotation6 = num27 + num26;
52409 float rotation7 = num27 - num26;
52410 Vector2 vector10 = (num27 + (float)Math.PI / 2f).ToRotationVector2() * (-5f * (1f - num25));
52411 itemLocation = (MountedCenter + vector10).Floor();
52414 }
52416 }
52417 else if (sItem.useStyle == 12)
52418 {
52419 itemRotation = 0f;
52420 itemLocation.X = MountedCenter.X - (float)(8 * direction);
52421 itemLocation.Y = position.Y + 40f + mountOffset;
52422 Vector2 vector11 = Main.OffsetsPlayerHeadgear[bodyFrame.Y / 56];
52424 float num28 = itemAnimationMax;
52425 if (num28 == 0f)
52426 {
52427 num28 = sItem.useAnimation;
52428 }
52429 float num29 = 1f - (float)itemAnimation / num28;
52430 num29 *= 2f;
52431 float num30 = (float)Math.Cos(num29 * (float)Math.PI) * 0.2f;
52432 CompositeArmStretchAmount compositeArmStretchAmount3 = CompositeArmStretchAmount.Full;
52433 if (num29 > 0.25f && num29 <= 0.5f)
52434 {
52435 compositeArmStretchAmount3 = CompositeArmStretchAmount.ThreeQuarters;
52436 }
52437 if (num29 > 0.5f && num29 <= 0.75f)
52438 {
52439 compositeArmStretchAmount3 = CompositeArmStretchAmount.Quarter;
52440 }
52441 if (num29 > 0.75f && num29 <= 1.25f)
52442 {
52443 compositeArmStretchAmount3 = CompositeArmStretchAmount.None;
52444 }
52445 if (num29 > 1.25f && num29 <= 1.5f)
52446 {
52447 compositeArmStretchAmount3 = CompositeArmStretchAmount.Quarter;
52448 }
52449 if (num29 > 1.5f && num29 <= 1.75f)
52450 {
52451 compositeArmStretchAmount3 = CompositeArmStretchAmount.ThreeQuarters;
52452 }
52453 if (num29 > 1.75f && num29 <= 2f)
52454 {
52455 compositeArmStretchAmount3 = CompositeArmStretchAmount.Full;
52456 }
52457 SetCompositeArmFront(enabled: true, compositeArmStretchAmount3, (-(float)Math.PI / 4f + num30) * (float)direction);
52458 CompositeArmStretchAmount stretch8 = CompositeArmStretchAmount.Quarter;
52459 SetCompositeArmBack(enabled: true, stretch8, (-(float)Math.PI / 4f - num30 * 0.5f) * (float)direction);
52461 if (sItem.type != 4715 || compositeArmStretchAmount3 != CompositeArmStretchAmount.ThreeQuarters)
52462 {
52463 return;
52464 }
52465 Vector2 vector2 = itemLocation + new Vector2((float)heldItemFrame.Width, (float)(-heldItemFrame.Height)) * new Vector2((float)direction, gravDir) * 0.3f;
52466 Dust dust6 = Dust.NewDustPerfect(vector2, 228, Main.rand.NextVector2CircularEdge(1f, 1f));
52467 dust6.noGravity = true;
52468 dust6.noLight = true;
52469 dust6.velocity *= 2f;
52470 float num31 = 0.5f;
52471 for (float num32 = 0f; num32 < 1f; num32 += 0.5f)
52472 {
52473 if (Main.rand.Next(3) == 0)
52474 {
52475 Dust dust3 = Dust.NewDustPerfect(vector2, 278, Vector2.UnitY.RotatedBy(num32 * ((float)Math.PI * 2f) + Main.rand.NextFloat() * num31 - num31 * 0.5f + (float)Math.PI / 2f) * (2f + Main.rand.NextFloat() * 1f), 150, Color.Lerp(Color.White, Color.HotPink, Main.rand.NextFloat() * 0.5f + 0.5f), 0.45f);
52476 dust3.noGravity = true;
52477 dust3.velocity *= 0.5f;
52478 dust3.customData = this;
52479 dust3.position += dust3.velocity * 6f;
52480 }
52481 }
52482 for (float num34 = 0f; num34 < 1f; num34 += 0.5f)
52483 {
52484 if (Main.rand.Next(3) == 0)
52485 {
52486 Dust dust4 = Dust.NewDustPerfect(vector2, 278, Vector2.UnitY.RotatedBy(num34 * ((float)Math.PI * 2f) + Main.rand.NextFloat() * num31 - num31 * 0.5f + (float)Math.PI / 2f) * (0.5f + Main.rand.NextFloat() * 1f), 150, Color.Lerp(Color.White, Color.Gold, Main.rand.NextFloat() * 0.5f + 0.5f), 0.45f);
52487 dust4.noGravity = true;
52488 dust4.velocity *= 0.5f;
52489 dust4.customData = this;
52490 dust4.position += dust4.velocity * 6f;
52491 }
52492 }
52493 }
52494 else if (sItem.useStyle == 14 && !Main.dedServ)
52495 {
52496 itemRotation = 0f;
52497 itemLocation.X = base.Center.X + (float)(6 * direction);
52498 itemLocation.Y = position.Y + 40f + mountOffset - 8f;
52499 Vector2 vector3 = Main.OffsetsPlayerHeadgear[bodyFrame.Y / 56];
52501 CompositeArmStretchAmount stretch9 = CompositeArmStretchAmount.Full;
52502 SetCompositeArmBack(enabled: true, stretch9, (float)Math.PI * -3f / 4f * (float)direction);
52504 }
52505 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
static void RequestParticleSpawn(bool clientOnly, ParticleOrchestraType type, ParticleOrchestraSettings settings, int? overrideInvokingPlayerIndex=null)
static bool[] UsesBetterMeleeItemLocation
If true for a given item type (F:Terraria.Item.type) and if F:Terraria.Item.useStyle == F:Terraria....
Definition ItemID.cs:129
int itemAnimationMax
Definition Player.cs:3127
float itemRotation
Definition Player.cs:1664
void SetCompositeArmBack(bool enabled, CompositeArmStretchAmount stretch, float rotation)
Definition Player.cs:4871
Vector2 GetFrontHandPosition(CompositeArmStretchAmount stretch, float rotation)
Definition Player.cs:51433
Vector2 MountedCenter
Returns the player's center adjusted for mount and step stool usage. Typically used in conjunction wi...
Definition Player.cs:3692
Vector2 Directions
Definition Player.cs:4189
void FlipItemLocationAndRotationForGravity()
Definition Player.cs:52507
float GetAdjustedItemScale(Item item)
Used to determine what the overall scale of an item should be. M:Terraria.ModLoader....
Definition Player.cs:41782
void SetCompositeArmFront(bool enabled, CompositeArmStretchAmount stretch, float rotation)
Definition Player.cs:4862
Vector2 itemLocation
Definition Player.cs:1670
int[] ownedProjectileCounts
Provides efficient access to the number of projectiles of the specified type owned by this player cur...
Definition Player.cs:3105

References Terraria.Entity.Center, Terraria.Item.claw, Terraria.Dust.CloneDust(), Terraria.Main.dedServ, Terraria.Entity.direction, Terraria.Player.Directions, Terraria.Main.dust, Terraria.Player.FlipItemLocationAndRotationForGravity(), Terraria.Player.GetAdjustedItemScale(), Terraria.Player.GetFrontHandPosition(), Terraria.Utils.GetLerpValue(), Terraria.Player.gravDir, Terraria.Entity.height, Terraria.Main.hslToRgb(), Terraria.Player.itemAnimation, Terraria.Player.itemAnimationMax, Terraria.Player.itemLocation, Terraria.Player.itemRotation, Terraria.Player.itemTimeMax, Terraria.Player.MountedCenter, Terraria.Dust.NewDust(), Terraria.Dust.NewDustPerfect(), Terraria.Gore.NewGore(), Terraria.Main.OffsetsPlayerHeadgear, Terraria.Player.ownedProjectileCounts, Terraria.Entity.position, Terraria.Main.projectile, Terraria.Main.rand, Terraria.GameContent.Drawing.ParticleOrchestrator.RequestParticleSpawn(), Terraria.Utils.RotatedBy(), Terraria.Player.SetCompositeArmBack(), Terraria.Player.SetCompositeArmFront(), Terraria.Item.staff, Terraria.Utils.ToRotation(), Terraria.ID.ItemID.Sets.UsesBetterMeleeItemLocation, Terraria.Entity.velocity, Terraria.Entity.whoAmI, Terraria.Entity.width, and Terraria.Main.WindForVisuals.

Referenced by Terraria.Player.ItemCheck_ApplyUseStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: