Hive Mind phase 2 'subphase' 1 lasts for 20% of its HP instead of 30% because it's the most bland part of the fight, gave Dark Hearts guaranteed Heart drops, made their rain more frequent, and made them fly higher to drop rain.

This commit is contained in:
mountaindrew10 committed 2025-04-21 05:15:28 -05:00
1 parent 43d408c49a
commit 54a95f1c28
2 files changed
+9 -9

No files matched your search

+4 -4
View File
@@ -89,7 +89,7 @@ namespace CalamityMod.NPCs.HiveMind
acceleration *= 2f;
}
if (NPC.position.Y > Main.player[NPC.target].position.Y - 350f)
if (NPC.position.Y > Main.player[NPC.target].position.Y - 400f)
{
if (NPC.velocity.Y > 0f)
NPC.velocity.Y *= deceleration;
@@ -104,7 +104,7 @@ namespace CalamityMod.NPCs.HiveMind
NPC.velocity.Y = MathHelper.Clamp(NPC.velocity.Y + acceleration, -velocity, velocity * 1.5f);
}
bool dropRain = NPC.Bottom.Y < Main.player[NPC.target].position.Y - 300f && Collision.CanHit(NPC.position, NPC.width, NPC.height, Main.player[NPC.target].position, Main.player[NPC.target].width, Main.player[NPC.target].height);
bool dropRain = NPC.Bottom.Y < Main.player[NPC.target].position.Y - 350f && Collision.CanHit(NPC.position, NPC.width, NPC.height, Main.player[NPC.target].position, Main.player[NPC.target].width, Main.player[NPC.target].height);
float distanceX = masterMode ? 200f : 400f;
if (NPC.Center.X > Main.player[NPC.target].Center.X + distanceX)
{
@@ -128,7 +128,7 @@ namespace CalamityMod.NPCs.HiveMind
if (dropRain && Main.netMode != NetmodeID.MultiplayerClient)
{
NPC.ai[0] += 1f;
float rainDropRate = Main.getGoodWorld ? 10f : death ? 20f : revenge ? 25f : 30f;
float rainDropRate = Main.getGoodWorld ? 10f : death ? 15f : revenge ? 20f : 30f;
if (NPC.ai[0] >= rainDropRate)
{
NPC.ai[0] = 0f;
@@ -146,7 +146,7 @@ namespace CalamityMod.NPCs.HiveMind
public override void OnKill()
{
int closestPlayer = Player.FindClosest(NPC.Center, 1, 1);
if (Main.rand.NextBool(4) && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2)
if (Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2)
Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart);
}
+5 -5
View File
@@ -771,7 +771,7 @@ namespace CalamityMod.NPCs.HiveMind
if (nextState == 0)
{
NPC.TargetClosest();
if (revenge && lifeRatio < 0.5f)
if (revenge && lifeRatio < 0.6f)
{
if (death)
{
@@ -780,7 +780,7 @@ namespace CalamityMod.NPCs.HiveMind
while (nextState == previousState);
previousState = nextState;
}
else if (lifeRatio < 0.25f)
else if (lifeRatio < 0.3f)
{
do
nextState = Main.rand.Next(3, 6);
@@ -948,7 +948,7 @@ namespace CalamityMod.NPCs.HiveMind
NPC.velocity = Vector2.Zero;
dashStarted = false;
if (revenge && lifeRatio < 0.53f && lungesPerformed == 0 && rainDashesPerformed == 0)
if (revenge && lifeRatio < 0.6f && lungesPerformed == 0 && rainDashesPerformed == 0)
{
state = nextState;
nextState = 0;
@@ -1273,8 +1273,8 @@ namespace CalamityMod.NPCs.HiveMind
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int x = (int)(NPC.position.X + Main.rand.Next(NPC.width - 32));
int y = (int)(NPC.position.Y + Main.rand.Next(NPC.height - 32));
int x = (int)(NPC.position.X + Main.rand.Next(NPC.width));
int y = (int)(NPC.position.Y + Main.rand.Next(NPC.height));
int type = ModContent.NPCType<DarkHeart>();
int tenPercentMinions = NPC.NewNPC(NPC.GetSource_FromAI(), x, y, type);
Main.npc[tenPercentMinions].SetDefaults(type);