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

◆ AI_139_ExplosiveTrapExplosion()

void Terraria.Projectile.AI_139_ExplosiveTrapExplosion ( )
inlineprivate

Definition at line 76236 of file Projectile.cs.

76237 {
76238 //IL_008f: Unknown result type (might be due to invalid IL or missing references)
76239 //IL_0094: Unknown result type (might be due to invalid IL or missing references)
76240 //IL_009a: Unknown result type (might be due to invalid IL or missing references)
76241 //IL_00a0: Unknown result type (might be due to invalid IL or missing references)
76242 int num = Main.projFrames[type];
76243 int num2 = 3;
76244 alpha -= 25;
76245 if (alpha < 0)
76246 {
76247 alpha = 0;
76248 }
76249 if (localAI[0] == 0f)
76250 {
76251 localAI[0] = 1f;
76252 }
76253 if (++frameCounter >= num2)
76254 {
76255 frameCounter = 0;
76256 if (++frame >= num)
76257 {
76258 Kill();
76259 return;
76260 }
76261 }
76262 DelegateMethods.v3_1 = new Vector3(1.3f, 0.9f, 0.2f);
76263 Utils.PlotTileLine(base.Top, base.Bottom, 2f, DelegateMethods.CastLightOpen);
76264 }
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....
int frame
The frame number in the spritesheet that this projectile will be drawn with. Assign in M:Terraria....
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
int frameCounter
Used as a timer to decide when to change F:Terraria.Projectile.frame. Defaults to 0.

References Terraria.DelegateMethods.CastLightOpen(), Terraria.Utils.PlotTileLine(), and Terraria.Main.projFrames.

+ Here is the call graph for this function: