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

◆ AI_151_SuperStar()

void Terraria.Projectile.AI_151_SuperStar ( )
inlineprivate

Definition at line 20999 of file Projectile.cs.

21000 {
21001 //IL_00a6: Unknown result type (might be due to invalid IL or missing references)
21002 //IL_00ab: Unknown result type (might be due to invalid IL or missing references)
21003 //IL_00ae: Unknown result type (might be due to invalid IL or missing references)
21004 //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
21005 //IL_00b9: Unknown result type (might be due to invalid IL or missing references)
21006 //IL_00be: Unknown result type (might be due to invalid IL or missing references)
21007 //IL_00c3: Unknown result type (might be due to invalid IL or missing references)
21008 //IL_00c9: Unknown result type (might be due to invalid IL or missing references)
21009 //IL_00ce: Unknown result type (might be due to invalid IL or missing references)
21010 //IL_00d3: Unknown result type (might be due to invalid IL or missing references)
21011 //IL_0045: Unknown result type (might be due to invalid IL or missing references)
21012 //IL_00ed: Unknown result type (might be due to invalid IL or missing references)
21013 //IL_00f3: Unknown result type (might be due to invalid IL or missing references)
21014 //IL_00fd: Unknown result type (might be due to invalid IL or missing references)
21015 //IL_0147: Unknown result type (might be due to invalid IL or missing references)
21016 //IL_0168: Unknown result type (might be due to invalid IL or missing references)
21017 //IL_016e: Unknown result type (might be due to invalid IL or missing references)
21018 //IL_017c: Unknown result type (might be due to invalid IL or missing references)
21019 //IL_0186: Unknown result type (might be due to invalid IL or missing references)
21020 //IL_018b: Unknown result type (might be due to invalid IL or missing references)
21021 //IL_01a3: Unknown result type (might be due to invalid IL or missing references)
21022 //IL_01a9: Unknown result type (might be due to invalid IL or missing references)
21023 //IL_01c1: Unknown result type (might be due to invalid IL or missing references)
21024 //IL_01c7: Unknown result type (might be due to invalid IL or missing references)
21025 //IL_01c9: Unknown result type (might be due to invalid IL or missing references)
21026 //IL_01d3: Unknown result type (might be due to invalid IL or missing references)
21027 //IL_01d8: Unknown result type (might be due to invalid IL or missing references)
21028 //IL_01dd: Unknown result type (might be due to invalid IL or missing references)
21029 alpha -= 10;
21030 int num = 100;
21031 if (alpha < num)
21032 {
21033 alpha = num;
21034 }
21035 if (soundDelay == 0)
21036 {
21037 soundDelay = 20 + Main.rand.Next(40);
21039 }
21040 rotation += (Math.Abs(velocity.X) + Math.Abs(velocity.Y)) * 0.005f * (float)direction;
21041 Vector2 vector = default(Vector2);
21042 ((Vector2)(ref vector))._002Ector((float)Main.screenWidth, (float)Main.screenHeight);
21043 Rectangle hitbox = base.Hitbox;
21044 if (((Rectangle)(ref hitbox)).Intersects(Utils.CenteredRectangle(Main.screenPosition + vector / 2f, vector + new Vector2(400f))) && Main.rand.Next(6) == 0)
21045 {
21046 Gore.NewGore(position, velocity * 0.2f, Utils.SelectRandom<int>(Main.rand, 16, 17, 17, 17));
21047 }
21048 for (int i = 0; i < 2; i++)
21049 {
21050 if (Main.rand.Next(8) == 0)
21051 {
21052 int num2 = 228;
21053 Dust dust = Dust.NewDustDirect(position, width, height, num2, 0f, 0f, 127);
21054 dust.velocity *= 0.25f;
21055 dust.scale = 1.3f;
21056 dust.noGravity = true;
21057 dust.velocity += velocity.RotatedBy((float)Math.PI / 8f * (1f - (float)(2 * i))) * 0.2f;
21058 }
21059 }
21060 }
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
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
static readonly SoundStyle Item9
Definition SoundID.cs:695
int alpha
How transparent to draw this projectile. 0 to 255. 255 is completely transparent. ExampleBulletsets...
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...

References Terraria.Projectile.alpha, Terraria.Utils.CenteredRectangle(), Terraria.Entity.direction, Terraria.Entity.height, Terraria.ID.SoundID.Item9, Terraria.Dust.NewDustDirect(), Terraria.Gore.NewGore(), Terraria.Audio.SoundEngine.PlaySound(), Terraria.Entity.position, Terraria.Main.rand, Terraria.Projectile.rotation, Terraria.Main.screenHeight, Terraria.Main.screenPosition, Terraria.Main.screenWidth, Terraria.Projectile.soundDelay, Terraria.Entity.velocity, and Terraria.Entity.width.

+ Here is the call graph for this function: