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

void Terraria.Projectile.AI_157_SharpTears ( )
inlineprivate

Definition at line 4087 of file Projectile.cs.

4088 {
4089 int num = this.type;
4090 int num2 = 5;
4091 int num3 = 16;
4092 float x = this.velocity.X;
4093 float y = this.velocity.Y;
4094 if (num2 == 0)
4095 {
4096 }
4097 if (num2 == 0)
4098 {
4099 }
4100 int num4;
4101 this.frame = num4;
4102 Vector2 center = base.Center;
4103 if (num3 == 0)
4104 {
4105 }
4106 float x2 = this.velocity.X;
4107 float y2 = this.velocity.Y;
4108 float num6;
4109 float num7;
4110 float num5 = MathHelper.Lerp(num6, num7, num6);
4111 Dust dust;
4112 float x3 = dust.velocity.X;
4113 float y3 = dust.velocity.Y;
4115 dust.scale = x2;
4116 int num8 = 16256;
4117 Vector2 center2 = base.Center;
4118 float x4 = this.velocity.X;
4119 float y4 = this.velocity.Y;
4120 float num10;
4121 float num11;
4122 float num9 = MathHelper.Lerp(num10, num11, num10);
4123 Dust dust2;
4124 float x5 = dust2.velocity.X;
4125 float y5 = dust2.velocity.Y;
4127 dust2.scale = x4;
4128 dust2.fadeIn = (float)num8;
4129 int num12 = this.type;
4130 Vector2 center3 = base.Center;
4131 int num13 = this.alpha;
4132 int num14 = 17279;
4133 float num16;
4135 int num17 = 32640;
4136 this.alpha = num14;
4137 this.scale = (float)num13;
4138 Vector2 center4 = base.Center;
4139 if (num17 == 0)
4140 {
4141 }
4142 float x6 = this.velocity.X;
4143 float y6 = this.velocity.Y;
4144 float num19;
4145 float num18 = MathHelper.Lerp(num11, num7, num19);
4146 Dust dust3;
4147 float x7 = dust3.velocity.X;
4148 float y7 = dust3.velocity.Y;
4151 dust3.scale = x6;
4152 int num20 = this.alpha;
4153 int num21 = 17279;
4154 float num23;
4155 float num24;
4157 int num25 = 32640;
4158 this.alpha = num21;
4159 Vector2 center5 = base.Center;
4160 if (num25 == 0)
4161 {
4162 }
4163 float x8 = this.velocity.X;
4164 float y8 = this.velocity.Y;
4165 float num27;
4166 float num26 = MathHelper.Lerp(num11, num24, num27);
4167 Dust dust4;
4168 float x9 = dust4.velocity.X;
4169 float y9 = dust4.velocity.Y;
4172 dust4.scale = x8;
4173 this.Kill();
4174 int num28 = this.type;
4175 Vector2 center6 = base.Center;
4176 float num29 = this.scale;
4177 }
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

References Terraria.Projectile.alpha, Microsoft.Xna.Framework.MathHelper.Clamp(), j__TPar, Terraria.Projectile.Kill(), Microsoft.Xna.Framework.MathHelper.Lerp(), Terraria.Projectile.scale, Terraria.Projectile.type, Terraria.Dust.velocity, Terraria.Entity.velocity, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.