Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
This commit is contained in:
commit
84c98144f9
7 files changed
+60
-10
No files matched your search
@@ -416,6 +416,12 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
float timeToLineUpAttack = 30f;
|
||||
float timeToLineUpCharge = malice ? 30f : death ? 40f : revenge ? 45f : expertMode ? 50f : 60f;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
timeToLineUpAttack *= 0.5f;
|
||||
timeToLineUpCharge *= 0.5f;
|
||||
}
|
||||
|
||||
// Distance where Apollo stops moving
|
||||
float movementDistanceGateValue = 100f;
|
||||
float chargeLocationDistanceGateValue = 40f;
|
||||
@@ -431,6 +437,12 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
// Charge velocity
|
||||
float chargeVelocity = malice ? 115f : death ? 105f : revenge ? 101.25f : expertMode ? 97.5f : 90f;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
baseVelocity *= 1.5f;
|
||||
chargeVelocity *= 1.15f;
|
||||
}
|
||||
|
||||
// Charge phase variables
|
||||
double chargeDistance = Math.Sqrt(500D * 500D + 800D * 800D);
|
||||
float chargeTime = (float)chargeDistance / chargeVelocity;
|
||||
@@ -446,6 +458,9 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
float rocketPhaseDuration = lastMechAlive ? 60f : 90f;
|
||||
int numRockets = nerfedAttacks ? 2 : 3;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
numRockets += 3;
|
||||
|
||||
// Default vector to fly to
|
||||
bool flyRight = NPC.ai[0] % 2f == 0f || NPC.ai[0] < 10f || !revenge;
|
||||
float destinationX = flyRight ? 750f : -750f;
|
||||
@@ -462,8 +477,17 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
{
|
||||
pickNewLocation = false;
|
||||
|
||||
NPC.localAI[0] = Main.rand.Next(-50, 51);
|
||||
NPC.localAI[1] = Main.rand.Next(-250, 251);
|
||||
int randomLocationVarianceX = 50;
|
||||
int randomLocationVarianceY = 250;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
randomLocationVarianceX *= 2;
|
||||
randomLocationVarianceY *= 2;
|
||||
}
|
||||
|
||||
NPC.localAI[0] = Main.rand.Next(-randomLocationVarianceX, randomLocationVarianceX + 1);
|
||||
NPC.localAI[1] = Main.rand.Next(-randomLocationVarianceY, randomLocationVarianceY + 1);
|
||||
if (AIState == (float)Phase.RocketBarrage || SecondaryAIState == (float)SecondaryPhase.Passive)
|
||||
{
|
||||
NPC.localAI[0] *= 0.5f;
|
||||
|
||||
@@ -742,6 +742,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
NPC.velocity *= decelerationVelocityMult;
|
||||
|
||||
int totalProjectiles = malice ? 12 : death ? 10 : revenge ? 9 : expertMode ? 8 : 6;
|
||||
if (Main.getGoodWorld)
|
||||
totalProjectiles += 4;
|
||||
|
||||
float radians = MathHelper.TwoPi / totalProjectiles;
|
||||
bool normalLaserRotation = NPC.localAI[0] % 2f == 0f;
|
||||
float velocity = 6f;
|
||||
|
||||
@@ -442,6 +442,9 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
float attackPhaseGateValue = shouldGetBuffedByBerserkPhase ? berserkAttackTime : normalAttackTime;
|
||||
float timeToLineUpAttack = phase2 ? 30f : 45f;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
timeToLineUpAttack *= 0.5f;
|
||||
|
||||
// Spin variables
|
||||
float spinRadius = 500f;
|
||||
float spinLocationDistance = 50f;
|
||||
@@ -477,6 +480,10 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
|
||||
// Charge variables
|
||||
float chargeVelocity = nerfedAttacks ? 75f : malice ? 100f : death ? 90f : revenge ? 86.25f : expertMode ? 82.5f : 75f;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
chargeVelocity *= 1.15f;
|
||||
|
||||
float chargeDistance = 2000f;
|
||||
float chargeDuration = chargeDistance / chargeVelocity;
|
||||
bool lineUpAttack = calamityGlobalNPC.newAI[3] >= attackPhaseGateValue + 2f;
|
||||
@@ -487,6 +494,9 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
float baseVelocity = ((AIState == (int)Phase.Deathray || lineUpAttack || AIState == (int)Phase.LaserShotgun) ? 40f : 20f) * baseVelocityMult;
|
||||
float decelerationVelocityMult = 0.85f;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
baseVelocity *= 1.5f;
|
||||
|
||||
// Laser shotgun variables
|
||||
float laserShotgunDuration = lastMechAlive ? 120f : 90f;
|
||||
|
||||
@@ -498,8 +508,17 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
{
|
||||
pickNewLocation = false;
|
||||
|
||||
NPC.localAI[0] = Main.rand.Next(-50, 51);
|
||||
NPC.localAI[1] = Main.rand.Next(-250, 251);
|
||||
int randomLocationVarianceX = 50;
|
||||
int randomLocationVarianceY = 250;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
{
|
||||
randomLocationVarianceX *= 2;
|
||||
randomLocationVarianceY *= 2;
|
||||
}
|
||||
|
||||
NPC.localAI[0] = Main.rand.Next(-randomLocationVarianceX, randomLocationVarianceX + 1);
|
||||
NPC.localAI[1] = Main.rand.Next(-randomLocationVarianceY, randomLocationVarianceY + 1);
|
||||
if (SecondaryAIState == (float)SecondaryPhase.Passive)
|
||||
{
|
||||
NPC.localAI[0] *= 0.5f;
|
||||
|
||||
@@ -22,8 +22,6 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
{
|
||||
public class ThanatosHead : ModNPC
|
||||
{
|
||||
|
||||
|
||||
public static int normalIconIndex;
|
||||
public static int vulnerableIconIndex;
|
||||
|
||||
@@ -222,7 +220,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
}
|
||||
|
||||
public float GetSlowdownAreaEdgeRadius(bool lastMechAlive) =>
|
||||
((CalamityWorld.malice || BossRushEvent.BossRushActive) ? 400f : CalamityWorld.death ? 600f : CalamityWorld.revenge ? 700f : Main.expertMode ? 800f : 1000f) * (lastMechAlive ? 0.6f : 1f);
|
||||
((CalamityWorld.malice || BossRushEvent.BossRushActive) ? 400f : CalamityWorld.death ? 600f : CalamityWorld.revenge ? 700f : Main.expertMode ? 800f : 1000f) * (lastMechAlive ? 0.6f : 1f) * (Main.getGoodWorld ? 0.5f : 1f);
|
||||
|
||||
public int CheckForOtherMechs(ref Player target, out bool exoPrimeAlive, out bool exoTwinsAlive)
|
||||
{
|
||||
@@ -495,6 +493,9 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
else
|
||||
baseVelocity *= increaseSpeedMult;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
baseVelocity *= 1.15f;
|
||||
|
||||
float turnDegrees = baseVelocity * 0.11f * (shouldGetBuffedByBerserkPhase ? 1.25f : 1f);
|
||||
|
||||
float turnSpeed = MathHelper.ToRadians(turnDegrees);
|
||||
|
||||
@@ -37,6 +37,9 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Projectile.penetrate = -1;
|
||||
CooldownSlot = 1;
|
||||
Projectile.timeLeft = timeLeft;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
Projectile.extraUpdates = 1;
|
||||
}
|
||||
|
||||
public override void SendExtraAI(BinaryWriter writer)
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// If a velocity is in reserve, set the true velocity to it and make it as "taken" by setting it to <0,0>
|
||||
if (Velocity != Vector2.Zero)
|
||||
{
|
||||
Projectile.extraUpdates = 3;
|
||||
Projectile.extraUpdates = Main.getGoodWorld ? 4 : 3;
|
||||
Projectile.velocity = Velocity * ((CalamityWorld.malice || BossRushEvent.BossRushActive) ? 1.25f : 1f);
|
||||
Velocity = Vector2.Zero;
|
||||
Projectile.netUpdate = true;
|
||||
|
||||
@@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// If a velocity is in reserve, set the true velocity to it and make it as "taken" by setting it to <0,0>
|
||||
if (Velocity != Vector2.Zero)
|
||||
{
|
||||
Projectile.extraUpdates = 3;
|
||||
Projectile.extraUpdates = Main.getGoodWorld ? 4 : 3;
|
||||
Projectile.velocity = Velocity * ((CalamityWorld.malice || BossRushEvent.BossRushActive) ? 1.25f : 1f);
|
||||
Velocity = Vector2.Zero;
|
||||
Projectile.netUpdate = true;
|
||||
@@ -161,7 +161,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
// If a velocity is in reserve, set the true velocity to it and make it as "taken" by setting it to <0,0>
|
||||
if (Velocity != Vector2.Zero)
|
||||
{
|
||||
Projectile.extraUpdates = 3;
|
||||
Projectile.extraUpdates = Main.getGoodWorld ? 4 : 3;
|
||||
Projectile.velocity = Velocity * ((CalamityWorld.malice || BossRushEvent.BossRushActive) ? 1.25f : 1f);
|
||||
Velocity = Vector2.Zero;
|
||||
Projectile.netUpdate = true;
|
||||
|
||||
Reference in new issue
Block a user