41700 {
41701 int num = 5;
41712 {
41713 num = 16;
41723 }
41724 bool flag =
ai[0] < (float)
num7;
41729 {
41733 for (
int i = 0;
i <
num3;
i++)
41734 {
41735 Dust dust = Dust.NewDustPerfect(
base.Center + Main.rand.NextVector2Circular(24f, 24f), num,
velocity *
num2 *
MathHelper.
Lerp(0.2f, 0.7f, Main.rand.NextFloat()));
41736 dust.velocity += Main.rand.NextVector2Circular(0.5f, 0.5f);
41737 dust.scale = 0.8f + Main.rand.NextFloat() * 0.5f;
41738 }
41739 for (
int j = 0;
j <
num4;
j++)
41740 {
41741 Dust
dust2 = Dust.NewDustPerfect(
base.Center + Main.rand.NextVector2Circular(24f, 24f), num, Main.rand.NextVector2Circular(2f, 2f) +
velocity *
num2 *
MathHelper.
Lerp(0.2f, 0.5f, Main.rand.NextFloat()));
41742 dust2.velocity += Main.rand.NextVector2Circular(0.5f, 0.5f);
41743 dust2.scale = 0.8f + Main.rand.NextFloat() * 0.5f;
41744 dust2.fadeIn = 1f;
41745 }
41747 {
41749 }
41750 else
41751 {
41753 }
41754 }
41755 if (flag)
41756 {
41759 for (
int k = 0;
k <
num5;
k++)
41760 {
41762 dust3.velocity += Main.rand.NextVector2Circular(0.5f, 0.5f);
41763 dust3.velocity *= 0.5f;
41764 dust3.scale = 0.8f + Main.rand.NextFloat() * 0.5f;
41765 }
41766 }
41768 {
41770 for (
int l = 0;
l <
num6;
l++)
41771 {
41773 dust4.velocity += Main.rand.NextVector2Circular(0.5f, 0.5f);
41774 dust4.velocity *= 0.5f;
41775 dust4.scale = 0.8f + Main.rand.NextFloat() * 0.5f;
41776 }
41777 }
41779 {
41781 }
41783 {
41785 }
41786 }
static float Lerp(float value1, float value2, float amount)
static void PlaySound(int type, Vector2 position, int style=1)
static readonly LegacySoundStyle DeerclopsIceAttack
static readonly LegacySoundStyle Item60