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

◆ ItemCheck_EmitUseVisuals()

Rectangle Terraria.Player.ItemCheck_EmitUseVisuals ( Item sItem,
Rectangle itemRectangle )
inlineprivate

Definition at line 15103 of file Player.cs.

15104 {
15105 int type = sItem.type;
15106 if (type == 0)
15107 {
15108 }
15109 int num;
15110 if (num == 0)
15111 {
15112 if (type == 0)
15113 {
15114 }
15115 int num2 = 15;
15116 int direction = this.direction;
15117 if (num2 == 0)
15118 {
15119 }
15120 }
15121 int type2 = sItem.type;
15122 if (type2 == 0)
15123 {
15124 }
15125 int num3;
15126 int num4;
15127 if (num3 == 0)
15128 {
15129 if (type2 == 0)
15130 {
15131 }
15132 int direction2 = this.direction;
15133 num4 = 1;
15134 }
15135 int type3 = sItem.type;
15136 long num5 = 3L;
15137 if (type3 == 0)
15138 {
15139 }
15140 int num6;
15141 if (num6 == 0)
15142 {
15143 int direction3 = this.direction;
15144 }
15145 if (sItem.type == 0)
15146 {
15147 }
15148 int num7;
15149 if (num7 == 0)
15150 {
15151 int direction4 = this.direction;
15152 }
15153 if (sItem.type == 0)
15154 {
15155 }
15156 int num8;
15157 if (num8 == 0)
15158 {
15159 int direction5 = this.direction;
15160 }
15161 int direction6 = this.direction;
15162 float x = this.velocity.X;
15163 float y = this.velocity.Y;
15164 if (num4 == 0)
15165 {
15166 }
15167 int num9 = 1;
15168 if (sItem.type == 0)
15169 {
15170 }
15171 int num10;
15172 int num11;
15173 if (num10 == 0)
15174 {
15175 if (num9 == 0)
15176 {
15177 }
15178 num11 = 1;
15179 }
15180 if (sItem.type == 0)
15181 {
15182 }
15183 int num12;
15184 if (num12 == 0)
15185 {
15186 }
15187 int num13;
15188 if (num13 != 0 || num11 == 0)
15189 {
15190 }
15191 int type4 = sItem.type;
15192 if (num11 == 0)
15193 {
15194 }
15195 int num14;
15196 if (num14 == 0)
15197 {
15198 int direction7 = this.direction;
15199 }
15200 int type5 = sItem.type;
15201 int num15 = 5295;
15202 int direction8 = this.direction;
15203 float x2 = this.velocity.X;
15204 float y2 = this.velocity.Y;
15205 int direction9 = this.direction;
15206 float x3 = this.velocity.X;
15207 float y3 = this.velocity.Y;
15208 if (num15 == 0)
15209 {
15210 }
15211 int type6 = sItem.type;
15212 int num16 = 1;
15213 bool melee = sItem.melee;
15214 float scale = sItem.scale;
15215 bool flag;
15216 if (melee)
15217 {
15218 flag = this.meleeScaleGlove;
15219 if (flag)
15220 {
15221 }
15222 }
15223 int direction10 = this.direction;
15224 float num17 = this.gravDir;
15225 Dust dust;
15226 dust.noGravity = num16 != 0;
15227 int type7 = sItem.type;
15228 int direction11 = this.direction;
15229 float x4 = this.velocity.X;
15230 float y4 = this.velocity.Y;
15231 if (!flag)
15232 {
15233 }
15234 int num18 = 1;
15235 int type8 = sItem.type;
15236 int direction12 = this.direction;
15237 float x5 = this.velocity.X;
15238 float y5 = this.velocity.Y;
15239 if (num18 == 0)
15240 {
15241 }
15242 if (sItem.type == 0)
15243 {
15244 }
15245 int num19;
15246 if (num19 == 0)
15247 {
15248 int direction13 = this.direction;
15249 float x6 = this.velocity.X;
15250 float y6 = this.velocity.Y;
15251 if (num18 == 0)
15252 {
15253 }
15254 }
15255 int type9 = sItem.type;
15256 if (num5 == 0L)
15257 {
15258 }
15259 if (num18 == 0)
15260 {
15261 }
15262 int type10 = sItem.type;
15263 int direction14 = this.direction;
15264 float x7 = this.velocity.X;
15265 float y7 = this.velocity.Y;
15266 if (num5 == 0L)
15267 {
15268 }
15269 int num20 = 1;
15270 Dust dust2;
15271 dust2.noGravity = num20 != 0;
15272 float x8 = dust2.velocity.X;
15273 float y8 = dust2.velocity.Y;
15274 int num21 = 26214;
15275 dust2.fadeIn = (float)num21;
15276 if (sItem.type == 0)
15277 {
15278 }
15279 int num22;
15280 if (num22 == 0)
15281 {
15282 int direction15 = this.direction;
15283 float x9 = this.velocity.X;
15284 float y9 = this.velocity.Y;
15285 if (num18 == 0)
15286 {
15287 }
15288 }
15289 int type11 = sItem.type;
15290 bool melee2 = sItem.melee;
15291 float scale2 = sItem.scale;
15292 bool flag2;
15293 if (melee2)
15294 {
15295 flag2 = this.meleeScaleGlove;
15296 if (flag2)
15297 {
15298 }
15299 }
15300 int direction16 = this.direction;
15301 float num23 = this.gravDir;
15302 int num24;
15303 if (num24 == 0)
15304 {
15305 int direction17 = this.direction;
15306 float x10 = this.velocity.X;
15307 float y10 = this.velocity.Y;
15308 if (!flag2)
15309 {
15310 }
15311 }
15312 if (sItem.type == 0)
15313 {
15314 }
15315 int num25;
15316 if (num25 != 0)
15317 {
15318 }
15319 int direction18 = this.direction;
15320 float x11 = this.velocity.X;
15321 float y11 = this.velocity.Y;
15322 if (!flag2)
15323 {
15324 }
15325 int direction19 = this.direction;
15326 if (!flag2)
15327 {
15328 }
15329 int num26;
15330 if (num26 == 0)
15331 {
15332 if (!flag2)
15333 {
15334 }
15335 }
15336 int type12 = sItem.type;
15337 float x12 = this.itemLocation.X;
15338 float x13 = this.velocity.X;
15339 float y12 = this.itemLocation.Y;
15340 int num27;
15341 float num28;
15342 float num29;
15343 Lighting.AddLight(1073741824, num27, num28, num29, num29);
15344 return 1073741824;
15345 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Microsoft.Xna.Framework.Vector2 itemLocation
Definition Player.cs:21152
bool meleeScaleGlove
Definition Player.cs:22400

References Terraria.Lighting.AddLight(), Terraria.Entity.direction, Terraria.Player.gravDir, Terraria.Player.itemLocation, j__TPar, System.L, Terraria.Player.meleeScaleGlove, Terraria.Dust.type, Terraria.Item.type, Terraria.Dust.velocity, Terraria.Entity.velocity, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.