From 4c2de246457c8bd2dcc542f254a51c329dba97fe Mon Sep 17 00:00:00 2001 From: Dominic Date: Fri, 26 Aug 2022 22:09:32 -0500 Subject: [PATCH] SSV requests --- Items/Weapons/Magic/SubsumingVortex.cs | 2 +- Projectiles/Magic/EnormousConsumingVortex.cs | 8 ++++++++ Projectiles/Magic/ExoVortex.cs | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Magic/SubsumingVortex.cs b/Items/Weapons/Magic/SubsumingVortex.cs index aee5ff1ff9..5a3fec0860 100644 --- a/Items/Weapons/Magic/SubsumingVortex.cs +++ b/Items/Weapons/Magic/SubsumingVortex.cs @@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Magic public override void SetDefaults() { - Item.damage = 397; + Item.damage = 533; Item.DamageType = DamageClass.Magic; Item.mana = 12; Item.width = 38; diff --git a/Projectiles/Magic/EnormousConsumingVortex.cs b/Projectiles/Magic/EnormousConsumingVortex.cs index 5d1fcc9ee6..17cb6189fe 100644 --- a/Projectiles/Magic/EnormousConsumingVortex.cs +++ b/Projectiles/Magic/EnormousConsumingVortex.cs @@ -9,6 +9,7 @@ using Terraria.Audio; using Terraria.Graphics.Shaders; using CalamityMod.Particles; using CalamityMod.Items.Weapons.Magic; +using System.Collections.Generic; namespace CalamityMod.Projectiles.Magic { @@ -44,6 +45,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.DamageType = DamageClass.Magic; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 7; + Projectile.hide = true; } // Vanilla Terraria does not sync projectile scale by default. @@ -147,6 +149,12 @@ namespace CalamityMod.Projectiles.Magic Owner.itemAnimation = 2; } + // Draw these vortices behind other projectiles to ensure that they do not obstruct SCal's projectiles. + public override void DrawBehind(int index, List behindNPCsAndTiles, List behindNPCs, List behindProjectiles, List overPlayers, List overWiresUI) + { + behindProjectiles.Add(index); + } + public override bool PreDraw(ref Color lightColor) { Main.spriteBatch.EnterShaderRegion(BlendState.Additive); diff --git a/Projectiles/Magic/ExoVortex.cs b/Projectiles/Magic/ExoVortex.cs index 4cb9c6d864..d049019872 100644 --- a/Projectiles/Magic/ExoVortex.cs +++ b/Projectiles/Magic/ExoVortex.cs @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Magic target.ExoDebuffs(); } - // Draw these vortices behind other projectiles to ensure that it does not draw on top of the big vortex. + // Draw these vortices behind other projectiles to ensure that they do not obstruct SCal's projectiles. public override void DrawBehind(int index, List behindNPCsAndTiles, List behindNPCs, List behindProjectiles, List overPlayers, List overWiresUI) { behindProjectiles.Add(index);