Brothers number tweaks and damage values
Fixed dying to bullet hells searching for an inactive Scal (probably, I checked and it didn't happen again for me)
This commit is contained in:
1 parent
4efdad1f2f
commit
c695fdd567
9 files changed
+85
-49
No files matched your search
@@ -1848,6 +1848,27 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
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++)
|
||||
{
|
||||
Projectile projectile = Main.projectile[x];
|
||||
if (projectile.active)
|
||||
{
|
||||
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[1] = 1f;
|
||||
|
||||
if (projectile.timeLeft > 15)
|
||||
projectile.timeLeft = 15;
|
||||
}
|
||||
}
|
||||
}
|
||||
teleport = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,12 +37,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
public const int PreBigAttackPause = 50;
|
||||
public const float NormalBrothersDR = 0.25f;
|
||||
public int BigAttackLimit = 8;
|
||||
public int BigAttackLimit = 7;
|
||||
public bool targetSide = false;
|
||||
public int secondOrbTimer = 0;
|
||||
public Vector2 offset = Vector2.Zero;
|
||||
public bool MovingUp = true;
|
||||
public bool EnrageRoar = true;
|
||||
public int doublePunchCounter = 0;
|
||||
|
||||
public Player Target => Main.player[NPC.target];
|
||||
public ref float PunchCounter => ref NPC.ai[1];
|
||||
@@ -91,7 +92,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
NPC.DeathSound = SupremeCalamitas.BrotherDeath;
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToCold = true;
|
||||
NPC.localAI[1] = 600;
|
||||
NPC.localAI[1] = 500;
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
@@ -212,8 +213,10 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
if (Phase2 && BigAttackTimer > 400)
|
||||
BigAttackTimer = 400;
|
||||
|
||||
if (Phase2 && BigAttackTimer > 0 && BigAttackLimit < 19)
|
||||
if (NPC.AnyNPCs(ModContent.NPCType<SupremeCatastrophe>()) == false && BigAttackTimer > 0 && BigAttackLimit < 19)
|
||||
BigAttackLimit = 19;
|
||||
else if (Phase2 && BigAttackTimer > 0 && BigAttackLimit < 11)
|
||||
BigAttackLimit = 11;
|
||||
|
||||
if (BigAttackTimer > PreBigAttackPause)
|
||||
{
|
||||
@@ -254,7 +257,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
cataclysmdust.color = Color.Red;
|
||||
}
|
||||
}
|
||||
CalamityUtils.SmoothMovement(NPC, 0, (Target.Center + new Vector2(-HorizontalOffset * (!targetSide ? -1 : 1), VerticalOffset)) - NPC.Center, Utils.Remap(AttackDelayTimer, 90f, 120f, 0f, 70f), 1f, false);
|
||||
CalamityUtils.SmoothMovement(NPC, 0, (Target.Center + new Vector2(-HorizontalOffset * (!targetSide ? -1 : 1), VerticalOffset)) - NPC.Center, Utils.Remap(AttackDelayTimer, 10f, 120f, 20f, 80f), 1f, false);
|
||||
}
|
||||
else
|
||||
NPC.velocity *= 0.85f;
|
||||
@@ -302,13 +305,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
// Have a small delay prior to shooting projectiles.
|
||||
if (AttackDelayTimer < 120f)
|
||||
AttackDelayTimer++;
|
||||
AttackDelayTimer += (death ? 2 : 1);
|
||||
|
||||
// Handle projectile shots.
|
||||
else if (BigAttackTimer > PreBigAttackPause)
|
||||
{
|
||||
// Shoot fists.
|
||||
float fireRate = BossRushEvent.BossRushActive ? 2f : MathHelper.Lerp(1.5f, 2.5f, 1f - totalLifeRatio) * (NPC.AnyNPCs(ModContent.NPCType<SupremeCatastrophe>()) == false ? 1.2f : 1);
|
||||
float fireRate = BossRushEvent.BossRushActive ? 2f : MathHelper.Lerp(1.5f, 2f, 1f - totalLifeRatio) * (NPC.AnyNPCs(ModContent.NPCType<SupremeCatastrophe>()) == false ? death ? 1.32f : 1.1f : 1);
|
||||
|
||||
PunchCounter += fireRate;
|
||||
if (PunchCounter >= PunchCounterLimit)
|
||||
@@ -325,12 +328,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
Vector2 fistSpawnPosition = NPC.Center + Vector2.UnitX * 74f * NPC.direction;
|
||||
if (Phase2)
|
||||
{
|
||||
if (PunchingFromRight)
|
||||
if (doublePunchCounter < 2)
|
||||
{
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, NPC.DirectionTo(Target.Center) * 15f, type, damage, 0f, Main.myPlayer, 0f, PunchingFromRight.ToInt(), 2);
|
||||
doublePunchCounter++;
|
||||
}
|
||||
else
|
||||
{
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, NPC.DirectionTo(Target.Center).RotatedBy(0.45) * 15f, type, damage, 0f, Main.myPlayer, 0f, PunchingFromRight.ToInt(), 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, NPC.DirectionTo(Target.Center).RotatedBy(-0.45) * 15f, type, damage, 0f, Main.myPlayer, 0f, PunchingFromRight.ToInt(), 2);
|
||||
doublePunchCounter = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -363,7 +370,11 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
else
|
||||
{
|
||||
// Shoot fists.
|
||||
float fireRate = (BossRushEvent.BossRushActive ? 3.5f + (Phase2 ? (19 - BigAttackLimit) * 0.45f : 0) : MathHelper.Lerp(3f, (4f + (Phase2 ? (19 - BigAttackLimit) * 0.45f : 0)), 1f - totalLifeRatio) * (NPC.AnyNPCs(ModContent.NPCType<SupremeCatastrophe>()) == false ? 1.2f : 1));
|
||||
float fireRate = BossRushEvent.BossRushActive ? 3.5f : MathHelper.Lerp(3f, 4f, 1f - totalLifeRatio);
|
||||
if (NPC.AnyNPCs(ModContent.NPCType<SupremeCatastrophe>()) == false)
|
||||
fireRate = BossRushEvent.BossRushActive ? 3.5f + (19 - BigAttackLimit) * 0.45f : MathHelper.Lerp(3f, (4f + (19 - BigAttackLimit) * 0.45f), 1f - totalLifeRatio) * 1.2f;
|
||||
if (Phase2 && BigAttackLimit == 0)
|
||||
fireRate = 1;
|
||||
|
||||
PunchCounter += fireRate;
|
||||
if (PunchCounter >= PunchCounterLimit)
|
||||
@@ -378,10 +389,10 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
if (BigAttackLimit == (Phase2 ? 1 : 0) && death)
|
||||
{
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 13f).RotatedBy(0.4f), type, damage, 0f, Main.myPlayer, 0f, 1, 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 13f).RotatedBy(0.8f), type, damage, 0f, Main.myPlayer, 0f, 0, 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 13f).RotatedBy(-0.4f), type, damage, 0f, Main.myPlayer, 0f, 1, 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 13f).RotatedBy(-0.8f), type, damage, 0f, Main.myPlayer, 0f, 0, 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 13f).RotatedBy(0.25f), type, damage, 0f, Main.myPlayer, 0f, 1, 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 13f).RotatedBy(0.7f), type, damage, 0f, Main.myPlayer, 0f, 0, 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 13f).RotatedBy(-0.25f), type, damage, 0f, Main.myPlayer, 0f, 1, 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), fistSpawnPosition, (NPC.DirectionTo(Target.Center) * 13f).RotatedBy(-0.7f), 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)
|
||||
@@ -420,9 +431,9 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
BigAttackLimit--;
|
||||
else
|
||||
{
|
||||
BigAttackTimer = 600;
|
||||
BigAttackTimer = 500;
|
||||
AttackDelayTimer = 0;
|
||||
BigAttackLimit = 8;
|
||||
BigAttackLimit = 7;
|
||||
|
||||
targetSide = !targetSide;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
public const int SlashCounterLimit = 50;
|
||||
public const int DartBurstCounterLimit = 300;
|
||||
public const int PreBigAttackPause = 50;
|
||||
public int BigAttackLimit = 8;
|
||||
public int BigAttackLimit = 7;
|
||||
public bool targetSide = false;
|
||||
public int dashAttackTimer = 0;
|
||||
public int dashes = 0;
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
NPC.DeathSound = SupremeCalamitas.BrotherDeath;
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToCold = true;
|
||||
NPC.localAI[1] = 600;
|
||||
NPC.localAI[1] = 500;
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
@@ -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.3f) * 80f, type, damage, 0f, Main.myPlayer, 0f, 5, 50);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + NPC.DirectionTo(Target.Center) * 130, NPC.DirectionTo(Target.Center).RotatedBy(-0.3f) * 80f, type, damage, 0f, Main.myPlayer, 0f, 5, 50);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + NPC.DirectionTo(Target.Center) * 130, NPC.DirectionTo(Target.Center).RotatedBy(0.35f) * 80f, type, damage, 0f, Main.myPlayer, 0f, 5, 50);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + NPC.DirectionTo(Target.Center) * 130, NPC.DirectionTo(Target.Center).RotatedBy(-0.35f) * 80f, type, damage, 0f, Main.myPlayer, 0f, 5, 50);
|
||||
for (int i = 0; i < 30; i++)
|
||||
{
|
||||
Vector2 vel = new Vector2(7, 7).RotatedByRandom(100) * Main.rand.NextFloat(0.1f, 2.5f);
|
||||
@@ -331,7 +331,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
else if (BigAttackTimer > PreBigAttackPause)
|
||||
{
|
||||
// Shoot sword slashes.
|
||||
float fireRate = BossRushEvent.BossRushActive ? 2f : MathHelper.Lerp(1.5f, 2.5f, 1f - totalLifeRatio) * (NPC.AnyNPCs(ModContent.NPCType<SupremeCataclysm>()) == false ? 1.25f : 1);
|
||||
float fireRate = BossRushEvent.BossRushActive ? 2f : MathHelper.Lerp(1.5f, 2f, 1f - totalLifeRatio) * (NPC.AnyNPCs(ModContent.NPCType<SupremeCataclysm>()) == false ? death ? 1.25f : 1.05f : 1);
|
||||
SlashCounter += fireRate;
|
||||
if (SlashCounter >= SlashCounterLimit)
|
||||
{
|
||||
@@ -345,13 +345,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
Vector2 slashSpawnPosition = NPC.Center + Vector2.UnitX * 125f * NPC.direction;
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
Vector2 firingVelocity = (NPC.AnyNPCs(ModContent.NPCType<SupremeCataclysm>()) == false ? (NPC.DirectionTo(Target.Center) + Target.velocity * 0.032f).SafeNormalize(Vector2.UnitY) : NPC.DirectionTo(Target.Center));
|
||||
Vector2 firingVelocity = (NPC.AnyNPCs(ModContent.NPCType<SupremeCataclysm>()) == false ? (NPC.DirectionTo(Target.Center) + Target.velocity * 0.028f).SafeNormalize(Vector2.UnitY) : NPC.DirectionTo(Target.Center));
|
||||
if (Phase2)
|
||||
{
|
||||
if (accSlashCounter < 3)
|
||||
if (accSlashCounter < 2)
|
||||
{
|
||||
accSlashCounter++;
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), slashSpawnPosition, firingVelocity * 7f, type, damage, 0f, Main.myPlayer, 0f, SlashingFromRight.ToInt(), 2);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), slashSpawnPosition, firingVelocity * 5.5f, type, damage, 0f, Main.myPlayer, 0f, SlashingFromRight.ToInt(), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -392,7 +392,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
else
|
||||
{
|
||||
// Shoot sword slashes.
|
||||
float fireRate = BossRushEvent.BossRushActive ? 4f : MathHelper.Lerp(3f, 5f, 1f - totalLifeRatio) * (NPC.AnyNPCs(ModContent.NPCType<SupremeCataclysm>()) == false ? 1.2f : 1);
|
||||
float fireRate = BossRushEvent.BossRushActive ? 4f : MathHelper.Lerp(3f, 4f, 1f - totalLifeRatio) * (NPC.AnyNPCs(ModContent.NPCType<SupremeCataclysm>()) == false ? 1.2f : 1);
|
||||
if (Phase2 && BigAttackLimit == 0)
|
||||
fireRate = 1;
|
||||
SlashCounter += fireRate;
|
||||
@@ -440,9 +440,9 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
BigAttackLimit--;
|
||||
else
|
||||
{
|
||||
BigAttackTimer = 600;
|
||||
BigAttackTimer = 500;
|
||||
AttackDelayTimer = 0;
|
||||
BigAttackLimit = 8;
|
||||
BigAttackLimit = 7;
|
||||
|
||||
targetSide = !targetSide;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
lightColor.R = (byte)(255 * Projectile.Opacity);
|
||||
|
||||
if (CalamityGlobalNPC.SCal != -1)
|
||||
if (CalamityGlobalNPC.SCal != -1 && NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>()) == true)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
lightColor.R = (byte)(255 * Projectile.Opacity);
|
||||
|
||||
if (CalamityGlobalNPC.SCal != -1)
|
||||
if (CalamityGlobalNPC.SCal != -1 && NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>()) == true)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
int drawStart = frameHeight * Projectile.frame;
|
||||
lightColor.R = (byte)(255 * Projectile.Opacity);
|
||||
|
||||
if (CalamityGlobalNPC.SCal != -1)
|
||||
if (CalamityGlobalNPC.SCal != -1 && NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>()) == true)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
int drawStart = frameHeight * Projectile.frame;
|
||||
lightColor.R = (byte)(255 * Projectile.Opacity);
|
||||
|
||||
if (CalamityGlobalNPC.SCal != -1)
|
||||
if (CalamityGlobalNPC.SCal != -1 && NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>()) == true)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].active)
|
||||
{
|
||||
|
||||
@@ -47,6 +47,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
bool revenge = CalamityWorld.revenge || bossRush;
|
||||
bool expertMode = Main.expertMode || bossRush;
|
||||
|
||||
// The Orb
|
||||
if (Projectile.ai[2] >= 3)
|
||||
{
|
||||
if (Projectile.timeLeft > 240)
|
||||
@@ -54,6 +55,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
shootVel = Projectile.velocity * 0.2f;
|
||||
Projectile.timeLeft = 240;
|
||||
rotDirection = Main.rand.NextBool() ? -1 : 1;
|
||||
Projectile.velocity *= 5.5f;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -66,25 +68,25 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Particle bloom3 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.White * 0.9f, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 1.4f * randSize, 0f, 10);
|
||||
GeneralParticleHandler.SpawnParticle(bloom3);
|
||||
|
||||
Projectile.velocity *= 0.985f;
|
||||
Projectile.velocity *= 0.945f;
|
||||
}
|
||||
|
||||
// Adds rotation, but it's SUPER unfair a lot of the time
|
||||
//shootVel = shootVel.RotatedBy(Time * 0.00011f * rotDirection);
|
||||
|
||||
if (Projectile.timeLeft >= 2 && Time % 3 == 0)
|
||||
if (Projectile.timeLeft <= 200 && Time % 3 == 0)
|
||||
{
|
||||
Vector2 randPos = shootVel.RotatedBy(MathHelper.ToRadians(90f)) * Main.rand.NextFloat(-25, 25);
|
||||
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.6f, 0.9f), type, Projectile.damage / 2, 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)) * Main.rand.NextFloat(0.6f, 0.9f), type, Projectile.damage, 0f, Main.myPlayer, 0f, Main.rand.Next(0, 1 + 1), 0);
|
||||
}
|
||||
if (Projectile.timeLeft >= 2 && Time % 3 == 0 && NPC.AnyNPCs(ModContent.NPCType<SupremeCatastrophe>()) == false)
|
||||
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);
|
||||
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.6f, 0.9f), type, Projectile.damage / 2, 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.6f, 0.9f), type, Projectile.damage / 2, 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.6f, 0.9f), 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.6f, 0.9f), type, Projectile.damage, 0f, Main.myPlayer, 0f, Main.rand.Next(0, 1 + 1), 0);
|
||||
}
|
||||
if (Projectile.timeLeft == 1)
|
||||
{
|
||||
@@ -114,13 +116,15 @@ namespace CalamityMod.Projectiles.Boss
|
||||
}
|
||||
else if (Projectile.ai[2] <= 2)
|
||||
{
|
||||
// Rapid punches
|
||||
if (Projectile.ai[2] == 1)
|
||||
{
|
||||
Projectile.extraUpdates = 2;
|
||||
}
|
||||
else
|
||||
Projectile.velocity *= 1.0045f;
|
||||
else // Regular punches
|
||||
Projectile.velocity *= 1.0055f;
|
||||
|
||||
// Orb mini fists
|
||||
if (Projectile.ai[2] == 0)
|
||||
{
|
||||
Projectile.scale = 0.8f;
|
||||
@@ -172,7 +176,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool CanHitPlayer(Player target) => Projectile.Opacity >= 1f;
|
||||
public override bool CanHitPlayer(Player target) => (Projectile.Opacity >= 1f || Projectile.ai[2] >= 3);
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
@@ -181,6 +185,6 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 240, true);
|
||||
}
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, 35 * Projectile.scale, targetHitbox);
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, (Projectile.ai[2] >= 3 ? 90 : 35 * Projectile.scale), targetHitbox);
|
||||
}
|
||||
}
|
||||
@@ -68,6 +68,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Projectile.spriteDirection = 1;
|
||||
Projectile.rotation = (float)Math.Atan2(Projectile.velocity.Y, Projectile.velocity.X);
|
||||
}
|
||||
// Non dash slash trails
|
||||
if (Projectile.ai[2] == 50)
|
||||
{
|
||||
Projectile.extraUpdates = 0;
|
||||
@@ -85,14 +86,15 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity.SafeNormalize(Vector2.UnitY) * 0.1f, ModContent.ProjectileType<SupremeCatastropheSlash>(), Projectile.damage, 0f, Main.myPlayer, 0f, 5, 4 + Time);
|
||||
return;
|
||||
}
|
||||
if (Projectile.ai[2] >= 1 && Projectile.ai[2] < 3)
|
||||
if (Projectile.ai[2] == 1 || Projectile.ai[2] == 2)
|
||||
{
|
||||
// Rapid slashes
|
||||
if (Projectile.ai[2] == 1)
|
||||
Projectile.extraUpdates = 2;
|
||||
else
|
||||
else // Regular slashes
|
||||
Projectile.velocity *= 1.0045f;
|
||||
}
|
||||
// Acceleration slash
|
||||
// Acceleration slashes
|
||||
else if (Projectile.ai[2] == 3)
|
||||
{
|
||||
Projectile.extraUpdates = 5;
|
||||
@@ -106,11 +108,11 @@ namespace CalamityMod.Projectiles.Boss
|
||||
catastrophedust.color = Color.DeepSkyBlue;
|
||||
}
|
||||
}
|
||||
// Dash of slashes
|
||||
// Slash trails
|
||||
else if (Projectile.ai[2] >= 4)
|
||||
{
|
||||
Projectile.extraUpdates = 0;
|
||||
if (Projectile.ai[1] == 5)
|
||||
if (Projectile.ai[1] == 5) // Non dash trails
|
||||
{
|
||||
if (Projectile.timeLeft == 1500)
|
||||
{
|
||||
@@ -138,11 +140,11 @@ namespace CalamityMod.Projectiles.Boss
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
else // Dash trails
|
||||
{
|
||||
if (Projectile.timeLeft == 1500)
|
||||
{
|
||||
Projectile.timeLeft = 30 - (int)(Projectile.ai[2] - 4);
|
||||
Projectile.timeLeft = 40 - (int)(Projectile.ai[2] - 4);
|
||||
SparkParticle spark1 = new SparkParticle(Projectile.Center, Projectile.velocity, false, 25, 5f, Color.DeepSkyBlue * 0.35f);
|
||||
GeneralParticleHandler.SpawnParticle(spark1);
|
||||
SparkParticle spark2 = new SparkParticle(Projectile.Center + Projectile.velocity * 50, Projectile.velocity, false, 25, 5f, Color.DeepSkyBlue * 0.35f);
|
||||
@@ -171,8 +173,6 @@ namespace CalamityMod.Projectiles.Boss
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
Projectile.velocity *= 1.003f;
|
||||
|
||||
// Emit light.
|
||||
Lighting.AddLight(Projectile.Center, 0.5f * Projectile.Opacity, 0f, 0f);
|
||||
@@ -207,6 +207,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 ? 78 : Projectile.ai[2] >= 4 ? 140 : 50), targetHitbox);
|
||||
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, (Projectile.ai[1] == 5 ? 70 : Projectile.ai[2] >= 4 ? 100 : 50), targetHitbox);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user