This commit is contained in:
Dominic committed 2022-06-14 15:48:55 -05:00
commit 2b4419cb5c
3 files changed
+13 -10

No files matched your search

+2 -2
View File
@@ -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
+3 -3
View File
@@ -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);
@@ -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);