1 - Yharon increased aggression over time removed.

This commit is contained in:
Andrew Marheine committed 2022-01-26 10:57:30 -06:00
1 parent ab54acf03c
commit f38879da82
1 file changed
-14
-14
View File
@@ -159,13 +159,6 @@ namespace CalamityMod.NPCs.Yharon
bool revenge = CalamityWorld.revenge || malice;
bool death = CalamityWorld.death || malice;
if (revenge)
{
// Increase aggression if player is taking a long time to kill the boss
if (lifeRatio > calamityGlobalNPC.killTimeRatio_IncreasedAggression)
lifeRatio = calamityGlobalNPC.killTimeRatio_IncreasedAggression;
}
float pie = (float)Math.PI;
Vector2 vectorCenter = npc.Center;
@@ -2946,13 +2939,6 @@ namespace CalamityMod.NPCs.Yharon
// Percent life remaining
float lifeRatio = npc.life / (float)npc.lifeMax;
if (CalamityWorld.revenge || CalamityWorld.malice || BossRushEvent.BossRushActive)
{
// Increase aggression if player is taking a long time to kill the boss
if (lifeRatio > npc.Calamity().killTimeRatio_IncreasedAggression)
lifeRatio = npc.Calamity().killTimeRatio_IncreasedAggression;
}
bool doTelegraphFlightAnimation = npc.localAI[1] < fastChargeTelegraphTime * 0.5f || npc.localAI[1] > fastChargeTelegraphTime - (fastChargeTelegraphTime / 6f);
bool doTelegraphRoarAnimation = npc.localAI[1] > fastChargeTelegraphTime - fastChargeTelegraphTime * 0.4f && npc.localAI[1] < fastChargeTelegraphTime - fastChargeTelegraphTime * 0.2f;
bool phase4 = startSecondAI && lifeRatio <= ((CalamityWorld.death || BossRushEvent.BossRushActive || CalamityWorld.malice) ? 0.165f : 0.11f) && (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.malice);