TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AI_179_FairyQueenLance()

void Terraria.Projectile.AI_179_FairyQueenLance ( )
inlineprivate

Definition at line 47258 of file Projectile.cs.

47259 {
47260 //IL_0030: Unknown result type (might be due to invalid IL or missing references)
47261 //IL_003a: Unknown result type (might be due to invalid IL or missing references)
47262 //IL_003f: Unknown result type (might be due to invalid IL or missing references)
47263 //IL_0055: Unknown result type (might be due to invalid IL or missing references)
47264 //IL_006b: Unknown result type (might be due to invalid IL or missing references)
47265 //IL_0071: Unknown result type (might be due to invalid IL or missing references)
47266 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
47267 //IL_009d: Unknown result type (might be due to invalid IL or missing references)
47268 //IL_00b2: Unknown result type (might be due to invalid IL or missing references)
47269 //IL_00b7: Unknown result type (might be due to invalid IL or missing references)
47270 localAI[0] += 1f;
47271 if (localAI[0] >= 60f)
47272 {
47273 velocity = ai[0].ToRotationVector2() * 40f;
47274 if (Main.rand.Next(3) == 0)
47275 {
47276 Dust dust = Dust.NewDustPerfect(base.Center, 267);
47277 dust.fadeIn = 1f;
47278 dust.noGravity = true;
47279 dust.alpha = 100;
47280 dust.color = Color.Lerp(AI_171_GetColor(), Color.White, Main.rand.NextFloat() * 0.4f);
47281 dust.noLightEmittence = true;
47282 dust.scale *= 1.5f;
47283 }
47284 }
47285 if (localAI[0] >= 360f)
47286 {
47287 Kill();
47288 return;
47289 }
47290 alpha = (int)MathHelper.Lerp(255f, 0f, Utils.GetLerpValue(0f, 20f, localAI[0], clamped: true));
47291 rotation = ai[0];
47292 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
int alpha
How transparent to draw this projectile. 0 to 255. 255 is completely transparent. ExampleBulletsets...
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...

References Terraria.Utils.GetLerpValue(), Terraria.Dust.NewDustPerfect(), and Terraria.Main.rand.

+ Here is the call graph for this function: