28517 {
28519 if (
wings == 10 && Main.rand.Next(2) == 0)
28520 {
28521 int num = 4;
28523 {
28524 num = -40;
28525 }
28527 Main.dust[
num2].fadeIn = 1.1f;
28528 Main.dust[
num2].noGravity =
true;
28529 Main.dust[
num2].noLight =
true;
28530 Main.dust[
num2].velocity *= 0.3f;
28532 }
28533 if (
wings == 34 && Main.rand.Next(2) == 0)
28534 {
28537 {
28539 }
28541 Main.dust[
num4].fadeIn = 1.1f;
28542 Main.dust[
num4].noGravity =
true;
28543 Main.dust[
num4].noLight =
true;
28544 Main.dust[
num4].noLightEmittence = noLightEmittence;
28545 Main.dust[
num4].velocity *= 0.3f;
28547 }
28552 if (
wings == 9 && Main.rand.Next(2) == 0)
28553 {
28556 {
28558 }
28560 Main.dust[
num6].noGravity =
true;
28561 Main.dust[
num6].noLightEmittence = noLightEmittence;
28562 Main.dust[
num6].velocity *= 0.3f;
28564 }
28565 if (
wings == 6 && Main.rand.Next(4) == 0)
28566 {
28569 {
28571 }
28573 Main.dust[
num8].velocity *= 0.3f;
28574 Main.dust[
num8].noLightEmittence = noLightEmittence;
28576 }
28577 if (
wings == 5 && Main.rand.Next(3) == 0)
28578 {
28581 {
28583 }
28585 Main.dust[
num10].noLightEmittence = noLightEmittence;
28586 Main.dust[
num10].velocity *= 0.3f;
28588 }
28590 {
28593 {
28595 }
28597 Main.dust[
num12].noGravity =
true;
28598 Main.dust[
num12].noLight =
true;
28599 Main.dust[
num12].velocity /= 4f;
28602 if (Main.rand.Next(2) == 0)
28603 {
28606 {
28608 }
28611 {
28613 }
28615 Main.dust[
num12].noGravity =
true;
28616 Main.dust[
num12].noLight =
true;
28617 Main.dust[
num12].velocity /= 4f;
28620 }
28621 }
28623 {
28626 {
28628 }
28629 Dust dust = Dust.NewDustDirect(
new Vector2(
position.
X + (
float)(
width / 2) + (
float)
num14,
position.
Y), 24,
height, Utils.SelectRandom<
int>(Main.rand, 31, 31, 31), 0f, 0f, 100);
28630 dust.noGravity = true;
28631 dust.noLight = true;
28632 dust.velocity /= 4f;
28635 if (dust.type == 55)
28636 {
28637 dust.noGravity = true;
28638 dust.velocity *= 2f;
28640 }
28641 if (Main.rand.Next(3) == 0)
28642 {
28645 {
28647 }
28650 {
28652 }
28653 dust = Dust.NewDustDirect(
new Vector2(
position.
X + (
float)(
width / 2) + (
float)
num14,
num15), 16,
height / 2, Utils.SelectRandom<
int>(Main.rand, 31, 31, 31), 0f, 0f, 100);
28654 dust.noGravity = true;
28655 dust.noLight = true;
28656 dust.velocity /= 4f;
28659 if (dust.type == 55)
28660 {
28661 dust.noGravity = true;
28662 dust.velocity *= 2f;
28664 }
28665 }
28666 }
28667 if (
wings == 29 && Main.rand.Next(3) == 0)
28668 {
28671 {
28673 }
28675 Main.dust[
num17].noGravity =
true;
28676 Main.dust[
num17].velocity *= 0.3f;
28677 Main.dust[
num17].noLightEmittence = noLightEmittence;
28678 if (Main.rand.Next(10) == 0)
28679 {
28680 Main.dust[
num17].fadeIn = 2f;
28681 }
28683 }
28685 {
28686 return;
28687 }
28688 if (Main.rand.Next(6) == 0)
28689 {
28692 {
28694 }
28696 obj.noGravity = true;
28697 obj.scale = 1f;
28698 obj.fadeIn = 1.2f;
28699 obj.velocity *= 0.2f;
28700 obj.noLight = true;
28702 }
28703 if (Main.rand.Next(3) == 0)
28704 {
28707 {
28709 }
28711 obj2.noGravity = true;
28712 obj2.scale = 1.2f;
28713 obj2.velocity *= 0.2f;
28714 obj2.alpha = 200;
28716 }
28717 if (Main.rand.Next(2) != 0)
28718 {
28719 return;
28720 }
28721 if (Main.rand.Next(6) == 0)
28722 {
28725 {
28727 }
28730 {
28732 }
28734 obj3.noGravity = true;
28735 obj3.scale = 1f;
28736 obj3.fadeIn = 1.2f;
28737 obj3.velocity *= 0.2f;
28738 obj3.noLight = true;
28740 }
28741 if (Main.rand.Next(3) == 0)
28742 {
28745 {
28747 }
28750 {
28752 }
28754 obj4.noGravity = true;
28755 obj4.scale = 1.2f;
28756 obj4.velocity *= 0.2f;
28757 obj4.alpha = 200;
28759 }
28760 }
static ArmorShaderDataSet Armor