From bedcf56a86fc127c7aedaf2a42456808861938fc Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Wed, 28 Sep 2022 15:36:51 -0400 Subject: [PATCH] Various rogue/summon balance changes 1. Reverted Sand Cloak cooldown to 30 seconds 2. Changed Ink Bomb cooldown to 20 seconds 3. Nerfed Dark God's Sheath and Eclipse Mirror stealth acceleration bonuses 4. Nerfed Dragon Scales tornado damage 5. Nerfed Abyssal Mirror stealth regen 6. Buffed Eclipse mirror standing still regen 7. Nerfed Mirage Mirror stealth regen 8. Nerfed Spectral veil stealth regen while moving, now increases stealth regen while standing still 9. Nerfed max stealth of aerospec, statigel, sulphurous, victide, and gladiator armors 10. Buffed Magic Missile damage 11. Nerfed Scuttler's Jewel 12. Made Vigilance projectiles less opaque 13. Reduced the amount of laughs from Vigilance seekers 14. Increased the speed of Perdition's projectiles --- CalPlayer/CalamityPlayer.cs | 27 ++++++++++--------- CalPlayer/CalamityPlayerOnHit.cs | 2 +- Items/Accessories/AbyssalMirror.cs | 6 ++--- Items/Accessories/EclipseMirror.cs | 4 +-- Items/Accessories/InkBomb.cs | 2 +- Items/Accessories/MirageMirror.cs | 6 ++--- Items/Accessories/SandCloak.cs | 2 +- Items/Accessories/SpectralVeil.cs | 5 ++-- Items/Armor/Aerospec/AerospecHeadgear.cs | 4 +-- Items/Armor/Statigel/StatigelHeadRogue.cs | 4 +-- Items/Armor/Sulphurous/SulphurousHelmet.cs | 4 +-- Items/Armor/Victide/VictideHeadRogue.cs | 4 +-- Items/CalamityGlobalItemTweaks.cs | 2 +- .../GladiatorArmorSetChange.cs | 4 +-- Projectiles/CalamityGlobalProjectile.cs | 2 +- Projectiles/Summon/BrimstoneDartSummon.cs | 3 +-- Projectiles/Summon/LostSoulGiant.cs | 2 +- Projectiles/Summon/SeekerSummonProj.cs | 15 +++++++++-- 18 files changed, 55 insertions(+), 43 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 22b5425f4c..47c8e3c0cd 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -2564,7 +2564,7 @@ namespace CalamityMod.CalPlayer if (CalamityKeybinds.SandCloakHotkey.JustPressed && sandCloak && Main.myPlayer == Player.whoAmI && rogueStealth >= rogueStealthMax * 0.1f && wearingRogueArmor && rogueStealthMax > 0 && !Player.HasCooldown(Cooldowns.SandCloak.ID)) { - Player.AddCooldown(Cooldowns.SandCloak.ID, CalamityUtils.SecondsToFrames(25)); + Player.AddCooldown(Cooldowns.SandCloak.ID, CalamityUtils.SecondsToFrames(30)); var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType())); rogueStealth -= rogueStealthMax * 0.1f; @@ -6102,7 +6102,7 @@ namespace CalamityMod.CalPlayer var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType())); if (Player.whoAmI == Main.myPlayer && !Player.HasCooldown(Cooldowns.InkBomb.ID)) { - Player.AddCooldown(Cooldowns.InkBomb.ID, CalamityUtils.SecondsToFrames(25)); + Player.AddCooldown(Cooldowns.InkBomb.ID, CalamityUtils.SecondsToFrames(20)); rogueStealth += 0.5f; for (int i = 0; i < 3; i++) { @@ -6614,26 +6614,27 @@ namespace CalamityMod.CalPlayer // Update Dark God's Sheath and Eclipse Mirror's stealth acceleration /* * T = frame counter - * DGS = (100% + 1% * T) - * EM = (100% + 1% * T) * 1.0084^T - * BOTH = (100% + 1.5% * T) * 1.0084^T + * DGS = (100% + 0.7% * T) + * EM = (100% + 0.7% * T) * 1.006^T + * BOTH = (100% + 1% * T) * 1.006^T * - * DGS alone caps in 100 frames - * EM alone caps in 41 frames - * Both together caps in 32 frames + * DGS alone caps in 143 frames + * EM alone caps in 59 frames + * Both together caps in 50 frames */ if (darkGodSheath && eclipseMirror) { - stealthAcceleration += 0.015f; - stealthAcceleration *= 1.0084f; + stealthAcceleration += 0.01f; + stealthAcceleration *= 1.006f; } else if (eclipseMirror) { - stealthAcceleration += 0.01f; - stealthAcceleration *= 1.0084f; + stealthAcceleration += 0.007f; + stealthAcceleration *= 1.006f; } else if (darkGodSheath) - stealthAcceleration += 0.01f; + stealthAcceleration += 0.007f; + stealthAcceleration = MathHelper.Clamp(stealthAcceleration, 1f, StealthAccelerationCap); // You get 100% stealth regen while standing still and not on a mount. Otherwise, you get your stealth regeneration while moving. diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index da8c352bb1..bdaafe0761 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -1070,7 +1070,7 @@ namespace CalamityMod.CalPlayer break; } } - int damage = (int)Player.GetTotalDamage().ApplyTo(550); + int damage = (int)Player.GetTotalDamage().ApplyTo(300); int projectileIndex = Projectile.NewProjectile(spawnSource, projTileX * 16 + 8, projTileY * 16 - 24, 0f, 0f, ProjectileType(), damage, 15f, Main.myPlayer, 16f, 16f); if (projectileIndex.WithinBounds(Main.maxProjectiles)) { diff --git a/Items/Accessories/AbyssalMirror.cs b/Items/Accessories/AbyssalMirror.cs index 16767ac5a8..c0db5f2781 100644 --- a/Items/Accessories/AbyssalMirror.cs +++ b/Items/Accessories/AbyssalMirror.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Accessories DisplayName.SetDefault("Abyssal Mirror"); Tooltip.SetDefault("Light does not reach the depths of the ocean\n" + "Significantly reduces enemy aggression, even in the abyss\n" + - "Stealth generates 30% faster when standing still and 20% faster while moving\n" + + "Stealth generates 25% faster when standing still and 12% faster while moving\n" + "Grants the ability to evade attacks, releasing a cloud of lumenyl fluid which damages and stuns nearby enemies\n" + "Evading an attack grants a lot of stealth but has a 90 second cooldown\n" + "This cooldown is shared with all other dodges and reflects"); @@ -33,8 +33,8 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); - modPlayer.stealthGenStandstill += 0.3f; - modPlayer.stealthGenMoving += 0.2f; + modPlayer.stealthGenStandstill += 0.25f; + modPlayer.stealthGenMoving += 0.12f; modPlayer.abyssalMirror = true; player.aggro -= 450; } diff --git a/Items/Accessories/EclipseMirror.cs b/Items/Accessories/EclipseMirror.cs index 6e31178ea2..587f7bc8c7 100644 --- a/Items/Accessories/EclipseMirror.cs +++ b/Items/Accessories/EclipseMirror.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories "+10 maximum stealth\n" + "6% increased rogue damage, and 6% increased rogue crit chance\n" + "Vastly reduces enemy aggression, even in the abyss\n" + - "Stealth generates 20% faster when standing still\n" + + "Stealth generates 25% faster when standing still\n" + "Mobile stealth generation exponentially accelerates while not attacking\n" + "Stealth strikes only expend 50% of your max stealth\n" + "Grants the ability to evade attacks in a blast of darksun light, which inflicts extreme damage in a wide area\n" + @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); - modPlayer.stealthGenStandstill += 0.2f; + modPlayer.stealthGenStandstill += 0.25f; modPlayer.rogueStealthMax += 0.1f; modPlayer.eclipseMirror = true; modPlayer.stealthStrikeHalfCost = true; diff --git a/Items/Accessories/InkBomb.cs b/Items/Accessories/InkBomb.cs index 4dc3b44658..889b96b37c 100644 --- a/Items/Accessories/InkBomb.cs +++ b/Items/Accessories/InkBomb.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories DisplayName.SetDefault("Ink Bomb"); Tooltip.SetDefault("Throws several ink bombs when hit that explode in a confusing cloud of ink\n" + "Gain a lot of stealth when struck\n" + - "This effect has a 25 second cooldown before it can occur again"); + "This effect has a 20 second cooldown before it can occur again"); } public override void SetDefaults() diff --git a/Items/Accessories/MirageMirror.cs b/Items/Accessories/MirageMirror.cs index 52fca4b559..e0ce04bef0 100644 --- a/Items/Accessories/MirageMirror.cs +++ b/Items/Accessories/MirageMirror.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories DisplayName.SetDefault("Mirage Mirror"); Tooltip.SetDefault("Bend light around you\n" + "Reduces enemy aggression outside of the abyss\n" + - "Stealth generates 30% faster when standing still and 20% faster while moving"); + "Stealth generates 25% faster when standing still and 12% faster while moving"); } public override void SetDefaults() @@ -28,8 +28,8 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { CalamityPlayer modPlayer = player.Calamity(); - modPlayer.stealthGenStandstill += 0.3f; - modPlayer.stealthGenMoving += 0.2f; + modPlayer.stealthGenStandstill += 0.25f; + modPlayer.stealthGenMoving += 0.12f; player.aggro -= 200; } diff --git a/Items/Accessories/SandCloak.cs b/Items/Accessories/SandCloak.cs index 9abaa49f93..7123ae2451 100644 --- a/Items/Accessories/SandCloak.cs +++ b/Items/Accessories/SandCloak.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Accessories DisplayName.SetDefault("Sand Cloak"); Tooltip.SetDefault("+2 defense and 5% increased movement speed\n" + "TOOLTIP LINE HERE\n" + - "This effect has a 25 second cooldown before it can be used again"); + "This effect has a 30 second cooldown before it can be used again"); } public override void SetDefaults() diff --git a/Items/Accessories/SpectralVeil.cs b/Items/Accessories/SpectralVeil.cs index f83ab1d297..2186fe7079 100644 --- a/Items/Accessories/SpectralVeil.cs +++ b/Items/Accessories/SpectralVeil.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Items.Accessories "TOOLTIP LINE HERE\n" + "If you dodge something while invulnerable, you instantly gain full stealth\n" + "Teleportation is disabled while Chaos State is active\n" + - "Stealth generates 20% faster while moving"); + "Stealth generates 15% faster"); } public override void SetDefaults() @@ -42,7 +42,8 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { player.Calamity().spectralVeil = true; - player.Calamity().stealthGenMoving += 0.2f; + player.Calamity().stealthGenMoving += 0.15f; + player.Calamity().stealthGenStandstill += 0.15f; } } } diff --git a/Items/Armor/Aerospec/AerospecHeadgear.cs b/Items/Armor/Aerospec/AerospecHeadgear.cs index e6b3d249d7..bac06dd3dc 100644 --- a/Items/Armor/Aerospec/AerospecHeadgear.cs +++ b/Items/Armor/Aerospec/AerospecHeadgear.cs @@ -41,12 +41,12 @@ namespace CalamityMod.Items.Armor.Aerospec public override void UpdateArmorSet(Player player) { player.setBonus = "5% increased movement speed and rogue critical strike chance\n" + - "+100 maximum stealth\n" + + "+80 maximum stealth\n" + "Taking over 25 damage in one hit will cause a spread of homing feathers to fall\n" + "Allows you to fall more quickly and disables fall damage"; var modPlayer = player.Calamity(); modPlayer.aeroSet = true; - modPlayer.rogueStealthMax += 1f; + modPlayer.rogueStealthMax += 0.8f; player.noFallDmg = true; player.moveSpeed += 0.05f; player.GetCritChance() += 5; diff --git a/Items/Armor/Statigel/StatigelHeadRogue.cs b/Items/Armor/Statigel/StatigelHeadRogue.cs index 0dcf52cd4e..1c01e3add3 100644 --- a/Items/Armor/Statigel/StatigelHeadRogue.cs +++ b/Items/Armor/Statigel/StatigelHeadRogue.cs @@ -38,11 +38,11 @@ namespace CalamityMod.Items.Armor.Statigel player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" + "Grants an extra jump and increased jump height\n" + "12% increased jump speed\n" + - "+100 maximum stealth"; + "+90 maximum stealth"; var modPlayer = player.Calamity(); modPlayer.statigelSet = true; modPlayer.statigelJump = true; - modPlayer.rogueStealthMax += 1f; + modPlayer.rogueStealthMax += 0.9f; modPlayer.wearingRogueArmor = true; Player.jumpHeight += 5; player.jumpSpeedBoost += 0.6f; diff --git a/Items/Armor/Sulphurous/SulphurousHelmet.cs b/Items/Armor/Sulphurous/SulphurousHelmet.cs index 22bd008848..7eac2f2c10 100644 --- a/Items/Armor/Sulphurous/SulphurousHelmet.cs +++ b/Items/Armor/Sulphurous/SulphurousHelmet.cs @@ -37,14 +37,14 @@ namespace CalamityMod.Items.Armor.Sulphurous public override void UpdateArmorSet(Player player) { - player.setBonus = "+95 maximum stealth\n" + + player.setBonus = "+70 maximum stealth\n" + "Attacking and being attacked by enemies inflicts poison\n" + "Grants an additional jump that summons a sulphurous bubble\n" + "Provides increased underwater mobility and reduces the severity of the sulphuric waters"; var modPlayer = player.Calamity(); modPlayer.sulfurSet = true; modPlayer.sulfurJump = true; - modPlayer.rogueStealthMax += 0.95f; + modPlayer.rogueStealthMax += 0.7f; modPlayer.wearingRogueArmor = true; player.ignoreWater = true; } diff --git a/Items/Armor/Victide/VictideHeadRogue.cs b/Items/Armor/Victide/VictideHeadRogue.cs index 526904b85c..538c811e9f 100644 --- a/Items/Armor/Victide/VictideHeadRogue.cs +++ b/Items/Armor/Victide/VictideHeadRogue.cs @@ -37,10 +37,10 @@ namespace CalamityMod.Items.Armor.Victide "When using any weapon you have a 10% chance to throw a returning seashell projectile\n" + "This seashell does true damage and does not benefit from any damage class\n" + "Provides increased underwater mobility and slightly reduces breath loss in the abyss\n" + - "+90 maximum stealth"; + "+60 maximum stealth"; var modPlayer = player.Calamity(); modPlayer.victideSet = true; - modPlayer.rogueStealthMax += 0.9f; + modPlayer.rogueStealthMax += 0.6f; modPlayer.wearingRogueArmor = true; player.ignoreWater = true; if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 382035d30e..28fae78c60 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -291,7 +291,7 @@ namespace CalamityMod.Items { ItemID.MaceWhip, autoReuse }, { ItemID.MagicalHarp, Do(DamageExact(50), ShootSpeedExact(12f)) }, { ItemID.MagicDagger, Do(AutoReuse, DamageExact(77), UseExact(16), ShootSpeedExact(30)) }, - { ItemID.MagicMissile, Do(DamageExact(20), ManaExact(10), UseAnimationExact(20), UseTimeExact(10)) }, + { ItemID.MagicMissile, Do(DamageExact(23), ManaExact(10), UseAnimationExact(20), UseTimeExact(10)) }, { ItemID.MagnetSphere, Do(DamageRatio(1.1f)) }, { ItemID.ManaCrystal, autoReuse }, { ItemID.Marrow, Do(PointBlank, AutoReuse, DamageExact(69)) }, diff --git a/Items/VanillaArmorChanges/GladiatorArmorSetChange.cs b/Items/VanillaArmorChanges/GladiatorArmorSetChange.cs index 25ce3a0b2f..8ce17c7ecd 100644 --- a/Items/VanillaArmorChanges/GladiatorArmorSetChange.cs +++ b/Items/VanillaArmorChanges/GladiatorArmorSetChange.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void UpdateSetBonusText(ref string setBonusText) { setBonusText += "\n+3 defense\n" + - "+70 maximum stealth\n" + + "+60 maximum stealth\n" + "5% increased rogue damage and 10% increased velocity"; } @@ -42,7 +42,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void ApplyArmorSetBonus(Player player) { - player.Calamity().rogueStealthMax += 0.7f; + player.Calamity().rogueStealthMax += 0.6f; player.Calamity().wearingRogueArmor = true; player.GetDamage() += 0.05f; player.Calamity().rogueVelocity += 0.1f; diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index b3d2eb1f35..120b21ee90 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -2585,7 +2585,7 @@ namespace CalamityMod.Projectiles if (modPlayer.scuttlersJewel && stealthStrike && modPlayer.scuttlerCooldown <= 0) { - int damage = (int)player.GetTotalDamage().ApplyTo(20); + int damage = (int)player.GetTotalDamage().ApplyTo(15); int spike = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.Zero, ProjectileType(), damage, projectile.knockBack, projectile.owner); Main.projectile[spike].frame = 4; if (spike.WithinBounds(Main.maxProjectiles)) diff --git a/Projectiles/Summon/BrimstoneDartSummon.cs b/Projectiles/Summon/BrimstoneDartSummon.cs index 15c8b04ed8..f469afcd1e 100644 --- a/Projectiles/Summon/BrimstoneDartSummon.cs +++ b/Projectiles/Summon/BrimstoneDartSummon.cs @@ -28,8 +28,7 @@ namespace CalamityMod.Projectiles.Summon Projectile.minionSlots = 0f; Projectile.penetrate = 1; Projectile.timeLeft = 120; - Projectile.usesLocalNPCImmunity = true; - Projectile.localNPCHitCooldown = 8; + Projectile.Opacity = 0.5f; Projectile.DamageType = DamageClass.Summon; } diff --git a/Projectiles/Summon/LostSoulGiant.cs b/Projectiles/Summon/LostSoulGiant.cs index b4f5df8a06..77b5c50114 100644 --- a/Projectiles/Summon/LostSoulGiant.cs +++ b/Projectiles/Summon/LostSoulGiant.cs @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Summon public static void HomeInOnTarget(Projectile projectile, NPC target) { - float speed = MathHelper.Lerp(11f, 21f, (float)Math.Sin(projectile.identity % 7f / 7f * MathHelper.TwoPi) * 0.5f + 0.5f); + float speed = MathHelper.Lerp(21f, 31f, (float)Math.Sin(projectile.identity % 7f / 7f * MathHelper.TwoPi) * 0.5f + 0.5f); projectile.velocity = Vector2.Lerp(projectile.velocity, projectile.SafeDirectionTo(target.Center) * speed, 0.075f); } diff --git a/Projectiles/Summon/SeekerSummonProj.cs b/Projectiles/Summon/SeekerSummonProj.cs index c25bf531c6..bcf389d7ea 100644 --- a/Projectiles/Summon/SeekerSummonProj.cs +++ b/Projectiles/Summon/SeekerSummonProj.cs @@ -98,9 +98,20 @@ namespace CalamityMod.Projectiles.Summon internal void FlyNearOwner() { - // Make an imp laugh sound every so often. + // Make an imp laugh sound every so often if you're the first seeker in the projectile array. if (Main.rand.NextBool(1600)) - SoundEngine.PlaySound(SoundID.DD2_KoboldFlyerHurt); + { + for (int i = 0; i < Main.maxProjectiles; i++) + { + Projectile seeker = Main.projectile[i]; + if (seeker.type == Projectile.type) + { + if (seeker == Projectile) + SoundEngine.PlaySound(SoundID.DD2_KoboldFlyerHurt); + break; + } + } + } Vector2 destination = Owner.Center + (MathHelper.TwoPi * CircleAngleRatio / Owner.ownedProjectileCounts[Type] - MathHelper.PiOver2).ToRotationVector2() * 310f; Projectile.Center = Vector2.Lerp(Projectile.Center, destination, 0.03f);