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

◆ AI_139_ExplosiveTrapExplosion()

void Terraria.Projectile.AI_139_ExplosiveTrapExplosion ( )
inlineprivate

Definition at line 58337 of file Projectile.cs.

58338 {
58339 int num = Main.projFrames[type];
58340 int num2 = 3;
58341 alpha -= 25;
58342 if (alpha < 0)
58343 {
58344 alpha = 0;
58345 }
58346 if (localAI[0] == 0f)
58347 {
58348 localAI[0] = 1f;
58349 }
58350 if (++frameCounter >= num2)
58351 {
58352 frameCounter = 0;
58353 if (++frame >= num)
58354 {
58355 Kill();
58356 return;
58357 }
58358 }
58359 DelegateMethods.v3_1 = new Vector3(1.3f, 0.9f, 0.2f);
58360 Utils.PlotTileLine(base.Top, base.Bottom, 2f, DelegateMethods.CastLightOpen);
58361 }

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