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

◆ AI_117_BloodNautilus()

void Terraria.NPC.AI_117_BloodNautilus ( )
inlineprivate

Definition at line 2444 of file NPC.cs.

2445 {
2446 float[] array = this.localAI;
2447 int num = 255;
2448 this.alpha = num;
2449 if (array == null)
2450 {
2451 }
2452 bool logicHost = Main.LogicHost;
2453 float[] array2 = this.ai;
2454 int num2 = 49024;
2455 int num3 = 1;
2456 this.netUpdate = num3 != 0;
2457 float[] array3 = this.ai;
2458 if (array3 == null)
2459 {
2460 }
2461 int num4;
2462 if (num4 == 0)
2463 {
2464 float x = this.position.X;
2465 float y = this.position.Y;
2466 float x2 = this.netOffset.X;
2467 float y2 = this.netOffset.Y;
2468 if (array3 == null)
2469 {
2470 }
2471 int width = this.width;
2472 bool wet = this.wet;
2473 if (array3 == null)
2474 {
2475 }
2476 Dust dust;
2477 float x3 = dust.velocity.X;
2478 float y3 = dust.velocity.Y;
2482 int num5 = 120;
2483 dust.alpha = num5;
2484 if (num5 == 0)
2485 {
2486 }
2487 if (num2 == 0)
2488 {
2489 }
2490 dust.scale = x3;
2491 float x4 = dust.velocity.X;
2492 float y4 = dust.velocity.Y;
2493 float x5 = this.velocity.X;
2494 float y5 = this.velocity.Y;
2496 float x6 = this.position.X;
2497 float y6 = this.position.Y;
2498 float x7 = this.netOffset.X;
2499 float y7 = this.netOffset.Y;
2502 }
2503 int num6 = this.target;
2504 int num7 = 1;
2505 this.TargetClosest(num7 != 0);
2506 int direction = this.direction;
2507 float[] array4 = this.ai;
2508 bool dead = this.TargetPlayer.dead;
2509 int num8;
2510 if (!dead)
2511 {
2512 Vector2 center = this.TargetPlayer.Center;
2513 Vector2 center2 = base.Center;
2514 if (!dead)
2515 {
2516 }
2517 num8 = 17658;
2518 }
2519 int num9 = 1;
2520 this.TargetClosest(num9 != 0);
2521 int num10 = 1;
2522 NPCAimedTarget targetData = this.GetTargetData(num10 != 0);
2523 if (num8 == 0)
2524 {
2525 }
2526 if (num2 != 0)
2527 {
2528 return;
2529 }
2530 if (num2 == 0)
2531 {
2532 }
2533 float[] array5 = this.ai;
2534 }
class f__AnonymousType0<< Count > j__TPar
Vector2 Center
Definition Entity.cs:134
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
Vector2 netOffset
Definition NPC.cs:11129
float[] localAI
Definition NPC.cs:11387
Player TargetPlayer
Definition NPC.cs:78
void TargetClosest(bool faceTarget=true)
Definition NPC.cs:4701
NPCAimedTarget GetTargetData(bool ignorePlayerTankPets=true)
Definition NPC.cs:250
float[] ai
Definition NPC.cs:11384
int target
Definition NPC.cs:11402

References Terraria.NPC.ai, System.array, Terraria.Entity.Center, Terraria.Player.dead, Terraria.Entity.direction, Terraria.NPC.GetTargetData(), j__TPar, Terraria.NPC.localAI, Terraria.Main.LogicHost, Terraria.NPC.netOffset, Terraria.Entity.position, Terraria.NPC.target, Terraria.NPC.TargetClosest(), Terraria.NPC.TargetPlayer, Terraria.Dust.velocity, Terraria.Entity.velocity, Terraria.Entity.wet, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.