1 - Ares adjustments.
This commit is contained in:
1 parent
886ec36351
commit
e3e7eed81d
3 files changed
+11
-9
No files matched your search
@@ -258,7 +258,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
else if (berserk)
|
||||
deathrayPhaseGateValue *= 0.85f;
|
||||
|
||||
float deathrayPhaseVelocity = passivePhase ? 12f : 15f;
|
||||
float deathrayPhaseVelocity = passivePhase ? 9f : 12f;
|
||||
if (lastMechAlive)
|
||||
deathrayPhaseVelocity *= 1.2f;
|
||||
else if (berserk)
|
||||
|
||||
@@ -70,20 +70,22 @@ namespace CalamityMod.Projectiles.Boss
|
||||
projectile.Kill();
|
||||
|
||||
float num801 = 1f;
|
||||
float duration = 600f;
|
||||
projectile.localAI[0] += 1f;
|
||||
if (projectile.localAI[0] >= 600f)
|
||||
if (projectile.localAI[0] >= duration)
|
||||
{
|
||||
projectile.Kill();
|
||||
return;
|
||||
}
|
||||
|
||||
projectile.scale = (float)Math.Sin(projectile.localAI[0] * (float)Math.PI / 600f) * 10f * num801;
|
||||
projectile.scale = (float)Math.Sin(projectile.localAI[0] * (float)Math.PI / duration) * 10f * num801;
|
||||
if (projectile.scale > num801)
|
||||
projectile.scale = num801;
|
||||
|
||||
float num804 = projectile.velocity.ToRotation();
|
||||
float divisor = malice ? 300f : death ? 320f : revenge ? 330f : expertMode ? 340f : 360f;
|
||||
num804 += MathHelper.TwoPi / divisor;
|
||||
float rotationAmt = MathHelper.Lerp(0f, MathHelper.TwoPi / divisor, projectile.localAI[0] / duration);
|
||||
num804 += rotationAmt;
|
||||
projectile.rotation = num804 - MathHelper.PiOver2;
|
||||
projectile.velocity = num804.ToRotationVector2();
|
||||
|
||||
|
||||
@@ -262,11 +262,11 @@ namespace CalamityMod.Projectiles.Boss
|
||||
|
||||
Texture2D laserTelegraph = ModContent.GetTexture("CalamityMod/ExtraTextures/LaserWallTelegraphBeam");
|
||||
|
||||
float yScale = 4f;
|
||||
float yScale = 2f;
|
||||
if (TelegraphDelay < TelegraphFadeTime)
|
||||
yScale = MathHelper.Lerp(0f, 4f, TelegraphDelay / 15f);
|
||||
yScale = MathHelper.Lerp(0f, 2f, TelegraphDelay / 15f);
|
||||
if (TelegraphDelay > TelegraphTotalTime - TelegraphFadeTime)
|
||||
yScale = MathHelper.Lerp(4f, 0f, (TelegraphDelay - (TelegraphTotalTime - TelegraphFadeTime)) / 15f);
|
||||
yScale = MathHelper.Lerp(2f, 0f, (TelegraphDelay - (TelegraphTotalTime - TelegraphFadeTime)) / 15f);
|
||||
|
||||
Vector2 scaleInner = new Vector2(TelegraphWidth / laserTelegraph.Width, yScale);
|
||||
Vector2 origin = laserTelegraph.Size() * new Vector2(0f, 0.5f);
|
||||
@@ -275,8 +275,8 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Color colorOuter = Color.Lerp(Color.Red, Color.Crimson, TelegraphDelay / TelegraphTotalTime * 2f % 1f); // Iterate through crimson and red once and then flash.
|
||||
Color colorInner = Color.Lerp(colorOuter, Color.White, 0.75f);
|
||||
|
||||
colorOuter *= 0.7f;
|
||||
colorInner *= 0.7f;
|
||||
colorOuter *= 0.6f;
|
||||
colorInner *= 0.6f;
|
||||
|
||||
spriteBatch.Draw(laserTelegraph, projectile.Center - Main.screenPosition, null, colorInner, Velocity.ToRotation(), origin, scaleInner, SpriteEffects.None, 0f);
|
||||
spriteBatch.Draw(laserTelegraph, projectile.Center - Main.screenPosition, null, colorOuter, Velocity.ToRotation(), origin, scaleOuter, SpriteEffects.None, 0f);
|
||||
|
||||
Reference in new issue
Block a user