diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs index 7934f5bd09..20137df93b 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs @@ -199,19 +199,19 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses int noFlyZoneBoxHeight = death ? 1500 : 1800; // Speed and movement variables - float speed = death ? 0.2f : 0.1f; - float turnSpeed = death ? 0.3f : 0.15f; + float speed = death ? 0.14f : 0.1f; + float turnSpeed = death ? 0.21f : 0.15f; // Max velocity - float segmentVelocity = flyAtTarget ? (death ? 22.5f : 15f) : (death ? 30f : 20f); + float segmentVelocity = flyAtTarget ? (death ? 21f : 15f) : (death ? 28f : 20f); // Increase velocity based on distance float velocityMultiplier = increaseSpeedMore ? 2f : increaseSpeed ? 1.5f : 1f; noFlyZoneBoxHeight -= death ? 400 : (int)(400f * (1f - lifeRatio)); - float segmentVelocityBoost = death ? (flyAtTarget ? 4.5f : 6f) * (1f - lifeRatio) : (flyAtTarget ? 3f : 4f) * (1f - lifeRatio); - float speedBoost = death ? (flyAtTarget ? 0.1125f : 0.15f) * (1f - lifeRatio) : (flyAtTarget ? 0.075f : 0.1f) * (1f - lifeRatio); - float turnSpeedBoost = death ? 0.18f * (1f - lifeRatio) : 0.12f * (1f - lifeRatio); + float segmentVelocityBoost = death ? (flyAtTarget ? 4f : 5.25f) * (1f - lifeRatio) : (flyAtTarget ? 3f : 4f) * (1f - lifeRatio); + float speedBoost = death ? (flyAtTarget ? 0.10f : 0.135f) * (1f - lifeRatio) : (flyAtTarget ? 0.075f : 0.1f) * (1f - lifeRatio); + float turnSpeedBoost = death ? 0.15f * (1f - lifeRatio) : 0.12f * (1f - lifeRatio); segmentVelocity += segmentVelocityBoost; speed += speedBoost; @@ -528,7 +528,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height)) { // Laser speed - float projectileSpeed = (death ? 4.5f : 3.5f) + Main.rand.NextFloat() * 1.5f; + float projectileSpeed = (death ? 4.25f : 3.5f) + Main.rand.NextFloat() * 1.5f; projectileSpeed += enrageScale; // Set projectile damage and type @@ -1069,7 +1069,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses if (targetData.Type == NPCTargetType.Player) targetDead = Main.player[npc.target].dead; - float velocity = death ? 8.4f : 7.2f; + float velocity = death ? 8.15f : 7.2f; float acceleration = death ? 0.07f : 0.06f; float deceleration = 1f - acceleration; diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/KingSlimeAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/KingSlimeAI.cs index ad68ced427..59c81b68a8 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/KingSlimeAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/KingSlimeAI.cs @@ -465,18 +465,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses { if (Main.rand.NextBool()) { - switch (Main.rand.Next(3)) - { - case 0: - npcType = NPCID.SlimeSpiked; - break; - case 1: - npcType = NPCID.SpikedIceSlime; - break; - case 2: - npcType = NPCID.SpikedJungleSlime; - break; - } + npcType = Main.player[npc.target].ZoneJungle ? NPCID.SpikedJungleSlime : Main.player[npc.target].ZoneSnow ? NPCID.SpikedIceSlime : NPCID.SlimeSpiked; } } diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs index bfe5de2083..4c268aa378 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronAI.cs @@ -32,7 +32,6 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses float phase3LifeRatio = death ? 0.9f : 0.7f; float respawnHandsLifeRatio = 0.5f; float phase4LifeRatio = death ? 0.4f : 0.3f; - float useSkullSpreadsAfterChargeLifeRatio = death ? 0.3f : 0.2f; float phase5LifeRatio = death ? 0.2f : 0.1f; // Begin firing spreads of skulls phase @@ -47,9 +46,6 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses // Fire giant cursed skull projectiles (yes, these curse you if you get hit) during charge attack and hands fire skulls phase bool phase4 = lifeRatio < phase4LifeRatio; - // Self-explanatory - bool useSkullSpreadsAfterCharge = lifeRatio < useSkullSpreadsAfterChargeLifeRatio; - // Rapid teleport and charge, stop using idle phase bool phase5 = lifeRatio < phase5LifeRatio; @@ -621,32 +617,6 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses } } - if (useSkullSpreadsAfterCharge && !disableSkullsAfterCharge && Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].position, Main.player[npc.target].width, Main.player[npc.target].height)) - { - // Spawn projectiles - if (Main.netMode != NetmodeID.MultiplayerClient) - { - int chargeSkullAmt = death ? 5 : 3; - int chargeSkullSpread = death ? 80 : 60; - float rotation = MathHelper.ToRadians(chargeSkullSpread); - float skullProjSpeed = phase5 ? (6f + (death ? 2f * ((phase5LifeRatio - lifeRatio) / phase5LifeRatio) : 0f)) : 4f; - Vector2 initialProjectileVelocity = npc.Center.DirectionTo(Main.player[npc.target].Center) * skullProjSpeed; - int type = ProjectileID.Skull; - int damage = npc.GetProjectileDamage(type); - for (int k = 0; k < chargeSkullAmt + 1; k++) - { - Vector2 perturbedSpeed = initialProjectileVelocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, k / (float)(chargeSkullAmt - 1))); - int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center - perturbedSpeed.SafeNormalize(Vector2.UnitY) * 5f, perturbedSpeed, type, damage, 0f, Main.myPlayer, -1f); - Main.projectile[proj].timeLeft = 600; - if (death) - { - int proj2 = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center - perturbedSpeed.SafeNormalize(Vector2.UnitY) * 5f, perturbedSpeed, type, damage, 0f, Main.myPlayer, -2f); - Main.projectile[proj2].timeLeft = 600; - } - } - } - } - npc.ai[2] = 0f; npc.ai[1] = 0f; npc.localAI[0] = 0f;