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

◆ AdjustmentsForWolfMount()

void Terraria.DataStructures.PlayerDrawSet.AdjustmentsForWolfMount ( )
inlineprivate

Definition at line 2773 of file PlayerDrawSet.cs.

2774 {
2775 //IL_002d: Unknown result type (might be due to invalid IL or missing references)
2776 //IL_0032: Unknown result type (might be due to invalid IL or missing references)
2777 //IL_0033: Unknown result type (might be due to invalid IL or missing references)
2778 //IL_0038: Unknown result type (might be due to invalid IL or missing references)
2779 //IL_010a: Unknown result type (might be due to invalid IL or missing references)
2780 //IL_0123: Unknown result type (might be due to invalid IL or missing references)
2781 //IL_0128: Unknown result type (might be due to invalid IL or missing references)
2782 //IL_012d: Unknown result type (might be due to invalid IL or missing references)
2783 //IL_013f: Unknown result type (might be due to invalid IL or missing references)
2784 //IL_018d: Unknown result type (might be due to invalid IL or missing references)
2785 //IL_01a6: Unknown result type (might be due to invalid IL or missing references)
2786 //IL_01ab: Unknown result type (might be due to invalid IL or missing references)
2787 //IL_01b0: Unknown result type (might be due to invalid IL or missing references)
2788 //IL_0177: Unknown result type (might be due to invalid IL or missing references)
2789 //IL_015c: Unknown result type (might be due to invalid IL or missing references)
2790 //IL_017c: Unknown result type (might be due to invalid IL or missing references)
2791 //IL_0181: Unknown result type (might be due to invalid IL or missing references)
2792 //IL_01c9: Unknown result type (might be due to invalid IL or missing references)
2793 //IL_01e2: Unknown result type (might be due to invalid IL or missing references)
2794 //IL_01e7: Unknown result type (might be due to invalid IL or missing references)
2795 //IL_01ec: Unknown result type (might be due to invalid IL or missing references)
2796 //IL_0233: Unknown result type (might be due to invalid IL or missing references)
2797 //IL_0248: Unknown result type (might be due to invalid IL or missing references)
2798 //IL_024d: Unknown result type (might be due to invalid IL or missing references)
2799 //IL_0252: Unknown result type (might be due to invalid IL or missing references)
2800 //IL_0205: Unknown result type (might be due to invalid IL or missing references)
2801 //IL_021e: Unknown result type (might be due to invalid IL or missing references)
2802 //IL_0223: Unknown result type (might be due to invalid IL or missing references)
2803 //IL_0228: Unknown result type (might be due to invalid IL or missing references)
2804 //IL_025e: Unknown result type (might be due to invalid IL or missing references)
2805 //IL_0276: Unknown result type (might be due to invalid IL or missing references)
2806 //IL_027b: Unknown result type (might be due to invalid IL or missing references)
2807 //IL_0280: Unknown result type (might be due to invalid IL or missing references)
2808 //IL_02b4: Unknown result type (might be due to invalid IL or missing references)
2809 //IL_02b5: Unknown result type (might be due to invalid IL or missing references)
2810 //IL_028b: Unknown result type (might be due to invalid IL or missing references)
2811 //IL_02a3: Unknown result type (might be due to invalid IL or missing references)
2812 //IL_02a8: Unknown result type (might be due to invalid IL or missing references)
2813 //IL_02ad: Unknown result type (might be due to invalid IL or missing references)
2814 hideEntirePlayer = true;
2815 weaponDrawOrder = WeaponDrawOrder.BehindBackArm;
2816 Vector2 vector = default(Vector2);
2817 ((Vector2)(ref vector))._002Ector((float)(10 + drawPlayer.direction * 14), 12f);
2818 Vector2 vector2 = Position + vector;
2819 Position.X -= drawPlayer.direction * 10;
2820 bool flag = drawPlayer.heldProj != -1 || heldItem.useStyle == 5;
2821 bool num = heldItem.useStyle == 2;
2822 bool flag2 = heldItem.useStyle == 9;
2823 bool flag3 = drawPlayer.itemAnimation > 0;
2824 bool flag4 = heldItem.fishingPole != 0;
2825 bool flag5 = heldItem.useStyle == 14;
2826 bool flag6 = heldItem.useStyle == 8;
2827 bool flag7 = heldItem.holdStyle == 1;
2828 bool flag8 = heldItem.holdStyle == 2;
2829 bool flag9 = heldItem.holdStyle == 5;
2830 if (num)
2831 {
2832 ItemLocation += new Vector2((float)(drawPlayer.direction * 14), -4f);
2833 }
2834 else if (!flag4)
2835 {
2836 if (flag2)
2837 {
2838 ItemLocation += (flag3 ? new Vector2((float)(drawPlayer.direction * 18), -4f) : new Vector2((float)(drawPlayer.direction * 14), -18f));
2839 }
2840 else if (flag9)
2841 {
2842 ItemLocation += new Vector2((float)(drawPlayer.direction * 17), -8f);
2843 }
2844 else if (flag7 && drawPlayer.itemAnimation == 0)
2845 {
2846 ItemLocation += new Vector2((float)(drawPlayer.direction * 14), -6f);
2847 }
2848 else if (flag8 && drawPlayer.itemAnimation == 0)
2849 {
2850 ItemLocation += new Vector2((float)(drawPlayer.direction * 17), 4f);
2851 }
2852 else if (flag6)
2853 {
2854 ItemLocation = vector2 + new Vector2((float)(drawPlayer.direction * 12), 2f);
2855 }
2856 else if (flag5)
2857 {
2858 ItemLocation += new Vector2((float)(drawPlayer.direction * 5), -2f);
2859 }
2860 else if (flag)
2861 {
2862 ItemLocation += new Vector2((float)(drawPlayer.direction * 4), -4f);
2863 }
2864 else
2865 {
2867 }
2868 }
2869 }

References Terraria.Entity.direction, Terraria.DataStructures.PlayerDrawSet.drawPlayer, Terraria.DataStructures.PlayerDrawSet.hideEntirePlayer, Terraria.Player.itemAnimation, Terraria.DataStructures.PlayerDrawSet.ItemLocation, Terraria.DataStructures.PlayerDrawSet.Position, and Terraria.DataStructures.PlayerDrawSet.weaponDrawOrder.

Referenced by Terraria.DataStructures.PlayerDrawSet.BoringSetup_2().

+ Here is the caller graph for this function: