1 - Cal Clone actually inflicts contact damage again once her bullet hells are done.

2 - Cal Clone bullet hell hellblasts accelerate over time in expert+ after 4 seconds have passed.
This commit is contained in:
Andrew Marheine committed 2021-08-04 01:50:05 -05:00
1 parent e9b7ac0ebf
commit e8a5470913
2 files changed
+19 -7

No files matched your search

+10 -7
View File
@@ -1465,6 +1465,9 @@ namespace CalamityMod.NPCs
else if (npc.timeLeft < 1800)
npc.timeLeft = 1800;
// Reset damage from bullet hell phases
npc.damage = npc.defDamage;
// Bullet hell phase
if (calamityGlobalNPC.newAI[2] > 0f)
{
@@ -1572,22 +1575,22 @@ namespace CalamityMod.NPCs
{
float distance = Main.rand.NextBool() ? -1000f : 1000f;
float velocity = distance == -1000f ? projSpeed : -projSpeed;
Projectile.NewProjectile(player.position.X + distance, player.position.Y, velocity, 0f, type, damage, 0f, Main.myPlayer, 1f, 0f);
Projectile.NewProjectile(player.position.X + distance, player.position.Y, velocity, 0f, type, damage, 0f, Main.myPlayer, 2f, 0f);
}
if (calamityGlobalNPC.newAI[3] < 300f) // Blasts from above
{
Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, projSpeed, type, damage, 0f, Main.myPlayer, 1f, 0f);
Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, projSpeed, type, damage, 0f, Main.myPlayer, 2f, 0f);
}
else if (calamityGlobalNPC.newAI[3] < 600f) // Blasts from left and right
{
Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -(projSpeed - 0.5f), 0f, type, damage, 0f, Main.myPlayer, 1f, 0f);
Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), projSpeed - 0.5f, 0f, type, damage, 0f, Main.myPlayer, 1f, 0f);
Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -(projSpeed - 0.5f), 0f, type, damage, 0f, Main.myPlayer, 2f, 0f);
Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), projSpeed - 0.5f, 0f, type, damage, 0f, Main.myPlayer, 2f, 0f);
}
else // Blasts from above, left, and right
{
Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, projSpeed - 1f, type, damage, 0f, Main.myPlayer, 1f, 0f);
Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -(projSpeed - 1f), 0f, type, damage, 0f, Main.myPlayer, 1f, 0f);
Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), projSpeed - 1f, 0f, type, damage, 0f, Main.myPlayer, 1f, 0f);
Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, projSpeed - 1f, type, damage, 0f, Main.myPlayer, 2f, 0f);
Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -(projSpeed - 1f), 0f, type, damage, 0f, Main.myPlayer, 2f, 0f);
Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), projSpeed - 1f, 0f, type, damage, 0f, Main.myPlayer, 2f, 0f);
}
}
}
+9
View File
@@ -1,9 +1,11 @@
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.World;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Boss
{
public class BrimstoneHellblast2 : ModProjectile
@@ -31,6 +33,13 @@ namespace CalamityMod.Projectiles.Boss
public override void AI()
{
// Cal Clone bullet hell projectiles accelerate after a certain time has passed
if (projectile.ai[0] == 2f && Main.expertMode && projectile.timeLeft < 1260)
{
if (projectile.velocity.Length() < (CalamityWorld.malice ? 10f : 8f))
projectile.velocity *= 1.02f;
}
projectile.frameCounter++;
if (projectile.frameCounter >= 10)
{