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

◆ AI_172_HallowBossRainbowPelletStorm()

void Terraria.Projectile.AI_172_HallowBossRainbowPelletStorm ( )
inlineprivate

Definition at line 48073 of file Projectile.cs.

48074 {
48075 //IL_00d1: Unknown result type (might be due to invalid IL or missing references)
48076 //IL_00d6: Unknown result type (might be due to invalid IL or missing references)
48077 //IL_010f: Unknown result type (might be due to invalid IL or missing references)
48078 //IL_0114: Unknown result type (might be due to invalid IL or missing references)
48079 if (localAI[1] <= 90f)
48080 {
48081 localAI[1] += 1f;
48082 scale = 0.5f;
48083 Opacity = 0.5f;
48084 float lerpValue = Utils.GetLerpValue(0f, 90f, localAI[1]);
48085 scale = MathHelper.Lerp(5f, 1f, lerpValue);
48086 Opacity = 1f - (1f - lerpValue * lerpValue);
48087 return;
48088 }
48089 scale = 1f;
48090 Opacity = 1f;
48091 float num = 150f + 10f * (float)AI_172_GetPelletStormsCount();
48092 localAI[0] += 1f;
48093 if (localAI[0] >= num)
48094 {
48095 Kill();
48096 return;
48097 }
48098 velocity = Vector2.Zero;
48099 rotation = 0f;
48101 for (int i = 0; i < num2; i++)
48102 {
48103 HallowBossPelletStormInfo hallowBossPelletStormInfo = AI_172_GetPelletStormInfo(i);
48104 for (int j = 0; j < hallowBossPelletStormInfo.BulletsInStorm; j++)
48105 {
48106 if (hallowBossPelletStormInfo.IsValid(j))
48107 {
48108 hallowBossPelletStormInfo.GetBulletPosition(j, base.Center);
48109 }
48110 }
48111 }
48112 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
HallowBossPelletStormInfo AI_172_GetPelletStormInfo(int stormIndex)
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...
int AI_172_GetPelletStormsCount()
float scale
Scales how large the projectile will be drawn. Will also affect the hitbox (F:Terraria....

References Terraria.Utils.GetLerpValue().

+ Here is the call graph for this function: