From 21452a3c1f5b69c8442f779992b2fdf5aff1a7a8 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Fri, 21 Aug 2020 16:55:20 -0400 Subject: [PATCH] SSV is now a lot more spammable and less of a support weapon --- Items/Weapons/Magic/SubsumingVortex.cs | 13 ++++--------- Projectiles/Magic/EnormousConsumingVortex.cs | 14 +++++++------- Projectiles/Magic/SubsumingTentacle.cs | 6 +++--- Projectiles/Magic/Vortex.cs | 2 -- 4 files changed, 14 insertions(+), 21 deletions(-) diff --git a/Items/Weapons/Magic/SubsumingVortex.cs b/Items/Weapons/Magic/SubsumingVortex.cs index ce180eb264..158c8af96b 100644 --- a/Items/Weapons/Magic/SubsumingVortex.cs +++ b/Items/Weapons/Magic/SubsumingVortex.cs @@ -11,26 +11,23 @@ namespace CalamityMod.Items.Weapons.Magic { public class SubsumingVortex : ModItem { - public const int MaxVortexCount = 4; public override void SetStaticDefaults() { DisplayName.SetDefault("Subsuming Vortex"); Tooltip.SetDefault("Fires a giant slow-moving vortex\n" + "When an enemy is nearby, the vortex releases tentacles that redirect towards the enemy.\n" + - "After some time, the vortex slows down, charges, and eventually explodes.\n" + - $"Only {MaxVortexCount} vortexes can exist at once."); + "After some time, the vortex slows down, charges, and eventually explodes."); } public override void SetDefaults() { - item.damage = 480; + item.damage = 1000; item.magic = true; - item.mana = 20; + item.mana = 30; item.width = 38; item.height = 48; item.UseSound = SoundID.Item84; - item.useTime = 20; - item.useAnimation = 20; + item.useTime = item.useAnimation = 60; item.useStyle = ItemUseStyleID.HoldingOut; item.noMelee = true; item.knockBack = 5f; @@ -48,8 +45,6 @@ namespace CalamityMod.Items.Weapons.Magic spriteBatch.Draw(ModContent.GetTexture("CalamityMod/Items/Weapons/Magic/SubsumingVortexGlow"), item.Center - Main.screenPosition, null, Color.White, rotation, origin, 1f, SpriteEffects.None, 0f); } - public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] < MaxVortexCount; - public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI); diff --git a/Projectiles/Magic/EnormousConsumingVortex.cs b/Projectiles/Magic/EnormousConsumingVortex.cs index 6abcb381e3..104603a103 100644 --- a/Projectiles/Magic/EnormousConsumingVortex.cs +++ b/Projectiles/Magic/EnormousConsumingVortex.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Projectiles.Magic get => projectile.localAI[0]; set => projectile.localAI[0] = value; } - public const int TentacleSpawnRate = 30; + public const int TentacleSpawnRate = 20; public const int PulseInterval = 18; public const float PulseHitboxExpandRatio = 2.5f; public const float RadialOffsetVarianceFactor = 0.1f; @@ -41,7 +41,7 @@ namespace CalamityMod.Projectiles.Magic projectile.tileCollide = false; projectile.magic = true; projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 17; + projectile.localNPCHitCooldown = 15; } public override void SendExtraAI(BinaryWriter writer) @@ -68,7 +68,7 @@ namespace CalamityMod.Projectiles.Magic } // Target enemy if possible and idly spawn tentacles. - if (Time < 300) + if (Time < 150) { TargetingMovement(); if (Time % TentacleSpawnRate == TentacleSpawnRate - 1 && Main.myPlayer == projectile.owner) @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Magic } } // Slow down and pulse frequently. - else if (Time < 480) + else if (Time < 220) { projectile.velocity *= 0.96f; if (Time % PulseInterval == 0f) @@ -85,7 +85,7 @@ namespace CalamityMod.Projectiles.Magic PulseEffect(); } } - else if (Time == 520f) + else if (Time >= 240) { ExplodeEffect(); projectile.Kill(); @@ -100,8 +100,8 @@ namespace CalamityMod.Projectiles.Magic Projectile subsumingHentai = Projectile.NewProjectileDirect(projectile.Center, Vector2.UnitY.RotatedByRandom(MathHelper.TwoPi) * Main.rand.NextFloat(9f, 13f), ModContent.ProjectileType(), - (int)(projectile.damage * 0.6), - projectile.knockBack * 0.6f, + (int)(projectile.damage * 0.5), + projectile.knockBack * 0.5f, projectile.owner, xStartingAcceleration, yStartingAcceleration); diff --git a/Projectiles/Magic/SubsumingTentacle.cs b/Projectiles/Magic/SubsumingTentacle.cs index 3374d189ea..5a76d694f5 100644 --- a/Projectiles/Magic/SubsumingTentacle.cs +++ b/Projectiles/Magic/SubsumingTentacle.cs @@ -42,8 +42,8 @@ namespace CalamityMod.Projectiles.Magic projectile.MaxUpdates = 2; projectile.magic = true; projectile.penetrate = -1; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 16; + projectile.usesIDStaticNPCImmunity = true; + projectile.idStaticNPCHitCooldown = 10; } public override void AI() @@ -79,7 +79,7 @@ namespace CalamityMod.Projectiles.Magic { ArcingMovement(); } - projectile.scale -= closestTarget == null ? 0.007f : 0.004f; + projectile.scale -= closestTarget is null ? 0.007f : 0.004f; if (projectile.scale <= 0.05f) { projectile.Kill(); diff --git a/Projectiles/Magic/Vortex.cs b/Projectiles/Magic/Vortex.cs index b78aa9ace8..1707270ff8 100644 --- a/Projectiles/Magic/Vortex.cs +++ b/Projectiles/Magic/Vortex.cs @@ -45,8 +45,6 @@ namespace CalamityMod.Projectiles.Magic projectile.extraUpdates = 4; projectile.timeLeft = 115 * projectile.extraUpdates; projectile.ignoreWater = true; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 5; } public override void AI()