From cee322de8154d45db562e8d414472bb206c9a781 Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Sat, 23 Sep 2023 12:58:06 -0400 Subject: [PATCH] Astral Star resprite --- Projectiles/Typeless/AstralStar.cs | 40 ++++++++++++++-------------- Projectiles/Typeless/AstralStar.png | Bin 358 -> 490 bytes 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Projectiles/Typeless/AstralStar.cs b/Projectiles/Typeless/AstralStar.cs index c5e20a5d17..345456431a 100644 --- a/Projectiles/Typeless/AstralStar.cs +++ b/Projectiles/Typeless/AstralStar.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Typeless public override void SetDefaults() { - Projectile.width = 24; + Projectile.width = 22; Projectile.height = 24; Projectile.friendly = true; Projectile.alpha = 50; @@ -52,11 +52,11 @@ namespace CalamityMod.Projectiles.Typeless } Projectile.alpha -= 15; - int num58 = 150; + int alphaControl = 150; if (Projectile.Center.Y >= Projectile.ai[1]) - num58 = 0; - if (Projectile.alpha < num58) - Projectile.alpha = num58; + alphaControl = 0; + if (Projectile.alpha < alphaControl) + Projectile.alpha = alphaControl; Projectile.localAI[0] += (Math.Abs(Projectile.velocity.X) + Math.Abs(Projectile.velocity.Y)) * 0.01f * (float)Projectile.direction; Projectile.rotation += (Math.Abs(Projectile.velocity.X) + Math.Abs(Projectile.velocity.Y)) * 0.01f * (float)Projectile.direction; @@ -71,9 +71,9 @@ namespace CalamityMod.Projectiles.Typeless if (Main.rand.NextBool(48) && Main.netMode != NetmodeID.Server) { - int num60 = Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center, new Vector2(Projectile.velocity.X * 0.2f, Projectile.velocity.Y * 0.2f), 16, 1f); - Main.gore[num60].velocity *= 0.66f; - Main.gore[num60].velocity += Projectile.velocity * 0.3f; + int starry = Gore.NewGore(Projectile.GetSource_FromAI(), Projectile.Center, new Vector2(Projectile.velocity.X * 0.2f, Projectile.velocity.Y * 0.2f), 16, 1f); + Main.gore[starry].velocity *= 0.66f; + Main.gore[starry].velocity += Projectile.velocity * 0.3f; } if (Projectile.ai[1] == 1f) @@ -111,27 +111,27 @@ namespace CalamityMod.Projectiles.Typeless Projectile.height = 36; Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2); Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2); - for (int num621 = 0; num621 < 5; num621++) + for (int i = 0; i < 5; i++) { - int num622 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.2f); - Main.dust[num622].velocity *= 3f; + int starryDust = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.2f); + Main.dust[starryDust].velocity *= 3f; if (Main.rand.NextBool(2)) { - Main.dust[num622].scale = 0.5f; - Main.dust[num622].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; + Main.dust[starryDust].scale = 0.5f; + Main.dust[starryDust].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f; } } - for (int num623 = 0; num623 < 5; num623++) + for (int j = 0; j < 5; j++) { - int num624 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.7f); - Main.dust[num624].noGravity = true; - Main.dust[num624].velocity *= 5f; - num624 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1f); - Main.dust[num624].velocity *= 2f; + int starryDust2 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1.7f); + Main.dust[starryDust2].noGravity = true; + Main.dust[starryDust2].velocity *= 5f; + starryDust2 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, ModContent.DustType(), 0f, 0f, 100, default, 1f); + Main.dust[starryDust2].velocity *= 2f; } if (Main.netMode != NetmodeID.Server) { - for (int num480 = 0; num480 < 3; num480++) + for (int k = 0; k < 3; k++) Gore.NewGore(Projectile.GetSource_Death(), Projectile.position, new Vector2(Projectile.velocity.X * 0.05f, Projectile.velocity.Y * 0.05f), Main.rand.Next(16, 18), 1f); } } diff --git a/Projectiles/Typeless/AstralStar.png b/Projectiles/Typeless/AstralStar.png index dd1ff7e882f42c690939172792349c74d458a6a4..5f79dd16fc36d1fd8eea6ea7d41f1b44520f53c4 100644 GIT binary patch literal 490 zcmVPx#1ZP1_K>z@;j|==^1poj6dPzhAQrT`7XJrfD3>5$g3?q6j8GaU@G(mO zyE4kc3e3NM{U(^M-rb8=FU?#`&|pzfF)$V}(*t8-0sX@mJ!~VBW5M*kLI{0=SsqN| z3TxWASXad!>@s;FMX&%UJVC%!Sp`hP!qqj}985DTjR#Zv=6wUxFqgx?@sDr8H0@nn z=@ktYfV)svA51goaX@GcZ~#Iroe!qo?feR+<8ShUY1*d>n9Cy+O~8CbO?5Cm$6p#u z?{)G5)37jxx$weMh!Oo?c);|QQwzWX^h?Jumow%?f%zA6)4+7z=c8bH60bFw-sc<& zrqNvr1M~~y&)#lezHhTVn7(@YBba`3^$D21CJSMf@zo!X1q`U)3kRnIzUgCxB#x2n?^2XU;qF*XMIONJ<`em000hUSV?A0 gO#mtY000O800000007cclK=n!07*qoM6N<$f=`CT?EnA( literal 358 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzmUKs7M+SzC{oH>NS%G}c0*}aI z1_r)EAj~ML;ne^XlqhkHC<)F_D=AMbN@XZW%*-p%%S$a$FwryAGZA*kI097j#M8ww zB*Oh|pCezh0S`;1@bi1W`|kZ-xXS)z`mf2`oIVL`>hf%GDoR+o^G4kJvh1th|CV?4 z_6KieV%ev6z2k7#9M)B$7an|nE4Q(F;^qT+tOidmJUIVZ@S*6*i++qfa&a3Lx!T;) zY}mrluOMpH{_Ac+$X&vs+> zS^hM>vN)Zu)&F0MJ6wL8@lieXe>%UJ*5CcF>)dA)^gMcAuL1NggQu&X%Q~loCIB!m Bm2v<8