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

◆ AI_181_FairyQueenRangedItemShot()

void Terraria.Projectile.AI_181_FairyQueenRangedItemShot ( )
inlineprivate

Definition at line 35244 of file Projectile.cs.

35245 {
35246 ai[0] += 1f;
35247 alpha = (int)MathHelper.Lerp(255f, 0f, Utils.GetLerpValue(0f, 10f, ai[0], clamped: true));
35248 rotation = velocity.ToRotation();
35249 if (Main.rand.Next(6) == 0)
35250 {
35251 Dust dust = Dust.NewDustPerfect(base.Center, 267);
35252 dust.fadeIn = 1f;
35253 dust.noGravity = true;
35254 dust.alpha = 100;
35255 dust.color = GetFairyQueenWeaponsColor(1f, Main.rand.NextFloat() * 0.4f);
35256 dust.noLightEmittence = true;
35257 dust.scale *= 1.5f;
35258 }
35259 }
static float Lerp(float value1, float value2, float amount)
Definition MathHelper.cs:53
Vector2 velocity
Definition Entity.cs:16
Color GetFairyQueenWeaponsColor(float alphaChannelMultiplier=1f, float lerpToWhite=0f, float? rawHueOverride=null)

References Terraria.Utils.GetLerpValue(), Microsoft.Xna.Framework.MathHelper.Lerp(), Terraria.Dust.NewDustPerfect(), and Terraria.Main.rand.