Scal + Brothers small updates/fixes
Fixed Supreme Calamitas being able to fire when she teleports above the player Fixed Catastrophe death mode loosing his additional slashes in phase 2 Reduced the Resonance slashes size and removed a purely visual offset they had for some reason Added telegraph for Cataclysm's fist orb firing directions
This commit is contained in:
1 parent
07f6fe230e
commit
a39575c8a7
5 files changed
+67
-41
No files matched your search
@@ -125,6 +125,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
public int alicornFrame = 0;
|
||||
public int alicornFrameCounter = 0;
|
||||
public int dashVisualCounter = 0;
|
||||
public int brothersPause = 5; // Helps prevent telefragging
|
||||
|
||||
public float shieldOpacity = 1f;
|
||||
public float shieldRotation = 0f;
|
||||
@@ -2024,39 +2025,50 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
{
|
||||
if (lifeRatio < 0.45f && !enteredBrothersPhase)
|
||||
{
|
||||
enteredBrothersPhase = true;
|
||||
attackCastDelay = brothersSpawnCastTime;
|
||||
NPC.netUpdate = true;
|
||||
if (!teleport)
|
||||
if (brothersPause == 0)
|
||||
{
|
||||
Dust.QuickDustLine(NPC.Center, player.Center + new Vector2(0, -155), 500f, cirrus ? Color.Pink : Color.Red);
|
||||
NPC.velocity = Vector2.Zero;
|
||||
NPC.Center = player.Center + new Vector2(0, -155);
|
||||
Particle pulse = new DirectionalPulseRing(NPC.Center, Vector2.Zero, Color.Red, new Vector2(1f, 1f), 0, 0.1f, 5f, 15);
|
||||
GeneralParticleHandler.SpawnParticle(pulse);
|
||||
for (int x = 0; x < Main.maxProjectiles; x++)
|
||||
enteredBrothersPhase = true;
|
||||
attackCastDelay = brothersSpawnCastTime;
|
||||
NPC.netUpdate = true;
|
||||
if (!teleport)
|
||||
{
|
||||
Projectile projectile = Main.projectile[x];
|
||||
if (projectile.active)
|
||||
Dust.QuickDustLine(NPC.Center, player.Center + new Vector2(0, -155), 500f, cirrus ? Color.Pink : Color.Red);
|
||||
NPC.velocity = Vector2.Zero;
|
||||
NPC.Center = player.Center + new Vector2(0, -175);
|
||||
Particle pulse = new DirectionalPulseRing(NPC.Center, Vector2.Zero, Color.Red, new Vector2(1f, 1f), 0, 0.1f, 5f, 15);
|
||||
GeneralParticleHandler.SpawnParticle(pulse);
|
||||
for (int x = 0; x < Main.maxProjectiles; x++)
|
||||
{
|
||||
if (projectile.type == bulletHellblast ||
|
||||
projectile.type == barrage ||
|
||||
projectile.type == wave)
|
||||
Projectile projectile = Main.projectile[x];
|
||||
if (projectile.active)
|
||||
{
|
||||
if (projectile.timeLeft > 60)
|
||||
projectile.timeLeft = 60;
|
||||
}
|
||||
else if (projectile.type == fireblast || projectile.type == gigablast)
|
||||
{
|
||||
projectile.ai[2] = 1f;
|
||||
if (projectile.type == bulletHellblast ||
|
||||
projectile.type == barrage ||
|
||||
projectile.type == wave)
|
||||
{
|
||||
if (projectile.timeLeft > 60)
|
||||
projectile.timeLeft = 60;
|
||||
}
|
||||
else if (projectile.type == fireblast || projectile.type == gigablast)
|
||||
{
|
||||
projectile.ai[2] = 1f;
|
||||
|
||||
if (projectile.timeLeft > 15)
|
||||
projectile.timeLeft = 15;
|
||||
if (projectile.timeLeft > 15)
|
||||
projectile.timeLeft = 15;
|
||||
}
|
||||
}
|
||||
}
|
||||
teleport = true;
|
||||
}
|
||||
teleport = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
brothersPause--;
|
||||
NPC.dontTakeDamage = true;
|
||||
NPC.velocity *= 0.85f;
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -389,13 +389,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
if (BigAttackLimit == (Phase2 ? 1 : 0) && death)
|
||||
{
|
||||
if (NPC.AnyNPCs(ModContent.NPCType<SupremeCatastrophe>()) == false)
|
||||
{
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 9.5f).RotatedBy(0.15f), type, damage, 0f, Main.myPlayer, 0f, 1, 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 9.5f).RotatedBy(-0.15f), type, damage, 0f, Main.myPlayer, 0f, 1, 2);
|
||||
}
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 9.5f).RotatedBy(0.6f), type, damage, 0f, Main.myPlayer, 0f, 0, 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 9.5f).RotatedBy(-0.6f), type, damage, 0f, Main.myPlayer, 0f, 0, 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 10.5f).RotatedBy(0.5f), type, damage, 0f, Main.myPlayer, 0f, 0, 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 10.5f).RotatedBy(-0.5f), type, damage, 0f, Main.myPlayer, 0f, 0, 2);
|
||||
SoundEngine.PlaySound(SupremeCalamitas.BrimstoneShotSound with { Volume = 1.8f, Pitch = 0.2f }, NPC.Center);
|
||||
}
|
||||
else if (BigAttackLimit == 0 && Phase2)
|
||||
|
||||
@@ -267,8 +267,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
{
|
||||
SoundStyle slash = new("CalamityMod/Sounds/Item/MurasamaBigSwing");
|
||||
SoundEngine.PlaySound(slash with { Volume = 0.55f, Pitch = -0.3f }, NPC.Center);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + NPC.DirectionTo(Target.Center) * 130, NPC.DirectionTo(Target.Center).RotatedBy(0.34f) * 90f, type, damage, 0f, Main.myPlayer, 0f, 0, 50);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + NPC.DirectionTo(Target.Center) * 130, NPC.DirectionTo(Target.Center).RotatedBy(-0.34f) * 90f, type, damage, 0f, Main.myPlayer, 0f, 0, 50);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + NPC.DirectionTo(Target.Center).RotatedBy(0.34f) * 130, NPC.DirectionTo(Target.Center).RotatedBy(0.34f) * 90f, type, damage, 0f, Main.myPlayer, 0f, 0, 50);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + NPC.DirectionTo(Target.Center).RotatedBy(-0.34f) * 130, NPC.DirectionTo(Target.Center).RotatedBy(-0.34f) * 90f, type, damage, 0f, Main.myPlayer, 0f, 0, 50);
|
||||
for (int i = 0; i < 30; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(7, 7).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
@@ -406,11 +406,12 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
damage /= 2;
|
||||
Vector2 slashSpawnPosition = NPC.Center;
|
||||
Vector2 firingVelocity = (NPC.AnyNPCs(ModContent.NPCType<SupremeCataclysm>()) == false ? (NPC.DirectionTo(Target.Center) + Target.velocity * 0.032f).SafeNormalize(Vector2.UnitY) : NPC.DirectionTo(Target.Center));
|
||||
if (BigAttackLimit == 0 && !Phase2 && death)
|
||||
|
||||
if ((Phase2 ? BigAttackLimit <= 3 && BigAttackLimit > 0 : BigAttackLimit == 0) && death)
|
||||
{
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), slashSpawnPosition, firingVelocity * 90f, type, damage, 0f, Main.myPlayer, 0f, 5, 50);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), slashSpawnPosition + firingVelocity * 130, (Phase2 ? NPC.DirectionTo(Target.Center) : firingVelocity) * 90f, type, damage, 0f, Main.myPlayer, 0f, 5, 50);
|
||||
SoundStyle slash = new("CalamityMod/Sounds/Item/MurasamaBigSwing");
|
||||
SoundEngine.PlaySound(slash with { Volume = 0.55f, Pitch = -0.3f }, NPC.Center);
|
||||
SoundEngine.PlaySound(slash with { Volume = 0.55f, Pitch = -0.3f - BigAttackLimit * 0.1f }, NPC.Center);
|
||||
}
|
||||
else if (BigAttackLimit == 0 && Phase2)
|
||||
{
|
||||
|
||||
@@ -74,19 +74,37 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// Adds rotation, but it's SUPER unfair a lot of the time
|
||||
//shootVel = shootVel.RotatedBy(Time * 0.00011f * rotDirection);
|
||||
|
||||
|
||||
|
||||
if (Projectile.timeLeft == 205)
|
||||
{
|
||||
Vector2 vel1 = -shootVel * MathHelper.Clamp(Time * 0.1f, 1, 1.8f);
|
||||
GlowSparkParticle spark = new GlowSparkParticle(Projectile.Center + vel1 * 9, vel1, false, 7, 0.17f, Color.Lerp(Color.Red, Color.Magenta, 0.5f), new Vector2(0.9f, 0.4f), true);
|
||||
GeneralParticleHandler.SpawnParticle(spark);
|
||||
|
||||
Vector2 vel2 = (-shootVel * MathHelper.Clamp(Time * 0.1f, 1, 1.8f)).RotatedBy(MathHelper.ToRadians(120f));
|
||||
GlowSparkParticle spark2 = new GlowSparkParticle(Projectile.Center + vel2 * 9, vel2, false, 7, 0.17f, Color.Lerp(Color.Red, Color.Magenta, 0.5f), new Vector2(0.9f, 0.4f), true);
|
||||
GeneralParticleHandler.SpawnParticle(spark2);
|
||||
|
||||
Vector2 vel3 = (-shootVel * MathHelper.Clamp(Time * 0.1f, 1, 1.8f)).RotatedBy(MathHelper.ToRadians(-120f));
|
||||
GlowSparkParticle spark3 = new GlowSparkParticle(Projectile.Center + vel3 * 9, vel3, false, 7, 0.17f, Color.Lerp(Color.Red, Color.Magenta, 0.5f), new Vector2(0.9f, 0.4f), true);
|
||||
GeneralParticleHandler.SpawnParticle(spark3);
|
||||
}
|
||||
|
||||
if (Projectile.timeLeft <= 200 && Time % 3 == 0)
|
||||
{
|
||||
Vector2 randPos = shootVel.RotatedBy(MathHelper.ToRadians(90f)) * Main.rand.NextFloat(-25, 25);
|
||||
Vector2 randPos = (-shootVel * 1.5f).RotatedByRandom(1) * Main.rand.NextFloat(5, 15);
|
||||
int type = ModContent.ProjectileType<SupremeCataclysmFist>();
|
||||
SoundEngine.PlaySound(SupremeCalamitas.BrimstoneShotSound with { Volume = 1.2f, Pitch = 0.55f }, Projectile.Center);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromAI(), Projectile.Center + randPos, (-shootVel * MathHelper.Clamp(Time * 0.1f, 1, 1.8f)) * Main.rand.NextFloat(0.75f, 1f), type, Projectile.damage, 0f, Main.myPlayer, 0f, Main.rand.Next(0, 1 + 1), 0);
|
||||
}
|
||||
if (Projectile.timeLeft <= 200 && Time % 3 == 0 && NPC.AnyNPCs(ModContent.NPCType<SupremeCatastrophe>()) == false)
|
||||
{
|
||||
Vector2 randPos = shootVel.RotatedBy(MathHelper.ToRadians(90f)) * Main.rand.NextFloat(-25, 25);
|
||||
Vector2 randPos = (-shootVel * 1.5f).RotatedBy(MathHelper.ToRadians(120f)).RotatedByRandom(1) * Main.rand.NextFloat(5, 15);
|
||||
Vector2 randPos2 = (-shootVel * 1.5f).RotatedBy(MathHelper.ToRadians(-120f)).RotatedByRandom(1) * Main.rand.NextFloat(5, 15);
|
||||
int type = ModContent.ProjectileType<SupremeCataclysmFist>();
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromAI(), Projectile.Center + randPos, (-shootVel * MathHelper.Clamp(Time * 0.1f, 1, 1.8f)).RotatedBy(MathHelper.ToRadians(120f)) * Main.rand.NextFloat(0.75f, 1f), type, Projectile.damage, 0f, Main.myPlayer, 0f, Main.rand.Next(0, 1 + 1), 0);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromAI(), Projectile.Center + randPos, (-shootVel * MathHelper.Clamp(Time * 0.1f, 1, 1.8f)).RotatedBy(MathHelper.ToRadians(-120f)) * Main.rand.NextFloat(0.75f, 1f), type, Projectile.damage, 0f, Main.myPlayer, 0f, Main.rand.Next(0, 1 + 1), 0);
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromAI(), Projectile.Center + randPos2, (-shootVel * MathHelper.Clamp(Time * 0.1f, 1, 1.8f)).RotatedBy(MathHelper.ToRadians(-120f)) * Main.rand.NextFloat(0.75f, 1f), type, Projectile.damage, 0f, Main.myPlayer, 0f, Main.rand.Next(0, 1 + 1), 0);
|
||||
}
|
||||
if (Projectile.timeLeft == 1)
|
||||
{
|
||||
|
||||
@@ -200,7 +200,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (Projectile.ai[1] == 0f)
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Boss/SupremeCatastropheSlashAlt").Value;
|
||||
|
||||
Vector2 drawPosition = Projectile.Center - Main.screenPosition + Vector2.UnitY * Projectile.gfxOffY;
|
||||
Vector2 drawPosition = Projectile.Center - Main.screenPosition;
|
||||
drawPosition -= Projectile.velocity.SafeNormalize(Vector2.UnitX) * 38f;
|
||||
Rectangle frame = texture.Frame(1, Main.projFrames[Projectile.type], 0, Projectile.frame);
|
||||
|
||||
@@ -222,6 +222,6 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (info.Damage <= 0 || Projectile.Opacity != 1f && Projectile.ai[2] < 4 || !dashSlashExplode && Projectile.ai[2] >= 4)
|
||||
return;
|
||||
}
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, (Projectile.ai[1] == 5 ? 70 : Projectile.ai[2] >= 4 ? 100 : 50), targetHitbox);
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, (Projectile.ai[1] == 5 ? 70 : Projectile.ai[2] >= 4 ? 100 : 43), targetHitbox);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user