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

◆ AI_172_GetPelletStormInfo()

HallowBossPelletStormInfo Terraria.Projectile.AI_172_GetPelletStormInfo ( int stormIndex)
inline

Definition at line 48119 of file Projectile.cs.

48120 {
48121 //IL_0093: Unknown result type (might be due to invalid IL or missing references)
48122 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
48123 float from = 0f + (float)stormIndex * 10f;
48124 float to = 90f + (float)stormIndex * 10f;
48125 HallowBossPelletStormInfo result = default(HallowBossPelletStormInfo);
48126 result.StartAngle = (float)stormIndex * ((float)Math.PI / 3f) - (float)Math.PI / 2f + (float)stormIndex * ((float)Math.PI / 5f);
48127 result.AnglePerBullet = (float)Math.PI * 2f / 3f;
48128 result.BulletsInStorm = 3;
48129 result.BulletsProgressInStormStartNormalized = Utils.GetLerpValue(from, to, localAI[0]);
48130 result.BulletsProgressInStormBonusByIndexNormalized = 0f;
48131 result.StormTotalRange = 500f;
48132 result.BulletSize = new Vector2(16f, 16f);
48133 return result;
48134 }
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....

References Terraria.Utils.GetLerpValue().

Referenced by Terraria.Projectile.Colliding().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: