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

◆ AI_172_GetPelletStormInfo()

HallowBossPelletStormInfo Terraria.Projectile.AI_172_GetPelletStormInfo ( int stormIndex)
inline

Definition at line 37589 of file Projectile.cs.

37590 {
37591 float from = 0f + (float)stormIndex * 10f;
37592 float to = 90f + (float)stormIndex * 10f;
37593 HallowBossPelletStormInfo result = default(HallowBossPelletStormInfo);
37594 result.StartAngle = (float)stormIndex * ((float)Math.PI / 3f) - (float)Math.PI / 2f + (float)stormIndex * ((float)Math.PI / 5f);
37595 result.AnglePerBullet = (float)Math.PI * 2f / 3f;
37596 result.BulletsInStorm = 3;
37597 result.BulletsProgressInStormStartNormalized = Utils.GetLerpValue(from, to, localAI[0]);
37598 result.BulletsProgressInStormBonusByIndexNormalized = 0f;
37599 result.StormTotalRange = 500f;
37600 result.BulletSize = new Vector2(16f, 16f);
37601 return result;
37602 }
const double PI
Definition Math.cs:16

References Terraria.Utils.GetLerpValue(), and System.Math.PI.

Referenced by Terraria.Projectile.Colliding().