diff --git a/Items/Weapons/Ranged/ConferenceCall.cs b/Items/Weapons/Ranged/ConferenceCall.cs index 4d109aa9aa..19fdf10467 100644 --- a/Items/Weapons/Ranged/ConferenceCall.cs +++ b/Items/Weapons/Ranged/ConferenceCall.cs @@ -86,7 +86,7 @@ namespace CalamityMod.Items.Weapons.Ranged if (targetArrayIndex == 0) return false; - Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); + Vector2 vector2; int extraBulletDamage = (int)(damage * 0.7); for (int j = 0; j < targetArrayIndex; j++) @@ -103,7 +103,7 @@ namespace CalamityMod.Items.Weapons.Ranged Main.projectile[proj].timeLeft /= 2; } - if (targetArrayIndex == 12) + if (targetArrayIndex == maxTargets) return false; // Fire bullets at the same targets if 12 unique targets aren't found diff --git a/Items/Weapons/Ranged/Disseminator.cs b/Items/Weapons/Ranged/Disseminator.cs index 1ad4f466f4..d6e4830748 100644 --- a/Items/Weapons/Ranged/Disseminator.cs +++ b/Items/Weapons/Ranged/Disseminator.cs @@ -86,7 +86,7 @@ namespace CalamityMod.Items.Weapons.Ranged if (targetArrayIndex == 0) return false; - Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true); + Vector2 vector2; int extraBulletDamage = (int)(damage * 0.7); for (int j = 0; j < targetArrayIndex; j++) @@ -114,10 +114,10 @@ namespace CalamityMod.Items.Weapons.Ranged Main.projectile[proj].timeLeft /= 2; } - if (targetArrayIndex == 12) + if (targetArrayIndex == maxTargets) return false; - // Fire bullets at the same targets if 12 unique targets aren't found + // Fire bullets at the same targets if 8 unique targets aren't found for (int k = 0; k < maxTargets - targetArrayIndex; k++) { int randomTarget = Main.rand.Next(targetArrayIndex); diff --git a/NPCs/VanillaNPCOverrides/Bosses/EmpressofLightAI.cs b/NPCs/VanillaNPCOverrides/Bosses/EmpressofLightAI.cs index a5a3f26d7d..3618abb3dc 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/EmpressofLightAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/EmpressofLightAI.cs @@ -628,10 +628,13 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses // Avoid cheap bullshit. npc.damage = 0; - int numLanceWalls = 6; - float lanceWallSpawnGateValue = 30f; + // Expert attack or not. + bool expertAttack = calamityGlobalNPC.newAI[2] == 0f; + + int numLanceWalls = expertAttack ? 6 : 4; + float lanceWallSpawnGateValue = expertAttack ? 36f : 54f; if (dayTimeEnrage) - lanceWallSpawnGateValue -= 6f; + lanceWallSpawnGateValue -= expertAttack ? 4f : 6f; float lanceWallPhaseTime = lanceWallSpawnGateValue * numLanceWalls; @@ -716,9 +719,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses for (float i = 0f; i <= 1f; i += 1f / totalProjectiles) { - Vector2 spawnLocation = center3 + lanceWallStartingPosition * (i - 0.5f); + Vector2 spawnLocation = center3 + lanceWallStartingPosition * (i - 0.5f) * (expertAttack ? 1f : 1.5f); Vector2 v2 = vector6; - if (calamityGlobalNPC.newAI[2] == 0f) + if (expertAttack) { Vector2 value22 = targetData9.Velocity * 20f * i; Vector2 value23 = spawnLocation.DirectionTo(targetData9.Center + value22);