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

void Terraria.Projectile.AI_182_FinalFractal ( )
inlineprivate

Definition at line 2598 of file Projectile.cs.

2599 {
2600 int num = this.type;
2601 if (num == 0)
2602 {
2603 }
2604 Vector2 center = base.Center;
2605 if (num == 0)
2606 {
2607 }
2608 Vector2 vector;
2609 float num2 = vector.Length();
2610 if (num == 0)
2611 {
2612 }
2613 if (17136 == 0)
2614 {
2615 }
2616 int num3 = 1;
2617 float num4;
2618 float num5;
2619 float lerpValue = Utils.GetLerpValue(num4, num4, num5, num3 != 0);
2620 float x = this.velocity.X;
2621 float y = this.velocity.Y;
2622 float x2 = this.velocity.X;
2623 int num6 = 1;
2624 float num7;
2625 float lerpValue2 = Utils.GetLerpValue(num7, num4, lerpValue, num6 != 0);
2626 int num8 = 16928;
2627 float x3 = this.velocity.X;
2628 float y2 = this.velocity.Y;
2629 if (num8 == 0)
2630 {
2631 }
2632 if (num8 == 0)
2633 {
2634 }
2635 float num10;
2636 float num9 = MathHelper.Lerp(num10, num10, num5);
2637 int num11 = 1;
2638 float lerpValue3 = Utils.GetLerpValue(lerpValue2, num4, num10, num11 != 0);
2639 this.rotation = x2;
2640 float x4 = this.velocity.X;
2641 this.rotation = x4;
2642 int num12 = 32640;
2644 float num13 = this.rotation;
2645 if (num12 == 0)
2646 {
2647 }
2648 float num14;
2649 Vector2 vector2 = num14.ToRotationVector2();
2650 float num15 = base.Center.Length();
2651 int num16 = 1;
2652 float lerpValue4 = Utils.GetLerpValue(num15, num4, num4, num16 != 0);
2653 int num17 = 1;
2654 float lerpValue5 = Utils.GetLerpValue(lerpValue4, num4, num4, num17 != 0);
2655 int num18 = 52992;
2656 if (num18 == 0)
2657 {
2658 }
2659 if (num18 == 0)
2660 {
2661 }
2662 float num20;
2663 float num19 = MathHelper.Lerp(num20, num4, num20);
2664 int num21 = this.spriteDirection;
2665 float num22 = this.rotation;
2666 if (!true)
2667 {
2668 }
2669 Vector2 center2 = base.Center;
2670 int num23 = this.alpha;
2671 int num24 = this.alpha;
2672 int num25 = 1;
2673 float num26;
2674 float lerpValue6 = Utils.GetLerpValue(num26, num4, num26, num25 != 0);
2675 int num27 = 1;
2676 float num28;
2677 float lerpValue7 = Utils.GetLerpValue(num28, num4, num28, num27 != 0);
2679 int num30 = 32768;
2680 this.alpha = num30;
2681 }
class f__AnonymousType0<< Count > j__TPar
static float Lerp(float value1, float value2, float amount)
Definition MathHelper.cs:61
static float Clamp(float value, float min, float max)
Definition MathHelper.cs:22
Vector2 velocity
Definition Entity.cs:463
static FinalFractalHelper.FinalFractalProfile GetFinalFractalProfile(int usedSwordId)

References Terraria.Projectile.alpha, Microsoft.Xna.Framework.MathHelper.Clamp(), Terraria.Graphics.FinalFractalHelper.GetFinalFractalProfile(), Terraria.Utils.GetLerpValue(), j__TPar, Microsoft.Xna.Framework.Vector2.Length(), Microsoft.Xna.Framework.MathHelper.Lerp(), Terraria.Projectile.rotation, Terraria.Projectile.spriteDirection, Terraria.Projectile.type, Terraria.Entity.velocity, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.