Thanatos reticle fix

This commit is contained in:
Dominic committed 2021-10-30 20:10:39 -05:00
1 parent 8a34487a6c
commit edd40fb57c
1 file changed
+1 -1
+1 -1
View File
@@ -1031,7 +1031,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
// A general factor for the aura.
// Used to cause fade-ins/outs as the attack starts/stops.
float auraGeneralPower = Utils.InverseLerp(0f, deathrayTelegraphDuration * 0.333f, npc.Calamity().newAI[2], true);
auraGeneralPower *= Utils.InverseLerp(deathrayTelegraphDuration + deathrayDuration, deathrayTelegraphDuration + deathrayDuration - 40f, npc.Calamity().newAI[2], true);
auraGeneralPower *= Utils.InverseLerp(deathrayTelegraphDuration + deathrayDuration, deathrayTelegraphDuration + deathrayDuration, npc.Calamity().newAI[2], true);
// Determine the characteristics of the aura. This requires intermediate computations to determine if Thanatos is in its final phase as well as for pulsing.
bool berserk = lifeRatio < 0.4f || (otherExoMechsAlive == 0 && lifeRatio < 0.7f);