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

◆ MakeBoulderOfEarthExplosion()

void Terraria.Projectile.MakeBoulderOfEarthExplosion ( )
inlineprivate

Definition at line 19408 of file Projectile.cs.

19409 {
19410 //IL_00b7: Unknown result type (might be due to invalid IL or missing references)
19411 //IL_00d3: Unknown result type (might be due to invalid IL or missing references)
19412 //IL_00d8: Unknown result type (might be due to invalid IL or missing references)
19413 //IL_00f1: Unknown result type (might be due to invalid IL or missing references)
19414 //IL_00fe: Unknown result type (might be due to invalid IL or missing references)
19415 //IL_0104: Unknown result type (might be due to invalid IL or missing references)
19416 localAI[0] = 40f;
19417 float mAX_SPREAD = 20f;
19418 int fluff = 10;
19419 int distFluff = 50;
19420 int layerStart = 1;
19421 int num = 6;
19422 if (((Vector2)(ref velocity)).Length() < 8f || Math.Abs(velocity.Y) < 4f)
19423 {
19424 mAX_SPREAD = 15f;
19425 fluff = 7;
19426 distFluff = 30;
19427 num = 4;
19428 }
19429 if (((Vector2)(ref velocity)).Length() < 4f || Math.Abs(velocity.Y) < 2f)
19430 {
19431 mAX_SPREAD = 15f;
19432 fluff = 7;
19433 distFluff = 30;
19434 num = 2;
19435 layerStart = 0;
19436 }
19437 int layerEnd = num;
19438 int num2 = num - 2;
19439 if (num2 < 1)
19440 {
19441 num2 = 1;
19442 }
19444 for (int i = 0; i < 10; i++)
19445 {
19446 Dust dust = Dust.NewDustPerfect(base.Center + Main.rand.NextVector2Circular(width / 2, height / 2), 228, Main.rand.NextVector2Circular(3f, 3f));
19447 dust.scale = 0.6f;
19448 if (i < 5)
19449 {
19450 dust.noGravity = true;
19451 dust.scale = 1.8f;
19452 }
19453 }
19454 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
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
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
void CreateGroundExplosion(float MAX_SPREAD, int fluff, int distFluff, int layerStart, int layerEnd, int layerJump)

References Terraria.Projectile.CreateGroundExplosion(), Terraria.Entity.height, Terraria.Projectile.localAI, Terraria.Dust.NewDustPerfect(), Terraria.Main.rand, Terraria.Entity.velocity, and Terraria.Entity.width.

Referenced by Terraria.Projectile.HandleMovement().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: