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

◆ PlayerFrame()

void Terraria.Player.PlayerFrame ( )
inline

Definition at line 34633 of file Player.cs.

34634 {
34635 //IL_1635: Unknown result type (might be due to invalid IL or missing references)
34636 //IL_16ce: Unknown result type (might be due to invalid IL or missing references)
34637 //IL_0714: Unknown result type (might be due to invalid IL or missing references)
34638 //IL_0719: Unknown result type (might be due to invalid IL or missing references)
34639 //IL_1d83: Unknown result type (might be due to invalid IL or missing references)
34640 //IL_0950: Unknown result type (might be due to invalid IL or missing references)
34641 //IL_095f: Unknown result type (might be due to invalid IL or missing references)
34642 //IL_0893: Unknown result type (might be due to invalid IL or missing references)
34643 //IL_08bd: Unknown result type (might be due to invalid IL or missing references)
34644 //IL_08f7: Unknown result type (might be due to invalid IL or missing references)
34645 //IL_0901: Unknown result type (might be due to invalid IL or missing references)
34646 //IL_0906: Unknown result type (might be due to invalid IL or missing references)
34647 //IL_074a: Unknown result type (might be due to invalid IL or missing references)
34648 //IL_0759: Unknown result type (might be due to invalid IL or missing references)
34649 //IL_075e: Unknown result type (might be due to invalid IL or missing references)
34650 //IL_0763: Unknown result type (might be due to invalid IL or missing references)
34651 //IL_076a: Unknown result type (might be due to invalid IL or missing references)
34652 //IL_0781: Unknown result type (might be due to invalid IL or missing references)
34653 //IL_0787: Unknown result type (might be due to invalid IL or missing references)
34654 //IL_1a91: Unknown result type (might be due to invalid IL or missing references)
34655 //IL_1ebc: Unknown result type (might be due to invalid IL or missing references)
34656 //IL_1d58: Unknown result type (might be due to invalid IL or missing references)
34657 //IL_1a62: Unknown result type (might be due to invalid IL or missing references)
34658 //IL_1a3d: Unknown result type (might be due to invalid IL or missing references)
34659 //IL_09eb: Unknown result type (might be due to invalid IL or missing references)
34660 //IL_0a0f: Unknown result type (might be due to invalid IL or missing references)
34661 //IL_0a15: Unknown result type (might be due to invalid IL or missing references)
34662 //IL_1c5c: Unknown result type (might be due to invalid IL or missing references)
34663 //IL_1a11: Unknown result type (might be due to invalid IL or missing references)
34664 //IL_0ad3: Unknown result type (might be due to invalid IL or missing references)
34665 //IL_0af7: Unknown result type (might be due to invalid IL or missing references)
34666 //IL_0afd: Unknown result type (might be due to invalid IL or missing references)
34667 //IL_18b2: Unknown result type (might be due to invalid IL or missing references)
34668 //IL_18db: Unknown result type (might be due to invalid IL or missing references)
34669 //IL_190f: Unknown result type (might be due to invalid IL or missing references)
34670 //IL_1915: Unknown result type (might be due to invalid IL or missing references)
34671 //IL_192c: Unknown result type (might be due to invalid IL or missing references)
34672 //IL_1936: Unknown result type (might be due to invalid IL or missing references)
34673 //IL_193b: Unknown result type (might be due to invalid IL or missing references)
34674 //IL_1753: Unknown result type (might be due to invalid IL or missing references)
34675 //IL_177c: Unknown result type (might be due to invalid IL or missing references)
34676 //IL_17b0: Unknown result type (might be due to invalid IL or missing references)
34677 //IL_17b6: Unknown result type (might be due to invalid IL or missing references)
34678 //IL_17cd: Unknown result type (might be due to invalid IL or missing references)
34679 //IL_17d7: Unknown result type (might be due to invalid IL or missing references)
34680 //IL_17dc: Unknown result type (might be due to invalid IL or missing references)
34681 //IL_195f: Unknown result type (might be due to invalid IL or missing references)
34682 //IL_1988: Unknown result type (might be due to invalid IL or missing references)
34683 //IL_19bc: Unknown result type (might be due to invalid IL or missing references)
34684 //IL_19c2: Unknown result type (might be due to invalid IL or missing references)
34685 //IL_19d9: Unknown result type (might be due to invalid IL or missing references)
34686 //IL_19e3: Unknown result type (might be due to invalid IL or missing references)
34687 //IL_19e8: Unknown result type (might be due to invalid IL or missing references)
34688 //IL_1800: Unknown result type (might be due to invalid IL or missing references)
34689 //IL_1829: Unknown result type (might be due to invalid IL or missing references)
34690 //IL_185d: Unknown result type (might be due to invalid IL or missing references)
34691 //IL_1863: Unknown result type (might be due to invalid IL or missing references)
34692 //IL_187a: Unknown result type (might be due to invalid IL or missing references)
34693 //IL_1884: Unknown result type (might be due to invalid IL or missing references)
34694 //IL_1889: Unknown result type (might be due to invalid IL or missing references)
34695 //IL_0ba6: Unknown result type (might be due to invalid IL or missing references)
34696 //IL_0bca: Unknown result type (might be due to invalid IL or missing references)
34697 //IL_0bd0: Unknown result type (might be due to invalid IL or missing references)
34698 //IL_0c07: Unknown result type (might be due to invalid IL or missing references)
34699 //IL_0c11: Unknown result type (might be due to invalid IL or missing references)
34700 //IL_0c16: Unknown result type (might be due to invalid IL or missing references)
34701 //IL_0c24: Unknown result type (might be due to invalid IL or missing references)
34702 //IL_0c2a: Unknown result type (might be due to invalid IL or missing references)
34703 //IL_0c34: Unknown result type (might be due to invalid IL or missing references)
34704 //IL_0c39: Unknown result type (might be due to invalid IL or missing references)
34705 //IL_0c3e: Unknown result type (might be due to invalid IL or missing references)
34706 //IL_0e5c: Unknown result type (might be due to invalid IL or missing references)
34707 //IL_0e7d: Unknown result type (might be due to invalid IL or missing references)
34708 //IL_0e83: Unknown result type (might be due to invalid IL or missing references)
34709 //IL_10fe: Unknown result type (might be due to invalid IL or missing references)
34710 //IL_111f: Unknown result type (might be due to invalid IL or missing references)
34711 //IL_1125: Unknown result type (might be due to invalid IL or missing references)
34712 //IL_114e: Unknown result type (might be due to invalid IL or missing references)
34713 //IL_1158: Unknown result type (might be due to invalid IL or missing references)
34714 //IL_115d: Unknown result type (might be due to invalid IL or missing references)
34715 //IL_0d03: Unknown result type (might be due to invalid IL or missing references)
34716 //IL_0d23: Unknown result type (might be due to invalid IL or missing references)
34717 //IL_0d29: Unknown result type (might be due to invalid IL or missing references)
34718 //IL_267b: Unknown result type (might be due to invalid IL or missing references)
34719 //IL_0fa8: Unknown result type (might be due to invalid IL or missing references)
34720 //IL_0fc8: Unknown result type (might be due to invalid IL or missing references)
34721 //IL_0fce: Unknown result type (might be due to invalid IL or missing references)
34722 //IL_1291: Unknown result type (might be due to invalid IL or missing references)
34723 //IL_12b2: Unknown result type (might be due to invalid IL or missing references)
34724 //IL_12b8: Unknown result type (might be due to invalid IL or missing references)
34725 //IL_12e1: Unknown result type (might be due to invalid IL or missing references)
34726 //IL_12eb: Unknown result type (might be due to invalid IL or missing references)
34727 //IL_12f0: Unknown result type (might be due to invalid IL or missing references)
34728 //IL_27f2: Unknown result type (might be due to invalid IL or missing references)
34729 //IL_27fe: Unknown result type (might be due to invalid IL or missing references)
34730 //IL_2929: Unknown result type (might be due to invalid IL or missing references)
34731 //IL_2c25: Unknown result type (might be due to invalid IL or missing references)
34732 //IL_2968: Unknown result type (might be due to invalid IL or missing references)
34733 //IL_1390: Unknown result type (might be due to invalid IL or missing references)
34734 //IL_13ac: Unknown result type (might be due to invalid IL or missing references)
34735 //IL_13b2: Unknown result type (might be due to invalid IL or missing references)
34736 //IL_13e9: Unknown result type (might be due to invalid IL or missing references)
34737 //IL_13f3: Unknown result type (might be due to invalid IL or missing references)
34738 //IL_13f8: Unknown result type (might be due to invalid IL or missing references)
34739 //IL_1518: Unknown result type (might be due to invalid IL or missing references)
34740 //IL_1535: Unknown result type (might be due to invalid IL or missing references)
34741 //IL_153b: Unknown result type (might be due to invalid IL or missing references)
34742 //IL_14b8: Unknown result type (might be due to invalid IL or missing references)
34743 //IL_14d5: Unknown result type (might be due to invalid IL or missing references)
34744 //IL_14db: Unknown result type (might be due to invalid IL or missing references)
34745 //IL_159d: Unknown result type (might be due to invalid IL or missing references)
34746 //IL_15a7: Unknown result type (might be due to invalid IL or missing references)
34747 //IL_15ac: Unknown result type (might be due to invalid IL or missing references)
34748 if (swimTime > 0)
34749 {
34750 swimTime--;
34751 if (!wet)
34752 {
34753 swimTime = 0;
34754 }
34755 }
34756 head = armor[0].headSlot;
34757 body = armor[1].bodySlot;
34758 legs = armor[2].legSlot;
34759 if (armor[10].headSlot >= 0)
34760 {
34761 head = armor[10].headSlot;
34762 }
34763 if (armor[11].bodySlot >= 0)
34764 {
34765 body = armor[11].bodySlot;
34766 }
34767 if (armor[12].legSlot >= 0)
34768 {
34769 legs = armor[12].legSlot;
34770 }
34771 if (!dead)
34772 {
34774 }
34775 wearsRobe = false;
34776 bool somethingSpecial = false;
34777 SetMatchRequest request = default(SetMatchRequest);
34778 request.Head = head;
34779 request.Body = body;
34780 request.Legs = legs;
34781 request.Male = Male;
34782 request.ArmorSlotRequested = 1;
34784 if (num != -1)
34785 {
34786 legs = num;
34787 }
34788 request = default(SetMatchRequest);
34789 request.Head = head;
34790 request.Body = body;
34791 request.Legs = legs;
34792 request.Male = Male;
34793 request.ArmorSlotRequested = 2;
34795 if (num != -1)
34796 {
34797 legs = num;
34798 }
34799 request = default(SetMatchRequest);
34800 request.Head = head;
34801 request.Body = body;
34802 request.Legs = legs;
34803 request.Male = Male;
34804 request.ArmorSlotRequested = 0;
34806 if (num != -1)
34807 {
34808 head = num;
34809 }
34810 if (body == 93)
34811 {
34812 shield = 0;
34813 handoff = 0;
34814 }
34816 {
34817 handon = 0;
34818 handoff = 0;
34819 }
34821 {
34822 waist = 0;
34823 }
34824 if (!dead && body >= 0)
34825 {
34826 int b = (Male ? ArmorIDs.Body.Sets.IncludedCapeBack : ArmorIDs.Body.Sets.IncludedCapeBackFemale)[body];
34827 if (b != -1)
34828 {
34830 {
34831 backpack = b;
34832 cBackpack = cBody;
34833 }
34835 {
34836 tail = b;
34837 cTail = cBody;
34838 }
34839 else if (back == -1)
34840 {
34841 back = b;
34842 cBack = cBody;
34843 }
34844 }
34846 if (b2 != -1 && front == -1)
34847 {
34848 front = b2;
34849 cFront = cBody;
34850 }
34852 if (!includeCapeFrontAndBackInfo.Invalid && back == -1 && front == -1)
34853 {
34855 cFront = cBody;
34856 int backCape = includeCapeFrontAndBackInfo.backCape;
34857 if (ArmorIDs.Back.Sets.DrawInBackpackLayer[backCape])
34858 {
34859 backpack = backCape;
34860 cBackpack = cBody;
34861 }
34862 else if (ArmorIDs.Back.Sets.DrawInTailLayer[backCape])
34863 {
34864 tail = backCape;
34865 cTail = cBody;
34866 }
34867 else if (!sitting.isSitting)
34868 {
34869 back = backCape;
34870 cBack = cBody;
34871 }
34872 }
34873 }
34874 if (legs == 67)
34875 {
34876 shoe = 0;
34877 }
34878 if (legs == 140)
34879 {
34880 shoe = 0;
34881 }
34882 bool flag = false;
34883 if ((wereWolf || forceWerewolf) && !hideWolf)
34884 {
34885 legs = 20;
34886 body = 21;
34887 head = 38;
34888 flag = true;
34889 }
34890 bool flag2 = wet && !lavaWet && (!mount.Active || !mount.IsConsideredASlimeMount);
34891 if (merman || forceMerman)
34892 {
34893 if (!hideMerman)
34894 {
34895 head = 39;
34896 legs = 21;
34897 body = 22;
34898 flag = true;
34899 }
34900 if (flag2)
34901 {
34902 wings = 0;
34903 }
34904 }
34906 socialIgnoreLight = false;
34907 socialGhost = false;
34908 armorEffectDrawShadow = false;
34916 {
34917 if (head == 101 && body == 66 && legs == 55)
34918 {
34919 socialGhost = true;
34920 }
34921 if (head == 156 && body == 66 && legs == 55)
34922 {
34923 socialGhost = true;
34924 }
34926 }
34927 hermesStepSound.Style = SoundID.Run;
34928 hermesStepSound.IntendedCooldown = 9;
34929 if (head == 99 && body == 65 && legs == 54)
34930 {
34931 turtleArmor = true;
34932 }
34933 if (head == 162 && body == 170 && legs == 105)
34934 {
34935 spiderArmor = true;
34936 }
34938 if (legs == 140)
34939 {
34940 hermesStepSound.Style = SoundID.Item24;
34941 hermesStepSound.IntendedCooldown = 6;
34942 }
34943 if (flag)
34944 {
34945 face = -1;
34946 faceFlower = -1;
34947 faceHead = -1;
34948 }
34950 if (head > 0 && face > 0)
34951 {
34953 {
34954 head = -1;
34955 faceHead = -1;
34956 }
34958 {
34959 face = -1;
34960 }
34961 }
34963 {
34965 if (b3 > 0)
34966 {
34967 faceHead = b3;
34968 }
34969 }
34970 if (webbed || frozen || stoned || (Main.gamePaused && !Main.gameMenu))
34971 {
34972 return;
34973 }
34974 if (head == 267 && body == 236 && (legs == 219 || legs == 220) && miscCounter % 15 == 0 && Main.rand.Next(3) == 0)
34975 {
34976 Vector2 center = base.Center;
34977 float num12 = 1f + Main.rand.NextFloat() * 0.5f;
34978 if (Main.rand.Next(2) == 0)
34979 {
34980 num12 *= -1f;
34981 }
34982 center += new Vector2(num12 * -25f, -8f);
34983 Dust obj = Main.dust[Dust.NewDust(center, 2, 2, 304, 0f, 0f, 100)];
34984 obj.rotation = Main.rand.NextFloat() * ((float)Math.PI * 2f);
34985 obj.alpha = 254;
34986 obj.velocity.X = num12 * 0.2f;
34987 obj.noGravity = true;
34988 obj.customData = this;
34989 obj.shader = GameShaders.Armor.GetSecondaryShader(cBody, this);
34990 }
34993 {
34994 if (((body == 68 && legs == 57 && head == 106) || (body == 74 && legs == 63 && head == 106)) && Main.rand.Next(10) == 0)
34995 {
34996 int num16 = Dust.NewDust(new Vector2(position.X - velocity.X * 2f, position.Y - 2f - velocity.Y * 2f), width, height, 43, 0f, 0f, 100, new Color(255, 0, 255), 0.3f);
34997 Main.dust[num16].fadeIn = 0.8f;
34998 Main.dust[num16].noGravity = true;
34999 Dust obj2 = Main.dust[num16];
35000 obj2.velocity *= 2f;
35001 Main.dust[num16].shader = GameShaders.Armor.GetSecondaryShader(ArmorSetDye(), this);
35002 }
35003 if (wings == 27 && wingsLogic == wings)
35004 {
35005 float num17 = 0.4f * stealth;
35006 Lighting.AddLight((int)base.Center.X / 16, (int)base.Center.Y / 16, num17, num17 * 0.9f, num17 * 0.2f);
35007 }
35008 if (head == 5 && body == 5 && legs == 5)
35009 {
35011 }
35012 if (head == 5 && body == 5 && legs == 5 && Main.rand.Next(10) == 0)
35013 {
35014 int num18 = Dust.NewDust(new Vector2(position.X, position.Y), width, height, 14, 0f, 0f, 200, default(Color), 1.2f);
35015 Main.dust[num18].shader = GameShaders.Armor.GetSecondaryShader(ArmorSetDye(), this);
35016 }
35017 if (head == 76 && body == 49 && legs == 45)
35018 {
35020 }
35021 if (head == 74 && body == 48 && legs == 44)
35022 {
35024 }
35025 if (head == 74 && body == 48 && legs == 44 && Main.rand.Next(10) == 0)
35026 {
35027 int num19 = Dust.NewDust(new Vector2(position.X, position.Y), width, height, 14, 0f, 0f, 200, default(Color), 1.2f);
35028 Main.dust[num19].shader = GameShaders.Armor.GetSecondaryShader(ArmorSetDye(), this);
35029 }
35030 if (head == 57 && body == 37 && legs == 35)
35031 {
35032 int maxValue = 10;
35033 if (Math.Abs(velocity.X) + Math.Abs(velocity.Y) > 1f)
35034 {
35035 maxValue = 2;
35036 }
35037 if (Main.rand.Next(maxValue) == 0)
35038 {
35039 int num20 = Dust.NewDust(new Vector2(position.X, position.Y), width, height, 115, 0f, 0f, 140, default(Color), 0.75f);
35040 Main.dust[num20].noGravity = true;
35041 Main.dust[num20].fadeIn = 1.5f;
35042 Dust obj3 = Main.dust[num20];
35043 obj3.velocity *= 0.3f;
35044 Dust obj4 = Main.dust[num20];
35045 obj4.velocity += velocity * 0.2f;
35046 Main.dust[num20].shader = GameShaders.Armor.GetSecondaryShader(ArmorSetDye(), this);
35047 }
35048 }
35049 if (head == 6 && body == 6 && legs == 6 && Math.Abs(velocity.X) + Math.Abs(velocity.Y) > 1f && !rocketFrame)
35050 {
35051 for (int i = 0; i < 2; i++)
35052 {
35053 int num21 = Dust.NewDust(new Vector2(position.X - velocity.X * 2f, position.Y - 2f - velocity.Y * 2f), width, height, 6, 0f, 0f, 100, default(Color), 2f);
35054 Main.dust[num21].noGravity = true;
35055 Main.dust[num21].noLight = true;
35056 Main.dust[num21].velocity.X -= velocity.X * 0.5f;
35057 Main.dust[num21].velocity.Y -= velocity.Y * 0.5f;
35058 Main.dust[num21].shader = GameShaders.Armor.GetSecondaryShader(ArmorSetDye(), this);
35059 }
35060 }
35061 if (head == 8 && body == 8 && legs == 8 && Math.Abs(velocity.X) + Math.Abs(velocity.Y) > 1f)
35062 {
35063 int num22 = Dust.NewDust(new Vector2(position.X - velocity.X * 2f, position.Y - 2f - velocity.Y * 2f), width, height, 40, 0f, 0f, 50, default(Color), 1.4f);
35064 Main.dust[num22].noGravity = true;
35065 Main.dust[num22].velocity.X = velocity.X * 0.25f;
35066 Main.dust[num22].velocity.Y = velocity.Y * 0.25f;
35067 Main.dust[num22].shader = GameShaders.Armor.GetSecondaryShader(ArmorSetDye(), this);
35068 }
35069 if (head == 9 && body == 9 && legs == 9 && Math.Abs(velocity.X) + Math.Abs(velocity.Y) > 1f && !rocketFrame)
35070 {
35071 for (int j = 0; j < 2; j++)
35072 {
35073 int num2 = Dust.NewDust(new Vector2(position.X - velocity.X * 2f, position.Y - 2f - velocity.Y * 2f), width, height, 6, 0f, 0f, 100, default(Color), 2f);
35074 Main.dust[num2].noGravity = true;
35075 Main.dust[num2].noLight = true;
35076 Main.dust[num2].velocity.X -= velocity.X * 0.5f;
35077 Main.dust[num2].velocity.Y -= velocity.Y * 0.5f;
35078 Main.dust[num2].shader = GameShaders.Armor.GetSecondaryShader(ArmorSetDye(), this);
35079 }
35080 }
35081 if (body == 18 && legs == 17 && (head == 32 || head == 33 || head == 34) && Main.rand.Next(10) == 0)
35082 {
35083 int num3 = Dust.NewDust(new Vector2(position.X - velocity.X * 2f, position.Y - 2f - velocity.Y * 2f), width, height, 43, 0f, 0f, 100, default(Color), 0.3f);
35084 Main.dust[num3].fadeIn = 0.8f;
35085 Dust obj5 = Main.dust[num3];
35086 obj5.velocity *= 0f;
35087 Main.dust[num3].shader = GameShaders.Armor.GetSecondaryShader(ArmorSetDye(), this);
35088 }
35089 if ((body == 24 || body == 229) && (legs == 23 || legs == 212) && (head == 43 || head == 41 || head == 42 || head == 254 || head == 255 || head == 256 || head == 257 || head == 258) && velocity.X != 0f && velocity.Y != 0f && Main.rand.Next(10) == 0)
35090 {
35091 int num4 = Dust.NewDust(new Vector2(position.X - velocity.X * 2f, position.Y - 2f - velocity.Y * 2f), width, height, 43, 0f, 0f, 100, default(Color), 0.3f);
35092 Main.dust[num4].fadeIn = 0.8f;
35093 Dust obj6 = Main.dust[num4];
35094 obj6.velocity *= 0f;
35095 Main.dust[num4].shader = GameShaders.Armor.GetSecondaryShader(ArmorSetDye(), this);
35096 }
35097 if (body == 36 && head == 56 && velocity.X != 0f && velocity.Y == 0f)
35098 {
35099 for (int k = 0; k < 2; k++)
35100 {
35101 int num5 = Dust.NewDust(new Vector2(position.X, position.Y + (float)((gravDir == 1f) ? (height - 2) : (-4))), width, 6, 106, 0f, 0f, 100, default(Color), 0.1f);
35102 Main.dust[num5].fadeIn = 1f;
35103 Main.dust[num5].noGravity = true;
35104 Dust obj7 = Main.dust[num5];
35105 obj7.velocity *= 0.2f;
35106 Main.dust[num5].shader = GameShaders.Armor.GetSecondaryShader(ArmorSetDye(), this);
35107 }
35108 }
35109 if (body == 27 && head == 46 && legs == 26 && velocity.X != 0f && velocity.Y == 0f && miscCounter % 2 == 0)
35110 {
35111 for (int l = 0; l < 2; l++)
35112 {
35113 int num6 = ((l != 0) ? Dust.NewDust(new Vector2(position.X + (float)(width / 2), position.Y + (float)height + gfxOffY), width / 2, 6, 76, 0f, 0f, 0, default(Color), 1.35f) : Dust.NewDust(new Vector2(position.X, position.Y + (float)height + gfxOffY), width / 2, 6, 76, 0f, 0f, 0, default(Color), 1.35f));
35114 Main.dust[num6].scale *= 1f + (float)Main.rand.Next(20, 40) * 0.01f;
35115 Main.dust[num6].noGravity = true;
35116 Main.dust[num6].noLight = true;
35117 Dust obj8 = Main.dust[num6];
35118 obj8.velocity *= 0.001f;
35119 Main.dust[num6].velocity.Y -= 0.003f;
35120 Main.dust[num6].shader = GameShaders.Armor.GetSecondaryShader(ArmorSetDye(), this);
35121 }
35122 }
35123 }
35124 drawingFootball = false;
35125 if (ShouldDrawFootball())
35126 {
35127 SetCompositeArmBack(enabled: true, CompositeArmStretchAmount.Full, (float)Math.PI / 10f * (float)direction * -1f);
35128 drawingFootball = true;
35129 }
35130 Item.GetDrawHitbox(HeldItem.type, this);
35132 bool flag4 = HeldItem.useStyle != 14;
35134 if (mount.Active)
35135 {
35136 legFrameCounter = 0.0;
35137 legFrame.Y = legFrame.Height * 6;
35138 if (mount.Type == 23 || mount.Type == 45 || mount.Type == 48)
35139 {
35140 ref Rectangle reference = ref legFrame;
35141 _ = legFrame;
35142 reference.Y = 0;
35143 }
35144 if (velocity.Y != 0f)
35145 {
35146 if (mount.FlyTime > 0 && jump == 0 && controlJump && !mount.CanHover())
35147 {
35148 if (mount.Type == 0)
35149 {
35150 if (direction > 0)
35151 {
35152 if (Main.rand.Next(4) == 0)
35153 {
35154 int num7 = Dust.NewDust(new Vector2(base.Center.X - 22f, position.Y + (float)height - 6f), 20, 10, 64, velocity.X * 0.25f, velocity.Y * 0.25f, 255);
35155 Dust obj9 = Main.dust[num7];
35156 obj9.velocity *= 0.1f;
35157 Main.dust[num7].noLight = true;
35158 }
35159 if (Main.rand.Next(4) == 0)
35160 {
35161 int num8 = Dust.NewDust(new Vector2(base.Center.X + 12f, position.Y + (float)height - 6f), 20, 10, 64, velocity.X * 0.25f, velocity.Y * 0.25f, 255);
35162 Dust obj10 = Main.dust[num8];
35163 obj10.velocity *= 0.1f;
35164 Main.dust[num8].noLight = true;
35165 }
35166 }
35167 else
35168 {
35169 if (Main.rand.Next(4) == 0)
35170 {
35171 int num9 = Dust.NewDust(new Vector2(base.Center.X - 32f, position.Y + (float)height - 6f), 20, 10, 64, velocity.X * 0.25f, velocity.Y * 0.25f, 255);
35172 Dust obj11 = Main.dust[num9];
35173 obj11.velocity *= 0.1f;
35174 Main.dust[num9].noLight = true;
35175 }
35176 if (Main.rand.Next(4) == 0)
35177 {
35178 int num10 = Dust.NewDust(new Vector2(base.Center.X + 2f, position.Y + (float)height - 6f), 20, 10, 64, velocity.X * 0.25f, velocity.Y * 0.25f, 255);
35179 Dust obj12 = Main.dust[num10];
35180 obj12.velocity *= 0.1f;
35181 Main.dust[num10].noLight = true;
35182 }
35183 }
35184 }
35185 mount.TryBeginningFlight(this, 3);
35186 mount.UpdateFrame(this, 3, velocity);
35187 mount.TryLanding(this);
35188 }
35189 else if (wet)
35190 {
35191 mount.UpdateFrame(this, 4, velocity);
35192 }
35193 else
35194 {
35195 mount.TryBeginningFlight(this, 2);
35196 mount.UpdateFrame(this, 2, velocity);
35197 mount.TryLanding(this);
35198 }
35199 }
35200 else
35201 {
35203 }
35204 }
35205 else if (legs != 140)
35206 {
35207 if (swimTime > 0)
35208 {
35209 legFrameCounter += 2.0;
35210 while (legFrameCounter > 8.0)
35211 {
35212 legFrameCounter -= 8.0;
35213 legFrame.Y += legFrame.Height;
35214 }
35215 if (legFrame.Y < legFrame.Height * 7)
35216 {
35217 legFrame.Y = legFrame.Height * 19;
35218 }
35219 else if (legFrame.Y > legFrame.Height * 19)
35220 {
35221 legFrame.Y = legFrame.Height * 7;
35222 }
35223 }
35224 else if (velocity.Y != 0f || grappling[0] > -1)
35225 {
35226 legFrameCounter = 0.0;
35227 legFrame.Y = legFrame.Height * 5;
35228 if ((wings == 22 || wings == 28 || wings == 45) && ShouldDrawWingsThatAreAlwaysAnimated())
35229 {
35230 legFrame.Y = 0;
35231 }
35232 }
35233 else if (velocity.X != 0f)
35234 {
35235 if ((slippy || slippy2 || windPushed) && !controlLeft && !controlRight)
35236 {
35237 legFrameCounter = 0.0;
35238 ref Rectangle reference2 = ref legFrame;
35239 _ = legFrame;
35240 reference2.Y = 0;
35241 }
35242 else
35243 {
35244 legFrameCounter += (double)Math.Abs(velocity.X) * 1.3;
35245 while (legFrameCounter > 8.0)
35246 {
35247 legFrameCounter -= 8.0;
35248 legFrame.Y += legFrame.Height;
35249 }
35250 if (legFrame.Y < legFrame.Height * 7)
35251 {
35252 legFrame.Y = legFrame.Height * 19;
35253 }
35254 else if (legFrame.Y > legFrame.Height * 19)
35255 {
35256 legFrame.Y = legFrame.Height * 7;
35257 }
35258 }
35259 }
35260 else
35261 {
35262 legFrameCounter = 0.0;
35263 ref Rectangle reference3 = ref legFrame;
35264 _ = legFrame;
35265 reference3.Y = 0;
35266 }
35267 }
35268 if (carpetFrame >= 0)
35269 {
35270 legFrameCounter = 0.0;
35271 ref Rectangle reference4 = ref legFrame;
35272 _ = legFrame;
35273 reference4.Y = 0;
35274 }
35275 if (sandStorm)
35276 {
35277 if (grappling[0] >= 0)
35278 {
35279 sandStorm = false;
35280 }
35281 if (miscCounter % 4 == 0 && itemAnimation == 0)
35282 {
35283 ChangeDir(direction * -1);
35284 if (inventory[selectedItem].holdStyle == 2)
35285 {
35286 if (inventory[selectedItem].type == 946 || inventory[selectedItem].type == 4707)
35287 {
35288 itemLocation.X = position.X + (float)width * 0.5f - (float)(16 * direction);
35289 }
35290 if (inventory[selectedItem].type == 186)
35291 {
35292 itemLocation.X = position.X + (float)width * 0.5f + (float)(6 * direction);
35293 itemRotation = 0.79f * (float)(-direction);
35294 }
35295 }
35296 }
35297 legFrameCounter = 0.0;
35298 ref Rectangle reference5 = ref legFrame;
35299 _ = legFrame;
35300 reference5.Y = 0;
35301 }
35302 else if (itemAnimation > 0 && inventory[selectedItem].useStyle != 10 && flag4)
35303 {
35304 if (inventory[selectedItem].useStyle == 1 || inventory[selectedItem].type == 0)
35305 {
35306 if ((double)itemAnimation < (double)itemAnimationMax * 0.333)
35307 {
35308 bodyFrame.Y = bodyFrame.Height * 3;
35309 }
35310 else if ((double)itemAnimation < (double)itemAnimationMax * 0.666)
35311 {
35312 bodyFrame.Y = bodyFrame.Height * 2;
35313 }
35314 else
35315 {
35316 bodyFrame.Y = bodyFrame.Height;
35317 }
35318 }
35319 else if (inventory[selectedItem].useStyle == 7)
35320 {
35321 if ((double)itemAnimation > (double)itemAnimationMax * 0.5)
35322 {
35323 bodyFrame.Y = bodyFrame.Height * 3;
35324 }
35325 else
35326 {
35327 bodyFrame.Y = bodyFrame.Height * 2;
35328 }
35329 }
35330 else if (inventory[selectedItem].useStyle == 2)
35331 {
35332 bodyFrame.Y = bodyFrame.Height * 3;
35333 }
35334 else if (inventory[selectedItem].useStyle == 11)
35335 {
35336 if ((double)itemAnimation > (double)itemAnimationMax * 0.5)
35337 {
35338 bodyFrame.Y = bodyFrame.Height * 4;
35339 }
35340 else if ((double)itemAnimation > (double)itemAnimationMax * 0.15)
35341 {
35342 bodyFrame.Y = bodyFrame.Height * 3;
35343 }
35344 else
35345 {
35346 bodyFrame.Y = bodyFrame.Height * 2;
35347 }
35348 }
35349 else if (inventory[selectedItem].useStyle == 9)
35350 {
35351 bodyFrame.Y = 0;
35352 }
35353 else if (inventory[selectedItem].useStyle == 6)
35354 {
35355 float num11 = 1f - (float)itemAnimation / (float)itemAnimationMax;
35356 num11 *= 6f;
35357 if (num11 > 1f)
35358 {
35359 num11 = 1f;
35360 }
35361 if (num11 >= 0.5f)
35362 {
35363 bodyFrame.Y = bodyFrame.Height * 3;
35364 }
35365 else
35366 {
35367 bodyFrame.Y = bodyFrame.Height * 2;
35368 }
35369 }
35370 else if (inventory[selectedItem].useStyle == 3)
35371 {
35372 if ((double)itemAnimation > (double)itemAnimationMax * 0.666)
35373 {
35374 bodyFrame.Y = bodyFrame.Height * 3;
35375 }
35376 else
35377 {
35378 bodyFrame.Y = bodyFrame.Height * 3;
35379 }
35380 }
35381 else if (inventory[selectedItem].useStyle == 4)
35382 {
35383 bodyFrame.Y = bodyFrame.Height * 2;
35384 }
35385 else if (inventory[selectedItem].useStyle == 8)
35386 {
35387 bodyFrame.Y = 0;
35388 }
35389 else if (inventory[selectedItem].useStyle == 12)
35390 {
35391 bodyFrame.Y = bodyFrame.Height * 3;
35392 }
35393 else if (inventory[selectedItem].useStyle == 13)
35394 {
35395 if ((double)itemAnimation < (double)itemAnimationMax * 0.333)
35396 {
35397 bodyFrame.Y = bodyFrame.Height * 3;
35398 }
35399 else if ((double)itemAnimation < (double)itemAnimationMax * 0.666)
35400 {
35401 bodyFrame.Y = bodyFrame.Height * 2;
35402 }
35403 else
35404 {
35405 bodyFrame.Y = bodyFrame.Height;
35406 }
35407 }
35408 else if (inventory[selectedItem].useStyle == 5)
35409 {
35410 if (inventory[selectedItem].type == 281 || inventory[selectedItem].type == 986)
35411 {
35412 bodyFrame.Y = bodyFrame.Height * 2;
35413 }
35414 else
35415 {
35416 float num23 = itemRotation * (float)direction;
35417 bodyFrame.Y = bodyFrame.Height * 3;
35418 if ((double)num23 < -0.75)
35419 {
35420 bodyFrame.Y = bodyFrame.Height * 2;
35421 if (gravDir == -1f)
35422 {
35423 bodyFrame.Y = bodyFrame.Height * 4;
35424 }
35425 }
35426 if ((double)num23 > 0.6)
35427 {
35428 bodyFrame.Y = bodyFrame.Height * 4;
35429 if (gravDir == -1f)
35430 {
35431 bodyFrame.Y = bodyFrame.Height * 2;
35432 }
35433 }
35434 }
35435 }
35437 }
35438 else if (pulley)
35439 {
35440 if (pulleyDir == 2)
35441 {
35442 bodyFrame.Y = bodyFrame.Height;
35443 }
35444 else
35445 {
35446 bodyFrame.Y = bodyFrame.Height * 2;
35447 }
35448 }
35449 else if (flag3 && inventory[selectedItem].holdStyle == 1 && (!wet || !inventory[selectedItem].noWet || ItemID.Sets.WaterTorches[BiomeTorchHoldStyle(inventory[selectedItem].type)]) && (!happyFunTorchTime || inventory[selectedItem].createTile != 4))
35450 {
35451 bodyFrame.Y = bodyFrame.Height * 3;
35452 }
35453 else if (flag3 && inventory[selectedItem].holdStyle == 2 && (!wet || !inventory[selectedItem].noWet))
35454 {
35455 bodyFrame.Y = bodyFrame.Height * 2;
35456 }
35457 else if (flag3 && inventory[selectedItem].holdStyle == 3)
35458 {
35459 bodyFrame.Y = bodyFrame.Height * 3;
35460 }
35461 else if (flag3 && inventory[selectedItem].holdStyle == 5)
35462 {
35463 bodyFrame.Y = bodyFrame.Height * 3;
35464 }
35465 else if (flag3 && inventory[selectedItem].holdStyle == 7)
35466 {
35467 bodyFrame.Y = bodyFrame.Height * 11;
35468 }
35469 else if (flag3 && inventory[selectedItem].holdStyle == 4 && velocity.Y == 0f && gravDir == 1f)
35470 {
35471 ref Rectangle reference6 = ref bodyFrame;
35472 _ = bodyFrame;
35473 reference6.Y = 0;
35474 }
35475 else if (shieldRaised)
35476 {
35477 bodyFrame.Y = bodyFrame.Height * 10;
35478 }
35479 else if (mount.Active)
35480 {
35481 bodyFrameCounter = 0.0;
35482 bodyFrame.Y = bodyFrame.Height * mount.BodyFrame;
35483 }
35484 else if (grappling[0] >= 0)
35485 {
35486 sandStorm = false;
35488 Vector2 vector = default(Vector2);
35489 ((Vector2)(ref vector))._002Ector(position.X + (float)width * 0.5f, position.Y + (float)height * 0.5f);
35490 float num13 = 0f;
35491 float num14 = 0f;
35492 for (int m = 0; m < grapCount; m++)
35493 {
35494 num13 += Main.projectile[grappling[m]].position.X + (float)(Main.projectile[grappling[m]].width / 2);
35495 num14 += Main.projectile[grappling[m]].position.Y + (float)(Main.projectile[grappling[m]].height / 2);
35496 }
35497 num13 /= (float)grapCount;
35498 num14 /= (float)grapCount;
35499 num13 -= vector.X;
35500 num14 -= vector.Y;
35501 if (num14 < 0f && Math.Abs(num14) > Math.Abs(num13))
35502 {
35503 bodyFrame.Y = bodyFrame.Height * 2;
35504 if (gravDir == -1f)
35505 {
35506 bodyFrame.Y = bodyFrame.Height * 4;
35507 }
35508 }
35509 else if (num14 > 0f && Math.Abs(num14) > Math.Abs(num13))
35510 {
35511 bodyFrame.Y = bodyFrame.Height * 4;
35512 if (gravDir == -1f)
35513 {
35514 bodyFrame.Y = bodyFrame.Height * 2;
35515 }
35516 }
35517 else
35518 {
35519 bodyFrame.Y = bodyFrame.Height * 3;
35520 }
35521 }
35522 else if (wet && ShouldFloatInWater)
35523 {
35524 bodyFrame.Y = bodyFrame.Height * 10;
35525 }
35526 else if (swimTime > 0)
35527 {
35528 if (swimTime > 20)
35529 {
35530 ref Rectangle reference7 = ref bodyFrame;
35531 _ = bodyFrame;
35532 reference7.Y = 0;
35533 }
35534 else if (swimTime > 10)
35535 {
35536 bodyFrame.Y = bodyFrame.Height * 5;
35537 }
35538 else
35539 {
35540 ref Rectangle reference8 = ref bodyFrame;
35541 _ = bodyFrame;
35542 reference8.Y = 0;
35543 }
35544 }
35545 else if (velocity.Y != 0f)
35546 {
35547 if (sliding)
35548 {
35549 bodyFrame.Y = bodyFrame.Height * 3;
35550 }
35551 else if (sandStorm || carpetFrame >= 0)
35552 {
35553 bodyFrame.Y = bodyFrame.Height * 6;
35554 }
35555 else if (eocDash > 0)
35556 {
35557 bodyFrame.Y = bodyFrame.Height * 6;
35558 }
35559 else if (wings > 0)
35560 {
35561 if (wings == 22 || wings == 28 || wings == 45)
35562 {
35563 bodyFrame.Y = 0;
35564 }
35565 else if (velocity.Y > 0f)
35566 {
35567 if (controlJump)
35568 {
35569 bodyFrame.Y = bodyFrame.Height * 6;
35570 }
35571 else
35572 {
35573 bodyFrame.Y = bodyFrame.Height * 5;
35574 }
35575 }
35576 else
35577 {
35578 bodyFrame.Y = bodyFrame.Height * 6;
35579 }
35580 }
35581 else
35582 {
35583 bodyFrame.Y = bodyFrame.Height * 5;
35584 }
35585 bodyFrameCounter = 0.0;
35586 }
35587 else if (velocity.X != 0f)
35588 {
35589 if (legs == 140)
35590 {
35591 bodyFrameCounter += Math.Abs(velocity.X) * 0.5f;
35592 while (bodyFrameCounter > 8.0)
35593 {
35594 bodyFrameCounter -= 8.0;
35595 bodyFrame.Y += bodyFrame.Height;
35596 }
35597 if (bodyFrame.Y < bodyFrame.Height * 7)
35598 {
35599 bodyFrame.Y = bodyFrame.Height * 19;
35600 }
35601 else if (bodyFrame.Y > bodyFrame.Height * 19)
35602 {
35603 bodyFrame.Y = bodyFrame.Height * 7;
35604 }
35605 }
35606 else
35607 {
35608 bodyFrameCounter += (double)Math.Abs(velocity.X) * 1.5;
35609 bodyFrame.Y = legFrame.Y;
35610 }
35611 }
35612 else
35613 {
35614 bodyFrameCounter = 0.0;
35615 ref Rectangle reference9 = ref bodyFrame;
35616 _ = bodyFrame;
35617 reference9.Y = 0;
35618 }
35619 if (flag3 && itemAnimation <= 0)
35620 {
35622 }
35623 if (legs == 140)
35624 {
35625 legFrameCounter = 0.0;
35626 legFrame.Y = legFrame.Height * (velocity.Y != 0f).ToInt();
35627 int num15 = bodyFrame.Y / bodyFrame.Height;
35628 if (Main.OffsetsPlayerHeadgear[num15].Y == 0f)
35629 {
35630 legFrame.Y = legFrame.Height * 7;
35631 }
35632 if (wings == 22 || wings == 28)
35633 {
35634 legFrame.Y = 0;
35635 }
35636 }
35637 if (legs == 217 && (sitting.isSitting || sleeping.isSleeping))
35638 {
35639 legFrameCounter = 0.0;
35640 legFrame.Y = legFrame.Height * 5;
35641 }
35643 {
35645 }
35646 }
bool wet
The Entity is currently in water. Projectile: Affects movement speed and some projectiles die when ...
Definition Entity.cs:57
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 ArmorShaderDataSet Armor
Definition GameShaders.cs:7
static bool[] DrawInTailLayer
If true for a given T:Terraria.ID.ArmorIDs.Back, then that equip will draw in the player's tail layer...
Definition ArmorIDs.cs:1790
static bool[] DrawInBackpackLayer
If true for a given T:Terraria.ID.ArmorIDs.Back, then that equip will draw in the player's backpack l...
Definition ArmorIDs.cs:1784
static IncludeCapeFrontAndBackInfo[] IncludeCapeFrontAndBack
If not P:Terraria.ID.ArmorIDs.Body.Sets.IncludeCapeFrontAndBackInfo.Invalid for a given T:Terraria....
Definition ArmorIDs.cs:725
static bool[] DisableHandOnAndOffAccDraw
If true for a given T:Terraria.ID.ArmorIDs.Body, then that equip will hide T:Terraria....
Definition ArmorIDs.cs:761
static int[] IncludedCapeFront
If != -1 for a given T:Terraria.ID.ArmorIDs.Body, then that equip will display the retrieved T:Terrar...
Definition ArmorIDs.cs:714
static bool[] DisableBeltAccDraw
If true for a given T:Terraria.ID.ArmorIDs.Body, then that equip will hide belt-like (F:Terraria....
Definition ArmorIDs.cs:767
static int[] IncludedCapeBackFemale
Definition ArmorIDs.cs:707
static int[] AltFaceHead
If != -1 for a given T:Terraria.ID.ArmorIDs.Face, then that equip will be replaced with the retrieved...
Definition ArmorIDs.cs:2243
static bool[] OverrideHelmet
If true for a given T:Terraria.ID.ArmorIDs.Face, then that equip will hide the player's T:Terraria....
Definition ArmorIDs.cs:2217
static bool[] DrawInFaceUnderHairLayer
If true for a given T:Terraria.ID.ArmorIDs.Face, then that equip will draw under the player's hair....
Definition ArmorIDs.cs:2223
static bool[] UseAltFaceHeadDraw
If true for a given T:Terraria.ID.ArmorIDs.Head, then that equip will force head-positioned face equi...
Definition ArmorIDs.cs:41
static bool[] IsABelt
If true for a given T:Terraria.ID.ArmorIDs.Waist, then that equip won't draw if the player is wearing...
Definition ArmorIDs.cs:2003
static bool[] WaterTorches
If true for a given item type (F:Terraria.Item.type), then that item is a water torch....
Definition ItemID.cs:1546
static readonly SoundStyle Item24
Definition SoundID.cs:725
static readonly SoundStyle Run
Definition SoundID.cs:315
int headSlot
Definition Item.cs:542
int legSlot
Definition Item.cs:546
int bodySlot
Definition Item.cs:544
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
Definition Item.cs:345
static void PlayerFrameEffects(Player player)
static void PreUpdateVanitySet(Player player)
If the player's head texture's IsVanitySet returns true, calls the equipment texture's PreUpdateVanit...
static void HoldItemFrame(Item item, Player player)
Calls ModItem.HoldItemFrame, then all GlobalItem.HoldItemFrame hooks, until one of them returns true....
static void UpdateVanitySet(Player player)
If the player's head texture's IsVanitySet returns true, calls the equipment texture's UpdateVanitySe...
static void UseItemFrame(Item item, Player player)
Calls ModItem.UseItemFrame, then all GlobalItem.UseItemFrame hooks, until one of them returns true....
This serves as the central class from which item-related functions are carried out....
Definition ItemLoader.cs:26
bool IsConsideredASlimeMount
Definition Mount.cs:474
void TryBeginningFlight(Player mountedPlayer, int state)
Definition Mount.cs:4173
int GetIntendedGroundedFrame(Player mountedPlayer)
Definition Mount.cs:4201
int BodyFrame
Definition Mount.cs:356
bool Active
Definition Mount.cs:348
void TryLanding(Player mountedPlayer)
Definition Mount.cs:4210
bool CanHover()
Definition Mount.cs:2440
void UpdateFrame(Player mountedPlayer, int state, Vector2 velocity)
Definition Mount.cs:3211
bool controlRight
Definition Player.cs:1896
bool socialShadowRocketBoots
Definition Player.cs:1731
bool armorEffectDrawOutlinesForbidden
Definition Player.cs:1727
int itemAnimationMax
Definition Player.cs:3127
PlayerSleepingHelper sleeping
Definition Player.cs:3011
RabbitOrderFrameHelper rabbitOrderFrame
Definition Player.cs:2044
void ApplyArmorSoundAndDustChanges()
Definition Player.cs:36952
bool socialIgnoreLight
Definition Player.cs:1739
float itemRotation
Definition Player.cs:1664
bool ShouldDrawFootball()
Definition Player.cs:34623
PlayerSittingHelper sitting
Definition Player.cs:3009
bool forceWerewolf
Definition Player.cs:2535
void CancelAllJumpVisualEffects()
Definition Player.cs:35648
void SetCompositeArmBack(bool enabled, CompositeArmStretchAmount stretch, float rotation)
Definition Player.cs:4871
bool happyFunTorchTime
Definition Player.cs:3185
Item[] armor
The player's armor and accessories. Indexes 0-2 hold head, chest, and legs armor while 10-12 hold the...
Definition Player.cs:1651
int ArmorSetDye()
Definition Player.cs:7809
bool armorEffectDrawShadowEOCShield
Definition Player.cs:1729
static int SetMatch(SetMatchRequest request, ref bool somethingSpecial)
Definition Player.cs:36096
void UpdateVisibleAccessories()
Definition Player.cs:35742
bool isDisplayDollOrInanimate
Definition Player.cs:1747
bool ShouldFloatInWater
Definition Player.cs:4211
void ChangeDir(int dir)
Definition Player.cs:41213
bool armorEffectDrawShadowSubtle
Definition Player.cs:1719
int cBody
The armor shader ID applied to the F:Terraria.ModLoader.EquipType.Body equip texture by a dye item (F...
Definition Player.cs:3025
bool ShouldDrawWingsThatAreAlwaysAnimated()
Definition Player.cs:28270
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....
Definition Player.cs:2323
int[] grappling
Definition Player.cs:2840
int BiomeTorchHoldStyle(int style)
Definition Player.cs:39003
double bodyFrameCounter
Definition Player.cs:1574
Rectangle bodyFrame
Definition Player.cs:1886
float gfxOffY
An offset from the actual position of the player that will be added to the draw position....
Definition Player.cs:1814
double legFrameCounter
Definition Player.cs:1576
bool armorEffectDrawOutlines
Definition Player.cs:1721
void SetArmorEffectVisuals(Player drawPlayer)
Definition Player.cs:35931
bool armorEffectDrawShadow
Definition Player.cs:1717
bool armorEffectDrawShadowLokis
Definition Player.cs:1723
bool drawingFootball
Definition Player.cs:2773
bool armorEffectDrawShadowBasilisk
Definition Player.cs:1725
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
Definition Player.cs:1767
bool skipAnimatingValuesInPlayerFrame
Definition Player.cs:2042
bool CanVisuallyHoldItem(Item item)
Definition Player.cs:50998
bool shieldRaised
Definition Player.cs:3233
Rectangle legFrame
Definition Player.cs:1888
Stores T:Terraria.ID.ArmorIDs.Back and T:Terraria.ID.ArmorIDs.Front equips to be worm with a specifie...
Definition ArmorIDs.cs:656

References Terraria.Mount.Active, Terraria.Lighting.AddLight(), Terraria.ID.ArmorIDs.Face.Sets.AltFaceHead, Terraria.Player.ApplyArmorSoundAndDustChanges(), Terraria.Graphics.Shaders.GameShaders.Armor, Terraria.Player.armor, Terraria.Player.armorEffectDrawOutlines, Terraria.Player.armorEffectDrawOutlinesForbidden, Terraria.Player.armorEffectDrawShadow, Terraria.Player.armorEffectDrawShadowBasilisk, Terraria.Player.armorEffectDrawShadowEOCShield, Terraria.Player.armorEffectDrawShadowLokis, Terraria.Player.armorEffectDrawShadowSubtle, Terraria.Player.ArmorSetDye(), Terraria.Player.back, Terraria.Player.backpack, Terraria.Player.BiomeTorchHoldStyle(), Terraria.Player.body, Terraria.Mount.BodyFrame, Terraria.Player.bodyFrame, Terraria.Player.bodyFrameCounter, Terraria.Item.bodySlot, Terraria.Player.CancelAllJumpVisualEffects(), Terraria.Mount.CanHover(), Terraria.Player.CanVisuallyHoldItem(), Terraria.Player.carpetFrame, Terraria.Player.cBack, Terraria.Player.cBackpack, Terraria.Player.cBody, Terraria.Player.cFront, Terraria.Player.ChangeDir(), Terraria.Player.controlJump, Terraria.Player.controlLeft, Terraria.Player.controlRight, Terraria.Player.cTail, Terraria.Player.dead, Terraria.Entity.direction, Terraria.ID.ArmorIDs.Body.Sets.DisableBeltAccDraw, Terraria.ID.ArmorIDs.Body.Sets.DisableHandOnAndOffAccDraw, Terraria.ID.ArmorIDs.Back.Sets.DrawInBackpackLayer, Terraria.ID.ArmorIDs.Face.Sets.DrawInFaceUnderHairLayer, Terraria.Player.drawingFootball, Terraria.ID.ArmorIDs.Back.Sets.DrawInTailLayer, Terraria.Main.dust, Terraria.Player.eocDash, Terraria.Player.face, Terraria.Player.faceFlower, Terraria.Player.faceHead, Terraria.Mount.FlyTime, Terraria.Player.forceMerman, Terraria.Player.forceWerewolf, Terraria.Player.front, Terraria.Player.frozen, Terraria.Main.gameMenu, Terraria.Main.gamePaused, Terraria.Item.GetDrawHitbox(), Terraria.Mount.GetIntendedGroundedFrame(), Terraria.Player.gfxOffY, Terraria.Player.grapCount, Terraria.Player.grappling, Terraria.Player.gravDir, Terraria.Player.handoff, Terraria.Player.handon, Terraria.Player.happyFunTorchTime, Terraria.Player.head, Terraria.Item.headSlot, Terraria.Entity.height, Terraria.Player.HeldItem, Terraria.Player.hideMerman, Terraria.Player.hideWolf, Terraria.ModLoader.ItemLoader.HoldItemFrame(), Terraria.ID.ArmorIDs.Body.Sets.IncludeCapeFrontAndBack, Terraria.ID.ArmorIDs.Body.Sets.IncludedCapeBackFemale, Terraria.ID.ArmorIDs.Body.Sets.IncludedCapeFront, Terraria.Player.inventory, Terraria.ID.ArmorIDs.Waist.Sets.IsABelt, Terraria.Mount.IsConsideredASlimeMount, Terraria.Player.isDisplayDollOrInanimate, Terraria.GameContent.PlayerSittingHelper.isSitting, Terraria.GameContent.PlayerSleepingHelper.isSleeping, Terraria.ID.SoundID.Item24, Terraria.Player.itemAnimation, Terraria.Player.itemAnimationMax, Terraria.Player.itemRotation, Terraria.Player.jump, Terraria.Entity.lavaWet, Terraria.Player.legFrame, Terraria.Player.legFrameCounter, Terraria.Player.legs, Terraria.Item.legSlot, Terraria.Player.Male, Terraria.Player.merman, Terraria.Player.miscCounter, Terraria.Player.mount, Terraria.Dust.NewDust(), Terraria.Main.OffsetsPlayerHeadgear, Terraria.ID.ArmorIDs.Face.Sets.OverrideHelmet, Terraria.ModLoader.CombinedHooks.PlayerFrameEffects(), Terraria.Entity.position, Terraria.ModLoader.ItemLoader.PreUpdateVanitySet(), Terraria.Main.projectile, Terraria.Player.pulley, Terraria.Player.pulleyDir, Terraria.Player.rabbitOrderFrame, Terraria.Main.rand, Terraria.Player.rocketFrame, Terraria.ID.SoundID.Run, Terraria.Player.sandStorm, Terraria.Player.selectedItem, Terraria.Player.SetArmorEffectVisuals(), Terraria.Player.SetCompositeArmBack(), Terraria.Player.SetMatch(), Terraria.Player.shield, Terraria.Player.shieldRaised, Terraria.Player.shoe, Terraria.Player.ShouldDrawFootball(), Terraria.Player.ShouldDrawWingsThatAreAlwaysAnimated(), Terraria.Player.ShouldFloatInWater, Terraria.Player.sitting, Terraria.Player.skipAnimatingValuesInPlayerFrame, Terraria.Player.sleeping, Terraria.Player.sliding, Terraria.Player.slippy, Terraria.Player.slippy2, Terraria.Player.socialGhost, Terraria.Player.socialIgnoreLight, Terraria.Player.socialShadowRocketBoots, Terraria.Player.spiderArmor, Terraria.Player.stealth, Terraria.Player.stoned, Terraria.Player.swimTime, Terraria.Player.tail, Terraria.Mount.TryBeginningFlight(), Terraria.Mount.TryLanding(), Terraria.Player.turtleArmor, Terraria.Item.type, Terraria.Mount.Type, Terraria.Player.RabbitOrderFrameHelper.Update(), Terraria.Mount.UpdateFrame(), Terraria.ModLoader.ItemLoader.UpdateVanitySet(), Terraria.Player.UpdateVisibleAccessories(), Terraria.ID.ArmorIDs.Head.Sets.UseAltFaceHeadDraw, Terraria.ModLoader.ItemLoader.UseItemFrame(), Terraria.Entity.velocity, Terraria.Player.waist, Terraria.ID.ItemID.Sets.WaterTorches, Terraria.Player.wearsRobe, Terraria.Player.webbed, Terraria.Player.wereWolf, Terraria.Entity.wet, Terraria.Entity.width, Terraria.Player.windPushed, Terraria.Player.wings, and Terraria.Player.wingsLogic.

Referenced by Terraria.GameContent.UI.Elements.UICharacter.UICharacter(), Terraria.GameContent.Animations.Segments.PlayerSegment.Draw(), Terraria.Graphics.Renderers.LegacyPlayerRenderer.DrawPlayerFull(), Terraria.Player.LoadPlayer(), Terraria.GameContent.UI.Elements.UICharacter.Update(), and Terraria.Player.Update().

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