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

◆ AI_181_FairyQueenRangedItemShot()

void Terraria.Projectile.AI_181_FairyQueenRangedItemShot ( )
inlineprivate

Definition at line 44775 of file Projectile.cs.

44776 {
44777 //IL_0045: Unknown result type (might be due to invalid IL or missing references)
44778 //IL_0065: Unknown result type (might be due to invalid IL or missing references)
44779 //IL_007b: Unknown result type (might be due to invalid IL or missing references)
44780 //IL_0081: Unknown result type (might be due to invalid IL or missing references)
44781 //IL_00c6: Unknown result type (might be due to invalid IL or missing references)
44782 //IL_00cb: Unknown result type (might be due to invalid IL or missing references)
44783 ai[0] += 1f;
44784 alpha = (int)MathHelper.Lerp(255f, 0f, Utils.GetLerpValue(0f, 10f, ai[0], clamped: true));
44785 rotation = velocity.ToRotation();
44786 if (Main.rand.Next(6) == 0)
44787 {
44788 Dust dust = Dust.NewDustPerfect(base.Center, 267);
44789 dust.fadeIn = 1f;
44790 dust.noGravity = true;
44791 dust.alpha = 100;
44792 dust.color = GetFairyQueenWeaponsColor(1f, Main.rand.NextFloat() * 0.4f);
44793 dust.noLightEmittence = true;
44794 dust.scale *= 1.5f;
44795 }
44796 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
Color GetFairyQueenWeaponsColor(float alphaChannelMultiplier=1f, float lerpToWhite=0f, float? rawHueOverride=null)
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 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: