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_UseEventItems()

void Terraria.Player.ItemCheck_UseEventItems ( Item sItem)
inlineprivate

Definition at line 14201 of file Player.cs.

14202 {
14203 if (this.itemTime == 0)
14204 {
14205 int num = this.itemAnimation;
14206 if (sItem.type == 0)
14207 {
14208 }
14209 bool flag = Main.CanStartInvasion(1, 16777216 != 0);
14210 int useTime = sItem.useTime;
14211 float x = this.position.X;
14212 float y = this.position.Y;
14213 this.itemTime = useTime;
14214 this.itemTimeMax = useTime;
14215 if (useTime == 0)
14216 {
14217 }
14218 if (32640 != 0)
14219 {
14220 int whoAmI = this.whoAmI;
14221 if (useTime == 0)
14222 {
14223 }
14224 return;
14225 }
14226 if (32640 == 0)
14227 {
14228 }
14229 if (32640 == 0)
14230 {
14231 if (32640 == 0)
14232 {
14233 }
14234 Main.StartInvasion(1);
14235 }
14236 if (this.itemTime == 0)
14237 {
14238 int num2 = this.itemAnimation;
14239 if (sItem.type == 0)
14240 {
14241 }
14242 bool flag2 = Main.CanStartInvasion(2, 16777216 != 0);
14243 int useTime2 = sItem.useTime;
14244 float x2 = this.position.X;
14245 float y2 = this.position.Y;
14248 if (useTime2 == 0)
14249 {
14250 }
14251 if (32640 != 0)
14252 {
14253 int whoAmI2 = this.whoAmI;
14254 if (useTime2 == 0)
14255 {
14256 }
14257 return;
14258 }
14259 if (32640 == 0)
14260 {
14261 }
14262 if (32640 == 0)
14263 {
14264 if (32640 == 0)
14265 {
14266 }
14267 Main.StartInvasion(2);
14268 }
14269 if (this.itemTime == 0)
14270 {
14271 int num3 = this.itemAnimation;
14272 if (sItem.type == 0)
14273 {
14274 }
14275 bool flag3 = Main.CanStartInvasion(3, 16777216 != 0);
14276 int useTime3 = sItem.useTime;
14277 float x3 = this.position.X;
14278 float y3 = this.position.Y;
14281 if (useTime3 == 0)
14282 {
14283 }
14284 if (32640 != 0)
14285 {
14286 int whoAmI3 = this.whoAmI;
14287 if (useTime3 == 0)
14288 {
14289 }
14290 return;
14291 }
14292 if (32640 == 0)
14293 {
14294 }
14295 if (32640 == 0)
14296 {
14297 if (32640 == 0)
14298 {
14299 }
14300 Main.StartInvasion(3);
14301 }
14302 if (this.itemTime == 0)
14303 {
14304 int num4 = this.itemAnimation;
14305 if (sItem.type == 0)
14306 {
14307 }
14308 if (32640 == 0)
14309 {
14310 if (32640 == 0)
14311 {
14312 }
14313 if (32640 == 0)
14314 {
14315 if (32640 == 0)
14316 {
14317 }
14318 int useTime4 = sItem.useTime;
14319 float x4 = this.position.X;
14320 float y4 = this.position.Y;
14323 if (useTime4 == 0)
14324 {
14325 }
14326 if (useTime4 != 0)
14327 {
14328 int whoAmI4 = this.whoAmI;
14329 if (useTime4 == 0)
14330 {
14331 }
14332 return;
14333 }
14334 if (32640 == 0)
14335 {
14336 }
14337 if (32640 == 0)
14338 {
14339 }
14340 Main.startPumpkinMoon();
14341 }
14342 }
14343 if (this.itemTime == 0)
14344 {
14345 int num5 = this.itemAnimation;
14346 if (sItem.type == 0)
14347 {
14348 }
14349 if (32640 != 0)
14350 {
14351 if (32640 == 0)
14352 {
14353 }
14354 float x5 = this.position.X;
14355 float y5 = this.position.Y;
14356 int useTime5 = sItem.useTime;
14359 if (useTime5 == 0)
14360 {
14361 }
14362 int whoAmI5;
14363 if (32768 != 0)
14364 {
14365 whoAmI5 = this.whoAmI;
14366 if (useTime5 == 0)
14367 {
14368 }
14369 return;
14370 }
14371 if (32768 == 0)
14372 {
14373 }
14374 if (!true)
14375 {
14376 }
14377 if (whoAmI5 != 0)
14378 {
14379 return;
14380 }
14381 if (!true)
14382 {
14383 }
14384 }
14385 if (this.itemTime == 0)
14386 {
14387 int num6 = this.itemAnimation;
14388 if (sItem.type == 0)
14389 {
14390 }
14391 if (4271 == 0)
14392 {
14393 if (4271 == 0)
14394 {
14395 }
14396 float x6 = this.position.X;
14397 float y6 = this.position.Y;
14398 int useTime6 = sItem.useTime;
14401 if (useTime6 == 0)
14402 {
14403 }
14404 if (useTime6 != 0)
14405 {
14406 int whoAmI6 = this.whoAmI;
14407 if (useTime6 == 0)
14408 {
14409 }
14410 return;
14411 }
14413 if (useTime6 == 0)
14414 {
14415 }
14416 if (32768 == 0)
14417 {
14418 }
14419 if (5 == 0)
14420 {
14421 }
14422 if (5 == 0)
14423 {
14424 }
14425 }
14426 if (this.itemTime == 0)
14427 {
14428 int num7 = this.itemAnimation;
14429 int type = sItem.type;
14430 if (type == 0)
14431 {
14432 }
14433 if (type != 0)
14434 {
14435 if (type == 0)
14436 {
14437 }
14438 if (type != 0)
14439 {
14440 if (type == 0)
14441 {
14442 }
14443 long num8 = 0L;
14444 long num9 = 0L;
14445 bool flag4 = NPC.AnyDanger(num8 != 0L, num9 != 0L);
14446 if (type == 0)
14447 {
14448 }
14449 bool flag5 = NPC.AnyoneNearCultists();
14450 float x7 = this.position.X;
14451 float y7 = this.position.Y;
14452 int useTime7 = sItem.useTime;
14455 if (useTime7 == 0)
14456 {
14457 }
14458 if (useTime7 != 0)
14459 {
14460 int whoAmI7 = this.whoAmI;
14461 if (useTime7 == 0)
14462 {
14463 }
14464 return;
14465 }
14466 WorldGen.StartImpendingDoom(720);
14467 }
14468 }
14469 if (this.itemTime == 0)
14470 {
14471 int num10 = this.itemAnimation;
14472 if (sItem.type == 0)
14473 {
14474 }
14475 while (32768 != 0)
14476 {
14477 }
14478 if (32768 == 0)
14479 {
14480 }
14481 while (32768 != 0)
14482 {
14483 }
14484 if (32768 == 0)
14485 {
14486 }
14487 int useTime8 = sItem.useTime;
14488 float x8 = this.position.X;
14489 float y8 = this.position.Y;
14492 if (useTime8 == 0)
14493 {
14494 }
14495 if (useTime8 != 0)
14496 {
14497 int whoAmI8 = this.whoAmI;
14498 if (useTime8 == 0)
14499 {
14500 }
14501 return;
14502 }
14503 if (32640 == 0)
14504 {
14505 }
14506 if (32640 == 0)
14507 {
14508 }
14509 Main.startSnowMoon();
14510 return;
14511 }
14512 }
14513 }
14514 }
14515 }
14516 }
14517 }
14518 }
14519 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460

References Terraria.NPC.AnyDanger(), Terraria.NPC.AnyoneNearCultists(), Terraria.Main.CanStartInvasion(), Terraria.Player.itemAnimation, Terraria.Player.itemTime, j__TPar, System.L, Terraria.GameContent.Achievements.AchievementsHelper.NotifyProgressionEvent(), Terraria.Entity.position, Terraria.WorldGen.StartImpendingDoom(), Terraria.Main.StartInvasion(), Terraria.Main.startPumpkinMoon(), Terraria.Main.startSnowMoon(), Terraria.Item.type, Terraria.Item.useTime, Terraria.Entity.whoAmI, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.