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

◆ AI_180_FairyQueenSunDance()

void Terraria.Projectile.AI_180_FairyQueenSunDance ( )
inlineprivate

Definition at line 47189 of file Projectile.cs.

47190 {
47191 //IL_0015: Unknown result type (might be due to invalid IL or missing references)
47192 //IL_012b: Unknown result type (might be due to invalid IL or missing references)
47193 //IL_0130: Unknown result type (might be due to invalid IL or missing references)
47194 //IL_013b: Unknown result type (might be due to invalid IL or missing references)
47195 //IL_0140: Unknown result type (might be due to invalid IL or missing references)
47196 //IL_0170: Unknown result type (might be due to invalid IL or missing references)
47197 //IL_0175: Unknown result type (might be due to invalid IL or missing references)
47198 //IL_0179: Unknown result type (might be due to invalid IL or missing references)
47199 //IL_0184: Unknown result type (might be due to invalid IL or missing references)
47200 //IL_0197: Unknown result type (might be due to invalid IL or missing references)
47201 //IL_0120: Unknown result type (might be due to invalid IL or missing references)
47202 //IL_01a6: Unknown result type (might be due to invalid IL or missing references)
47203 //IL_01ab: Unknown result type (might be due to invalid IL or missing references)
47204 //IL_01af: Unknown result type (might be due to invalid IL or missing references)
47205 //IL_01b6: Unknown result type (might be due to invalid IL or missing references)
47206 //IL_01bb: Unknown result type (might be due to invalid IL or missing references)
47207 //IL_01c0: Unknown result type (might be due to invalid IL or missing references)
47208 //IL_01c5: Unknown result type (might be due to invalid IL or missing references)
47209 //IL_01c7: Unknown result type (might be due to invalid IL or missing references)
47210 //IL_01ce: Unknown result type (might be due to invalid IL or missing references)
47211 if (localAI[0] == 0f)
47212 {
47214 }
47215 localAI[0] += 1f;
47216 float num = 180f;
47217 _ = ai[0] / ((float)Math.PI * 2f);
47218 float num2 = (float)Math.PI / 9f;
47219 if (localAI[0] >= num)
47220 {
47221 Kill();
47222 return;
47223 }
47224 alpha -= 15;
47225 if (alpha < 0)
47226 {
47227 alpha = 0;
47228 }
47229 scale = Utils.GetLerpValue(0f, 20f, localAI[0], clamped: true) * Utils.GetLerpValue(num, num - 60f, localAI[0], clamped: true);
47230 float lerpValue = Utils.GetLerpValue(50f, num, localAI[0], clamped: true);
47231 rotation = ai[0] + lerpValue * num2;
47232 int num3 = (int)ai[1];
47233 if (Main.npc.IndexInRange(num3))
47234 {
47235 NPC nPC = Main.npc[num3];
47236 if (nPC.active && nPC.type == 636)
47237 {
47238 base.Center = nPC.Center;
47239 }
47240 velocity = Vector2.Zero;
47241 Vector2 vector = rotation.ToRotationVector2();
47242 Color val = Main.hslToRgb((ai[0] / ((float)Math.PI * 2f) + localAI[0] / num) % 1f, 1f, 0.85f);
47243 Vector3 v3_ = ((Color)(ref val)).ToVector3() * scale;
47244 float num4 = 800f * scale;
47245 DelegateMethods.v3_1 = v3_;
47246 for (float num5 = 0f; num5 <= 1f; num5 += 1f / 12f)
47247 {
47248 Point point = (base.Center + vector * num4 * num5).ToTileCoordinates();
47249 DelegateMethods.CastLightOpen(point.X, point.Y);
47250 }
47251 }
47252 else
47253 {
47254 Kill();
47255 }
47256 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
static readonly SoundStyle Item159
Definition SoundID.cs:995
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[] 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...
float scale
Scales how large the projectile will be drawn. Will also affect the hitbox (F:Terraria....

References Terraria.DelegateMethods.CastLightOpen(), Terraria.Utils.GetLerpValue(), Terraria.Main.hslToRgb(), Terraria.ID.SoundID.Item159, Terraria.Main.npc, and Terraria.Audio.SoundEngine.PlaySound().

+ Here is the call graph for this function: