77550 {
77551
77552
77553
77554
77555
77556
77557
77558
77559
77560
77561
77562
77563
77564
77565
77566
77567
77568
77569
77570
77571
77572
77573
77574
77575
77576
77577
77578
77579
77580
77581
77582
77583
77584
77585
77586
77587
77588
77589
77590
77591
77592
77593
77594
77595
77596
77597
77598
77599
77600
77601
77602
77603
77604
77605
77606
77609 {
77612 }
77615 {
77616 activeSound.Position =
base.Center;
77617 activeSound.Volume = 1
f -
Math.Max(
ai[0] - (
num - 15
f), 0
f) / 15
f;
77618 }
77619 else
77620 {
77622 }
77624 {
77626 }
77629 {
77631 }
77632 Vector2 top =
base.Top;
77633 Vector2 bottom =
base.Bottom;
77634 Vector2
vector = Vector2.Lerp(top, bottom, 0.5
f);
77635 Vector2
vector2 =
default(Vector2);
77637 vector2.X = vector2.Y * 0.2f;
77640 Vector2
vector3 =
default(Vector2);
77641 for (int i = 0; i < 1; i++)
77642 {
77645 {
77647 {
77649 }
77651 {
77653 }
77654 else
77655 {
77658 }
77660 {
77662 }
77663 continue;
77664 }
77667 {
77669 }
77671 {
77673 }
77675 {
77677 }
77678 else
77679 {
77681 }
77683 {
77685 }
77686 }
77688 {
77689 Vector2
vector4 =
default(Vector2);
77690 Vector2
vector5 =
default(Vector2);
77691 for (
int j = 0;
j < 1;
j++)
77692 {
77695 float amount = Main.rand.NextFloat();
77701 Dust dust = Main.dust[Dust.NewDust(
vector6, 0, 0, 274)];
77703 dust.fadeIn = 1.3f;
77704 dust.scale = 0.87f;
77705 dust.alpha = 211;
77707 {
77708 dust.velocity.X = 1
f + Main.rand.NextFloat();
77709 }
77710 dust.noGravity = true;
77711 dust.velocity.Y = Main.rand.NextFloat() * -0.5f - 1.3f;
77712 dust.velocity.X += velocity.X * 2.1f;
77713 dust.noLight = true;
77714 }
77715 }
77716 Vector2
vector7 = base.Bottom +
new Vector2(-25
f, -25
f);
77717 for (
int k = 0;
k < 4;
k++)
77718 {
77720 dust2.fadeIn = 1.1f;
77721 dust2.noGravity = true;
77722 }
77723 for (
int l = 0;
l < 1;
l++)
77724 {
77725 if (Main.rand.Next(5) == 0)
77726 {
77727 Gore gore = Gore.NewGoreDirect(
base.TopLeft + Main.rand.NextVector2Square(0
f, 1
f) *
base.Size,
new Vector2(
velocity.X * 1.5f, (0
f - Main.rand.NextFloat()) * 16
f), Utils.SelectRandom<
int>(Main.rand, 1007, 1008, 1008));
77728 gore.timeLeft = 60;
77729 gore.alpha = 50;
77731 }
77732 }
77733 for (
int m = 0;
m < 1;
m++)
77734 {
77735 if (Main.rand.Next(7) == 0)
77736 {
77737 Gore
gore2 = Gore.NewGoreDirect(
base.TopLeft + Main.rand.NextVector2Square(0
f, 1
f) *
base.Size,
new Vector2(
velocity.X * 1.5f, (0
f - Main.rand.NextFloat()) * 16
f), Utils.SelectRandom<
int>(Main.rand, 1007, 1008, 1008));
77738 gore2.timeLeft = 0;
77739 gore2.alpha = 80;
77740 }
77741 }
77742 for (
int n = 0;
n < 1;
n++)
77743 {
77744 if (Main.rand.Next(7) == 0)
77745 {
77746 Gore
gore3 = Gore.NewGoreDirect(
base.TopLeft + Main.rand.NextVector2Square(0
f, 1
f) *
base.Size,
new Vector2(
velocity.X * 1.5f, (0
f - Main.rand.NextFloat()) * 16
f), Utils.SelectRandom<
int>(Main.rand, 1007, 1008, 1008));
77747 gore3.timeLeft = 0;
77748 gore3.alpha = 80;
77749 }
77750 }
77751 }
static ? ActiveSound GetActiveSound(SlotId slotId)
static SlotId PlayTrackedSound(in SoundStyle style, Vector2? position=null)
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Vector2 position
The position of this Entity in world coordinates.
int height
The height of this Entity's hitbox, in pixels.
static readonly SoundStyle DD2_BookStaffTwisterLoop
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....