Eradicator 410 -> 685, stealth nerfed to hell

This commit is contained in:
Ozzatron committed 2021-08-10 14:54:02 -04:00
1 parent 82cd3479ca
commit 159fdb9c55
2 files changed
+10 -7

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.width = 38;
item.damage = 410;
item.damage = 685;
item.noMelee = true;
item.noUseGraphic = true;
item.autoReuse = true;
@@ -42,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
if (player.Calamity().StealthStrikeAvailable())
damage = (int)(damage * 0.66D);
damage = (int)(damage * 0.25f);
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
if (player.Calamity().StealthStrikeAvailable() && proj.WithinBounds(Main.maxProjectiles))
+8 -5
View File
@@ -107,13 +107,16 @@ namespace CalamityMod.Projectiles.Rogue
float spin = projectile.direction <= 0 ? -1f : 1f;
projectile.rotation += spin * RotationIncrement;
// If not currently glued to a target with sticky AI, fire lasers at up to 2 nearby targets for 75% damage.
// If attached to something (this only occurs for stealth strikes), do the buzzsaw grind and spam lasers everywhere.
if (projectile.ai[0] == 1f)
StealthStrikeGrind(spin);
else
{
// Fire lasers at up to 2 nearby targets every 8 frames for 40% damage.
// Stealth strike lasers have an intentionally lower ratio of 12%.
double laserDamageRatio = projectile.Calamity().stealthStrike ? 0.12D : 0.4D;
float laserFrames = projectile.MaxUpdates * 8f;
CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 6f, laserFrames, 2, ModContent.ProjectileType<NebulaShot>(), 0.4D, true);
CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 6f, laserFrames, 2, ModContent.ProjectileType<NebulaShot>(), laserDamageRatio, true);
}
}
@@ -122,14 +125,14 @@ namespace CalamityMod.Projectiles.Rogue
// Spin extra fast to visually shred the enemy.
projectile.rotation += spinDir * RotationIncrement * 0.8f;
// Randomly fire lasers while grinding.
// Randomly fire lasers while grinding. Each laser only does 12% damage.
randomLaserCharge += Main.rand.NextFloat(0.09f, 0.14f);
if (randomLaserCharge >= 1f)
{
randomLaserCharge -= 1f;
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
int laserDamage = (int)(projectile.damage * 0.15D);
int laserDamage = (int)(projectile.damage * 0.12D);
Projectile laser = Projectile.NewProjectileDirect(projectile.Center, velocity, ModContent.ProjectileType<NebulaShot>(), laserDamage, 0f, projectile.owner);
if (laser.whoAmI.WithinBounds(Main.maxProjectiles))
{
@@ -139,7 +142,7 @@ namespace CalamityMod.Projectiles.Rogue
laser.usesLocalNPCImmunity = true;
// This projectile has a hefty amount of extra updates, which will influence the hit cooldown.
laser.localNPCHitCooldown = 70;
laser.localNPCHitCooldown = 120;
}
}