terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ BoringSetup()

void Terraria.DataStructures.PlayerDrawHeadSet.BoringSetup ( Player drawPlayer2,
DrawData[] drawData,
List< int > dust,
List< int > gore,
float X,
float Y,
float Alpha,
float Scale )
inline

Definition at line 28 of file PlayerDrawHeadSet.cs.

29 {
31 this.Dust = dust;
32 this.Gore = gore;
34 Vector2 position = drawPlayer2.position;
35 this.cHead = (int)X;
36 this.cUnicornHorn = (int)X;
37 this.Position = position;
38 int skinVariant = drawPlayer2.skinVariant;
39 this.skinVar = skinVariant;
40 byte hairDye = drawPlayer2.hairDye;
41 if (skinVariant == 0)
42 {
43 }
44 Player player = this.drawPlayer;
45 int num;
47 if (player.head == 0 && player.hairDye == 0)
48 {
49 if (player == null)
50 {
51 }
53 int num2;
55 }
56 int num3;
60 int num4 = player4.cHead;
62 int num5 = player4.cFaceFlower;
65 int num6 = player4.cBeard;
67 bool hasUnicornHorn = player4.hasUnicornHorn;
68 this.drawUnicornHorn = hasUnicornHorn;
69 bool hasAngelHalo = player4.hasAngelHalo;
70 this.drawAngelHalo = hasAngelHalo;
72 if (!hasAngelHalo)
73 {
74 player5 = this.drawPlayer;
75 }
76 int hair = player5.hair;
77 if (player5 == null)
78 {
79 }
80 int gemCount = player5.gemCount;
82 Color color;
83 this.colorEyeWhites = color;
84 Color color2 = Main.quickAlpha(player6.eyeColor, Alpha);
87 long num7 = 0L;
88 Color color3 = Main.quickAlpha(player7.GetHairColor(num7 != 0L), Alpha);
91 Color color4 = Main.quickAlpha(player8.skinColor, Alpha);
93 Color color5 = Main.quickAlpha(color4, Alpha);
97 if (player9.isDisplayDollOrInanimate)
98 {
99 if (player9 == null)
100 {
101 }
102 player10 = this.drawPlayer;
105 return;
106 }
107 Color color7 = this.colorHead;
109 int direction = player10.direction;
110 this.playerEffect = (SpriteEffects)direction;
111 int width = player10.legFrame.Width;
112 int height = player10.legFrame.Height;
115 if (player10 == null)
116 {
117 }
118 Vector2 screenPosition = Main.screenPosition;
121 int head = player12.head;
122 if (player12 == null)
123 {
124 }
125 int head2 = this.drawPlayer.head;
128 if (player14 == null)
129 {
130 }
131 if (player14 == null)
132 {
133 }
135 long entityId = player14.entityId;
137 if (player16 == null)
138 {
139 }
140 if (player16 == null)
141 {
142 }
144 long entityId2 = player16.entityId;
146 if (player18 == null)
147 {
148 }
149 if (player18 == null)
150 {
151 }
153 long entityId3 = player18.entityId;
155 if (player20 == null)
156 {
157 }
158 if (player20 == null)
159 {
160 }
162 long entityId4 = player20.entityId;
165 bool flag = this.hatHair;
166 int hair2 = player23.hair;
167 Vector2 hairDrawOffset = player23.GetHairDrawOffset(hair2, flag);
169 this.hairOffset.Y = (float)width;
170 Vector2 directions = player24.Directions;
173 this.helmetOffset.Y = (float)width;
174 Vector2 directions2 = player25.Directions;
175 int head3 = this.drawPlayer.head;
176 int num8 = 1;
177 this.helmetIsTall = num8 != 0;
178 }
class f__AnonymousType0<< Count > j__TPar
int HeightMapOffset
Definition Player.cs:289
Microsoft.Xna.Framework.Vector2 GetHelmetDrawOffset()
Definition Player.cs:1878

References Microsoft.Xna.Framework.Graphics.Alpha, Terraria.Player.cHead, Terraria.DataStructures.PlayerDrawHeadSet.colorHead, Terraria.DataStructures.PlayerDrawHeadSet.drawPlayer, Terraria.Entity.entityId, Terraria.Player.GetHelmetDrawOffset(), Terraria.Player.hair, Terraria.Player.hairDye, Terraria.DataStructures.PlayerDrawHeadSet.hatHair, Terraria.Player.head, Terraria.Player.HeightMapOffset, j__TPar, System.L, Terraria.Main.quickAlpha(), Terraria.Main.screenPosition, and System.X.