From cdfeef652296677a94625dddf6208e2746ecc017 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 16 Aug 2020 15:26:58 -0400 Subject: [PATCH] updated star cannon visuals --- Items/CalamityGlobalItem.cs | 9 +--- Projectiles/Ranged/FallenStarAura.png | Bin 0 -> 617 bytes Projectiles/Ranged/FallenStarProj.cs | 69 ++++++++++++++++++++------ 3 files changed, 55 insertions(+), 23 deletions(-) create mode 100644 Projectiles/Ranged/FallenStarAura.png diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index a5547e6f97..f43e2fbb45 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -935,14 +935,7 @@ namespace CalamityMod.Items } if (item.type == ItemID.MonkStaffT1) { - for (int i = 0; i < Main.maxProjectiles; ++i) - { - if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot) - { - return false; - } - } - return true; + return player.ownedProjectileCounts[item.shoot] <= 0; } if (item.type == ItemID.InvisibilityPotion && player.FindBuffIndex(ModContent.BuffType()) > -1) { diff --git a/Projectiles/Ranged/FallenStarAura.png b/Projectiles/Ranged/FallenStarAura.png new file mode 100644 index 0000000000000000000000000000000000000000..7b6973ed99295b249eef819fde1b9f182f632995 GIT binary patch literal 617 zcmV-v0+#)WP)Px#1ZP1_K>z@;j|==^1poj54^T{0MF0Q*v$M0+)z#+a=JE0I;l|5Y0005_Nkl4(GR19KBM4DOILEMOcZ`=@dryoX_Vlx{<3)J&GtLx~^N#%;j=f z&!x(^Q6xJMQ^F2YB39#gJgx`8bj1t>HPW>c{Tn5u@3j>d(zw5i7y>tLpLJ&@6I}eh;bV`Bj8>MNq1cny;SkuWA@oMWD25z#}yb|B8Uz zPFvbZ8Gnjk<%m4D)3PFbU3rAx=eLi%i+cJ<$}`F%KzV}soYa^Ss)v-&%*yz$8bzw( z0#zLf|EaN+^Xm7IdR{Xt<0g<|IM?$$U+oA#H+!q4hWVU8tfO*Q-9o)p!*JDXrFn#@ zSCLfbY@PM5a1+RGwt9kTsbN|mObdi*fiO-2IUIff(PCeU{qnGe00000NkvXXu0mjf D9= 1f) + { + colorMult = 2f - colorMult; + } + spriteBatch.Draw(aura, drawStart2 + offsets, auraRec, white * colorMult, projectile.velocity.ToRotation() + MathHelper.PiOver2, auraOrigin, 0.3f + scaleMult * 0.5f, SpriteEffects.None, 0); + } + + //Draw the actual projectile + spriteBatch.Draw(tex, projectile.Center + offsets, spriteRec, alpha, projectile.rotation, spriteOrigin, projectile.scale + 0.1f, spriteEffects, 0); + return false; } } } \ No newline at end of file