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
This commit is contained in:
ben-tk committed 2022-09-28 15:36:51 -04:00
1 parent 794da6cb76
commit bedcf56a86
18 files changed
+55 -43

No files matched your search

+14 -13
View File
@@ -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<Items.Accessories.SandCloak>()));
rogueStealth -= rogueStealthMax * 0.1f;
@@ -6102,7 +6102,7 @@ namespace CalamityMod.CalPlayer
var source = Player.GetSource_Accessory(FindAccessory(ModContent.ItemType<Items.Accessories.InkBomb>()));
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.
+1 -1
View File
@@ -1070,7 +1070,7 @@ namespace CalamityMod.CalPlayer
break;
}
}
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(550);
int damage = (int)Player.GetTotalDamage<RogueDamageClass>().ApplyTo(300);
int projectileIndex = Projectile.NewProjectile(spawnSource, projTileX * 16 + 8, projTileY * 16 - 24, 0f, 0f, ProjectileType<InfernadoFriendly>(), damage, 15f, Main.myPlayer, 16f, 16f);
if (projectileIndex.WithinBounds(Main.maxProjectiles))
{
+3 -3
View File
@@ -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;
}
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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()
+3 -3
View File
@@ -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;
}
+1 -1
View File
@@ -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()
+3 -2
View File
@@ -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;
}
}
}
+2 -2
View File
@@ -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<ThrowingDamageClass>() += 5;
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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;
}
+2 -2
View File
@@ -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))
+1 -1
View File
@@ -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)) },
@@ -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<ThrowingDamageClass>() += 0.05f;
player.Calamity().rogueVelocity += 0.1f;
+1 -1
View File
@@ -2585,7 +2585,7 @@ namespace CalamityMod.Projectiles
if (modPlayer.scuttlersJewel && stealthStrike && modPlayer.scuttlerCooldown <= 0)
{
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(20);
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(15);
int spike = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.Zero, ProjectileType<JewelSpike>(), damage, projectile.knockBack, projectile.owner);
Main.projectile[spike].frame = 4;
if (spike.WithinBounds(Main.maxProjectiles))
+1 -2
View File
@@ -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;
}
+1 -1
View File
@@ -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);
}
+13 -2
View File
@@ -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);