Fixed some Master Rev+ boss stuff.
This commit is contained in:
1 parent
fcfc6b59a0
commit
4ae72aee1d
5 files changed
+35
-8
No files matched your search
@@ -412,6 +412,12 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
spread = death ? 30 : 20;
|
||||
}
|
||||
|
||||
if (masterMode)
|
||||
{
|
||||
numProj += 3;
|
||||
spread += 10;
|
||||
}
|
||||
|
||||
float rotation = MathHelper.ToRadians(spread);
|
||||
for (int j = 0; j < numProj; j++)
|
||||
{
|
||||
@@ -451,7 +457,10 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
}
|
||||
|
||||
if (masterMode)
|
||||
numProj += 2;
|
||||
{
|
||||
numProj += 4;
|
||||
spread += 15;
|
||||
}
|
||||
|
||||
float rotation = MathHelper.ToRadians(spread);
|
||||
for (int i = 0; i < numProj; i++)
|
||||
|
||||
@@ -84,6 +84,10 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
// Boost velocity by 50% phase
|
||||
bool phase4 = lifeRatio < (masterMode ? 0.5f : 0.2f);
|
||||
|
||||
// Go fucking crazy in Master Mode
|
||||
bool phase5 = lifeRatio < 0.15f && masterMode;
|
||||
bool phase6 = lifeRatio < 0.05f && masterMode;
|
||||
|
||||
// Fire projectiles
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
@@ -351,7 +355,17 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
float segmentVelocity = 12f + velocityBoost;
|
||||
float segmentAcceleration = 0.15f + accelerationBoost;
|
||||
|
||||
if (phase4)
|
||||
if (phase6)
|
||||
{
|
||||
segmentVelocity += 8f * (enrageScale + 1f);
|
||||
segmentAcceleration += 0.4f * (enrageScale + 1f);
|
||||
}
|
||||
else if (phase5)
|
||||
{
|
||||
segmentVelocity += 4f * (enrageScale + 1f);
|
||||
segmentAcceleration += 0.2f * (enrageScale + 1f);
|
||||
}
|
||||
else if (phase4)
|
||||
{
|
||||
segmentVelocity += 2f * (enrageScale + 1f);
|
||||
segmentAcceleration += 0.1f * (enrageScale + 1f);
|
||||
@@ -517,14 +531,14 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
|
||||
while (segmentAmt > 0 && segmentAmt < Main.maxNPCs && Main.npc[segmentAmt].active && Main.npc[segmentAmt].aiStyle == npc.aiStyle)
|
||||
{
|
||||
int arg_2853_0 = (int)Main.npc[segmentAmt].ai[0];
|
||||
int attachedSegments = (int)Main.npc[segmentAmt].ai[0];
|
||||
Main.npc[segmentAmt].active = false;
|
||||
npc.life = 0;
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, segmentAmt, 0f, 0f, 0f, 0, 0, 0);
|
||||
|
||||
segmentAmt = arg_2853_0;
|
||||
segmentAmt = attachedSegments;
|
||||
}
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
|
||||
@@ -877,7 +877,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
npc.TargetClosest();
|
||||
calamityGlobalNPC.newAI[0] += ((masterMode && calamityGlobalNPC.newAI[0] % 2f != 0f) ? Main.rand.Next(2) + 1f : 1f);
|
||||
if (calamityGlobalNPC.newAI[0] > 3f)
|
||||
calamityGlobalNPC.newAI[0] = 0f;
|
||||
calamityGlobalNPC.newAI[0] = masterMode ? Main.rand.Next(2) : 0f;
|
||||
|
||||
npc.SyncExtraAI();
|
||||
}
|
||||
|
||||
@@ -57,8 +57,11 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
if (phase3)
|
||||
{
|
||||
crystalAlive = NPC.AnyNPCs(ModContent.NPCType<KingSlimeJewel>());
|
||||
blueCrystalAlive = NPC.AnyNPCs(ModContent.NPCType<KingSlimeJewel2>());
|
||||
greenCrystalAlive = NPC.AnyNPCs(ModContent.NPCType<KingSlimeJewel3>());
|
||||
if (masterMode)
|
||||
{
|
||||
blueCrystalAlive = NPC.AnyNPCs(ModContent.NPCType<KingSlimeJewel2>());
|
||||
greenCrystalAlive = NPC.AnyNPCs(ModContent.NPCType<KingSlimeJewel3>());
|
||||
}
|
||||
}
|
||||
|
||||
// Sapphire Crystal buffs
|
||||
|
||||
@@ -100,7 +100,8 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
|
||||
bool isQueenBeeHornet = hornet.ai[3] == 1f;
|
||||
if (hornet.active && (hornet.type == NPCID.LittleHornetHoney || hornet.type == NPCID.HornetHoney || hornet.type == NPCID.BigHornetHoney) && isQueenBeeHornet)
|
||||
{
|
||||
totalHornets++;
|
||||
int hornetCountIncrement = hornet.type == NPCID.BigHornetHoney ? 3 : hornet.type == NPCID.HornetHoney ? 2 : 1;
|
||||
totalHornets += hornetCountIncrement;
|
||||
if (totalHornets >= hornetLimit)
|
||||
{
|
||||
hornetLimitReached = true;
|
||||
|
||||
Reference in new issue
Block a user