1 - Provi and Guardian Molten Blasts use Inferno Fork noises, emit more dust on death and the Blobs inherit the projectile's velocity when they spawn.
2 - Thanatos is slightly more aggressive in non-berserk phases (he was really slow and passive in non-berserk phases).
This commit is contained in:
1 parent
94089fed1b
commit
bce428b76e
6 files changed
+20
-20
No files matched your search
@@ -254,15 +254,15 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
if (NPC.Calamity().newAI[0] == 0f)
|
||||
NPC.ai[3] += 1f;
|
||||
|
||||
double numSegmentsAbleToFire = bossRush ? 35D : death ? 30D : revenge ? 28D : expertMode ? 25D : 20D;
|
||||
double numSegmentsAbleToFire = bossRush ? 42D : death ? 36D : revenge ? 34D : expertMode ? 30D : 24D;
|
||||
if (shouldGetBuffedByBerserkPhase)
|
||||
numSegmentsAbleToFire *= 1.5;
|
||||
numSegmentsAbleToFire *= 1.25;
|
||||
|
||||
float segmentDivisor = (float)Math.Round(numSegments / numSegmentsAbleToFire);
|
||||
|
||||
if (calamityGlobalNPC_Head.newAI[0] == (float)ThanatosHead.Phase.Charge)
|
||||
{
|
||||
float divisor = lastMechAlive ? 45f : shouldGetBuffedByBerserkPhase ? 60f : 90f;
|
||||
float divisor = lastMechAlive ? 45f : shouldGetBuffedByBerserkPhase ? 60f : 75f;
|
||||
if ((NPC.ai[3] % divisor == 0f && NPC.ai[0] % segmentDivisor == 0f) || NPC.Calamity().newAI[0] > 0f)
|
||||
{
|
||||
// Body is vulnerable while firing lasers
|
||||
|
||||
@@ -254,15 +254,15 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
if (NPC.Calamity().newAI[0] == 0f)
|
||||
NPC.ai[3] += 1f;
|
||||
|
||||
double numSegmentsAbleToFire = bossRush ? 35D : death ? 30D : revenge ? 28D : expertMode ? 25D : 20D;
|
||||
double numSegmentsAbleToFire = bossRush ? 42D : death ? 36D : revenge ? 34D : expertMode ? 30D : 24D;
|
||||
if (shouldGetBuffedByBerserkPhase)
|
||||
numSegmentsAbleToFire *= 1.5;
|
||||
numSegmentsAbleToFire *= 1.25;
|
||||
|
||||
float segmentDivisor = (float)Math.Round(numSegments / numSegmentsAbleToFire);
|
||||
|
||||
if (calamityGlobalNPC_Head.newAI[0] == (float)ThanatosHead.Phase.Charge)
|
||||
{
|
||||
float divisor = lastMechAlive ? 45f : shouldGetBuffedByBerserkPhase ? 60f : 90f;
|
||||
float divisor = lastMechAlive ? 45f : shouldGetBuffedByBerserkPhase ? 60f : 75f;
|
||||
if ((NPC.ai[3] % divisor == 0f && NPC.ai[0] % segmentDivisor == 0f) || NPC.Calamity().newAI[0] > 0f)
|
||||
{
|
||||
// Body is vulnerable while firing lasers
|
||||
|
||||
@@ -412,8 +412,8 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
|
||||
// Phase gate values
|
||||
float velocityAdjustTime = 20f;
|
||||
float speedUpTime = lastMechAlive ? 180f : shouldGetBuffedByBerserkPhase ? 240f : 360f;
|
||||
float slowDownTime = lastMechAlive ? 30f : shouldGetBuffedByBerserkPhase ? 40f : 60f;
|
||||
float speedUpTime = lastMechAlive ? 180f : shouldGetBuffedByBerserkPhase ? 220f : 300f;
|
||||
float slowDownTime = lastMechAlive ? 30f : shouldGetBuffedByBerserkPhase ? 40f : 50f;
|
||||
float chargePhaseGateValue = speedUpTime + slowDownTime;
|
||||
float laserBarrageDuration = lastMechAlive ? 270f : shouldGetBuffedByBerserkPhase ? 300f : 360f;
|
||||
|
||||
@@ -493,7 +493,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
float laserBarrageLocationDistance = turnDistance * 3f;
|
||||
|
||||
// Velocity and turn speed values
|
||||
float baseVelocityMult = (shouldGetBuffedByBerserkPhase ? 0.25f : 0f) + (bossRush ? 1.15f : death ? 1.1f : revenge ? 1.075f : expertMode ? 1.05f : 1f);
|
||||
float baseVelocityMult = (shouldGetBuffedByBerserkPhase ? 0.15f : 0f) + (bossRush ? 1.25f : death ? 1.2f : revenge ? 1.175f : expertMode ? 1.15f : 1.1f);
|
||||
float baseVelocity = 10f * baseVelocityMult;
|
||||
|
||||
// Increase top velocity if target is dead or if Thanatos is uncoiling
|
||||
@@ -505,7 +505,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
if (Main.getGoodWorld)
|
||||
baseVelocity *= 1.15f;
|
||||
|
||||
float turnDegrees = baseVelocity * 0.1f * (shouldGetBuffedByBerserkPhase ? 1.25f : 1f);
|
||||
float turnDegrees = baseVelocity * 0.1f * (shouldGetBuffedByBerserkPhase ? 1.25f : 1.1f);
|
||||
|
||||
float turnSpeed = MathHelper.ToRadians(turnDegrees);
|
||||
float chargeVelocityMult = MathHelper.Lerp(1f, 1.5f, chargeVelocityScalar);
|
||||
@@ -523,7 +523,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
float deathrayVelocityScalarIncrement = 1f / deathrayDuration;
|
||||
|
||||
// Scalar to use during laser barrage, passive and immune phases
|
||||
float laserBarrageVelocityScalarIncrement = lastMechAlive ? 0.025f : shouldGetBuffedByBerserkPhase ? 0.02f : 0.015f;
|
||||
float laserBarrageVelocityScalarIncrement = lastMechAlive ? 0.025f : shouldGetBuffedByBerserkPhase ? 0.0225f : 0.02f;
|
||||
float laserBarrageVelocityScalarDecrement = 1f / velocityAdjustTime;
|
||||
|
||||
// Passive and Immune phases
|
||||
|
||||
@@ -254,15 +254,15 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
|
||||
if (NPC.Calamity().newAI[0] == 0f)
|
||||
NPC.ai[3] += 1f;
|
||||
|
||||
double numSegmentsAbleToFire = bossRush ? 35D : death ? 30D : revenge ? 28D : expertMode ? 25D : 20D;
|
||||
double numSegmentsAbleToFire = bossRush ? 42D : death ? 36D : revenge ? 34D : expertMode ? 30D : 24D;
|
||||
if (shouldGetBuffedByBerserkPhase)
|
||||
numSegmentsAbleToFire *= 1.5;
|
||||
numSegmentsAbleToFire *= 1.25;
|
||||
|
||||
float segmentDivisor = (float)Math.Round(numSegments / numSegmentsAbleToFire);
|
||||
|
||||
if (calamityGlobalNPC_Head.newAI[0] == (float)ThanatosHead.Phase.Charge)
|
||||
{
|
||||
float divisor = lastMechAlive ? 45f : shouldGetBuffedByBerserkPhase ? 60f : 90f;
|
||||
float divisor = lastMechAlive ? 45f : shouldGetBuffedByBerserkPhase ? 60f : 75f;
|
||||
if ((NPC.ai[3] % divisor == 0f && NPC.ai[0] % segmentDivisor == 0f) || NPC.Calamity().newAI[0] > 0f)
|
||||
{
|
||||
// Body is vulnerable while firing lasers
|
||||
|
||||
@@ -541,7 +541,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
NPC.velocity = velocity;
|
||||
|
||||
// Dust ring and sound right as charge begins
|
||||
SoundEngine.PlaySound(SoundID.Item20, shootFrom);
|
||||
SoundEngine.PlaySound(SoundID.Item74, shootFrom);
|
||||
int totalDust = 36;
|
||||
for (int k = 0; k < totalDust; k++)
|
||||
{
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
}
|
||||
}
|
||||
Projectile.ai[1] = 1f;
|
||||
SoundEngine.PlaySound(SoundID.Item20, Projectile.position);
|
||||
SoundEngine.PlaySound(SoundID.Item73, Projectile.position);
|
||||
}
|
||||
|
||||
Projectile.localAI[0] += 1f;
|
||||
@@ -125,19 +125,19 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
for (int b = 0; b < blobAmt; b++)
|
||||
{
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f) + Projectile.velocity;
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType<MoltenBlob>(), (int)Math.Round(Projectile.damage * 0.75), 0f, Projectile.owner, 0f, 0f);
|
||||
}
|
||||
}
|
||||
SoundEngine.PlaySound(SoundID.Item20, Projectile.Center);
|
||||
SoundEngine.PlaySound(SoundID.Item74, Projectile.Center);
|
||||
|
||||
int dustType = ProvUtils.GetDustID(Projectile.maxPenetrate);
|
||||
for (int num193 = 0; num193 < 2; num193++)
|
||||
for (int num193 = 0; num193 < 4; num193++)
|
||||
{
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, dustType, 0f, 0f, 50, default, 1.5f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
}
|
||||
for (int num194 = 0; num194 < 20; num194++)
|
||||
for (int num194 = 0; num194 < 40; num194++)
|
||||
{
|
||||
int num195 = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, dustType, 0f, 0f, 0, default, 2.5f);
|
||||
Main.dust[num195].noGravity = true;
|
||||
|
||||
Reference in new issue
Block a user