1 - Rev+ Cultist adjustments.

This commit is contained in:
Andrew Marheine committed 2021-10-02 23:55:28 -05:00
1 parent 2d8093e1a6
commit 2715c9deda
6 files changed
+24 -16

No files matched your search

+12 -9
View File
@@ -12091,7 +12091,7 @@ namespace CalamityMod.NPCs
int iceMistAmt = phase3 ? 2 : 1;
int fireballFireRate = phase5 ? 10 : 12;
float fireballSpeed = (phase6 ? 7.5f : 6f) + (death ? 2f * (1f - lifeRatio) : 0f) - (isCultist ? 0f : 3f);
int lightningOrbPhaseTime = phase2 ? 150 : 180;
int lightningOrbPhaseTime = phase2 ? 90 : 120;
int ancientLightSpawnRate = phase4 ? 25 : 30;
int ancientLightAmt = phase4 ? 3 : 2;
int ancientDoomLimit = 10;
@@ -12919,8 +12919,8 @@ namespace CalamityMod.NPCs
}
int num52 = list8.Count + 1;
if (num52 > 3)
num52 = 3;
if (num52 > 2)
num52 = 2;
int num53 = Math.Sign(player.Center.X - center.X);
if (num53 != 0)
@@ -13217,12 +13217,15 @@ namespace CalamityMod.NPCs
kill = true;
if (Main.netMode != NetmodeID.MultiplayerClient)
{
for (int num1501 = 0; num1501 < 4; num1501++)
{
Vector2 vector255 = new Vector2(0f, -splitProjVelocity).RotatedBy(MathHelper.PiOver2 * num1501);
Projectile.NewProjectile(npc.Center, vector255, type, damage, 0f, Main.myPlayer);
}
}
int totalProjectiles = (Main.npc[(int)npc.ai[0]].type == NPCID.CultistBoss && !phase3) ? 8 : 4;
float radians = MathHelper.TwoPi / totalProjectiles;
Vector2 spinningPoint = new Vector2(0f, -splitProjVelocity);
for (int k = 0; k < totalProjectiles; k++)
{
Vector2 vector255 = spinningPoint.RotatedBy(radians * k);
Projectile.NewProjectile(npc.Center, vector255, type, damage, 0f, Main.myPlayer);
}
}
}
if (kill)
-1
View File
@@ -12,7 +12,6 @@ using Terraria.ModLoader;
namespace CalamityMod.NPCs.ExoMechs.Ares
{
//[AutoloadBossHead]
public class AresGaussNuke : ModNPC
{
public enum Phase
-1
View File
@@ -12,7 +12,6 @@ using Terraria.ModLoader;
namespace CalamityMod.NPCs.ExoMechs.Ares
{
//[AutoloadBossHead]
public class AresLaserCannon : ModNPC
{
public enum Phase
@@ -12,7 +12,6 @@ using Terraria.ModLoader;
namespace CalamityMod.NPCs.ExoMechs.Ares
{
//[AutoloadBossHead]
public class AresPlasmaFlamethrower : ModNPC
{
public enum Phase
-1
View File
@@ -12,7 +12,6 @@ using Terraria.ModLoader;
namespace CalamityMod.NPCs.ExoMechs.Ares
{
//[AutoloadBossHead]
public class AresTeslaCannon : ModNPC
{
public enum Phase
+12 -3
View File
@@ -852,8 +852,11 @@ namespace CalamityMod.Projectiles
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.malice)
{
if (projectile.type == ProjectileID.DemonSickle && CalamityPlayer.areThereAnyDamnBosses)
if (projectile.type == ProjectileID.DemonSickle)
{
if (Main.wof < 0 || !Main.npc[Main.wof].active || Main.npc[Main.wof].life <= 0)
return true;
if (projectile.ai[0] == 0f)
Main.PlaySound(SoundID.Item8, projectile.position);
@@ -1166,7 +1169,13 @@ namespace CalamityMod.Projectiles
return false;
}
else if (projectile.type == ProjectileID.CultistBossLightningOrb)
else if (projectile.type == ProjectileID.AncientDoomProjectile)
{
if (projectile.velocity.Length() < 12f)
projectile.velocity *= 1.02f;
}
else if (projectile.type == ProjectileID.CultistBossLightningOrb && (CalamityWorld.malice || BossRushEvent.BossRushActive))
{
if (NPC.AnyNPCs(NPCID.CultistBoss))
{
@@ -1313,7 +1322,7 @@ namespace CalamityMod.Projectiles
float scaleFactor2 = projectile.velocity.Length();
vector11.Normalize();
vector11 *= scaleFactor2;
projectile.velocity = (projectile.velocity * 15f + vector11) / 16f;
projectile.velocity = (projectile.velocity * 20f + vector11) / 21f;
projectile.velocity.Normalize();
projectile.velocity *= scaleFactor2;