1 - Profaned Rock Shield gore textures.
2 - Guardian Defender stays in front of the Commander. 3 - Increased Guardian Healer HP and made it attack more often. 4 - Lowered Guardian Rock Shield HP and made them travel further while coming at the player. 5 - Guardian Commander fires a bit less projectiles while the healer is dead and the defender is alive and the projectiles travel faster.
No files matched your search
|
Before Width: | Height: | Size: 806 B After Width: | Height: | Size: 886 B |
|
Before Width: | Height: | Size: 765 B After Width: | Height: | Size: 717 B |
|
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 933 B |
|
Before Width: | Height: | Size: 727 B After Width: | Height: | Size: 905 B |
|
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 664 B |
|
Before Width: | Height: | Size: 510 B After Width: | Height: | Size: 496 B |
@@ -362,7 +362,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
if (Main.getGoodWorld)
|
||||
velocity *= 1.25f;
|
||||
|
||||
float distanceToStayAwayFromTarget = 720f;
|
||||
float distanceToStayAwayFromTarget = healerAlive ? 800f : defenderAlive ? 720f : 600f;
|
||||
Vector2 destination = player.Center + Vector2.UnitX * distanceToStayAwayFromTarget * -NPC.direction;
|
||||
Vector2 targetVector = destination - NPC.Center;
|
||||
Vector2 desiredVelocity = targetVector.SafeNormalize(new Vector2(NPC.direction, 0f)) * velocity;
|
||||
@@ -389,33 +389,33 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
if (phase1)
|
||||
{
|
||||
// Fire a few extra spears and holy fires after the healer is dead and the defender is defending the commander
|
||||
bool fireExtraSpears = false;
|
||||
bool fireExtraProjectiles = false;
|
||||
if (defenderAlive)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.doughnutBossDefender].ai[0] == 1f)
|
||||
fireExtraSpears = true;
|
||||
fireExtraProjectiles = true;
|
||||
}
|
||||
|
||||
bool shootSpears = NPC.ai[2] % (projectileShootGateValue * 2f) == 0f;
|
||||
float spearVelocity = (bossRush || biomeEnraged) ? 11f : death ? 10f : revenge ? 9.5f : expertMode ? 9f : 8f;
|
||||
Vector2 finalSpearVelocity = Vector2.Normalize(player.Center - shootFrom) * spearVelocity;
|
||||
bool shootProjectiles = NPC.ai[2] % (projectileShootGateValue * 2f) == 0f;
|
||||
float projectileVelocity = (bossRush || biomeEnraged) ? 16f : death ? 14f : revenge ? 13f : expertMode ? 12f : 10f;
|
||||
Vector2 finalProjectileVelocity = Vector2.Normalize(player.Center - shootFrom) * projectileVelocity;
|
||||
int type = shootProjectiles ? ModContent.ProjectileType<ProfanedSpear>() : ModContent.ProjectileType<HolyFire2>();
|
||||
int damage = NPC.GetProjectileDamage(type);
|
||||
|
||||
if (type == ModContent.ProjectileType<HolyFire2>())
|
||||
finalProjectileVelocity *= 0.5f;
|
||||
|
||||
for (int k = 0; k < totalDustPerProjectile; k++)
|
||||
Dust.NewDust(shootFrom, 30, 30, (int)CalamityDusts.ProfanedFire, finalSpearVelocity.X, finalSpearVelocity.Y, 0, default, 1f);
|
||||
Dust.NewDust(shootFrom, 30, 30, (int)CalamityDusts.ProfanedFire, finalProjectileVelocity.X, finalProjectileVelocity.Y, 0, default, 1f);
|
||||
|
||||
int type = shootSpears ? ModContent.ProjectileType<ProfanedSpear>() : ModContent.ProjectileType<HolyFire>();
|
||||
int damage = NPC.GetProjectileDamage(type);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), shootFrom, finalSpearVelocity, type, damage, 0f, Main.myPlayer);
|
||||
|
||||
if (fireExtraSpears)
|
||||
if (fireExtraProjectiles)
|
||||
{
|
||||
int baseProjectileAmt = (bossRush || biomeEnraged) ? 4 : 2;
|
||||
int spread = (bossRush || biomeEnraged) ? 18 : 10;
|
||||
float rotation = MathHelper.ToRadians(spread);
|
||||
for (int i = 0; i < baseProjectileAmt; i++)
|
||||
{
|
||||
Vector2 perturbedSpeed = finalSpearVelocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(baseProjectileAmt - 1)));
|
||||
Vector2 perturbedSpeed = finalProjectileVelocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(baseProjectileAmt - 1)));
|
||||
|
||||
for (int k = 0; k < totalDustPerProjectile; k++)
|
||||
Dust.NewDust(shootFrom, 30, 30, (int)CalamityDusts.ProfanedFire, perturbedSpeed.X, perturbedSpeed.Y, 0, default, 1f);
|
||||
@@ -424,6 +424,8 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), shootFrom, perturbedSpeed, type, damage, 0f, Main.myPlayer);
|
||||
}
|
||||
}
|
||||
else if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), shootFrom, finalProjectileVelocity, type, damage, 0f, Main.myPlayer);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -421,7 +421,8 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
}
|
||||
|
||||
// Defend the commander
|
||||
Vector2 distanceFromDestination = Main.npc[CalamityGlobalNPC.doughnutBoss].Center - NPC.Center;
|
||||
float distanceInFrontOfCommander = 120f;
|
||||
Vector2 distanceFromDestination = Main.npc[CalamityGlobalNPC.doughnutBoss].Center + Vector2.UnitX * distanceInFrontOfCommander * Main.npc[CalamityGlobalNPC.doughnutBoss].direction - NPC.Center;
|
||||
Vector2 desiredVelocity = distanceFromDestination.SafeNormalize(new Vector2(NPC.direction, 0f)) * (Main.npc[CalamityGlobalNPC.doughnutBoss].velocity.Length() + 3f);
|
||||
if (distanceFromDestination.Length() > 80f)
|
||||
{
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
NPC.height = 164;
|
||||
NPC.defense = 30;
|
||||
NPC.DR_NERD(0.2f);
|
||||
NPC.LifeMaxNERB(25000, 30000, 20000);
|
||||
NPC.LifeMaxNERB(50000, 60000, 40000);
|
||||
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
|
||||
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
|
||||
NPC.knockBackResist = 0f;
|
||||
@@ -97,7 +97,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
});
|
||||
}
|
||||
|
||||
public float GetStarShootSlowDownGateValue() => BossRushEvent.BossRushActive ? 240f : CalamityWorld.death ? 280f : CalamityWorld.revenge ? 300f : Main.expertMode ? 320f : 360f;
|
||||
public float GetStarShootSlowDownGateValue() => BossRushEvent.BossRushActive ? 180f : CalamityWorld.death ? 210f : CalamityWorld.revenge ? 225f : Main.expertMode ? 240f : 270f;
|
||||
|
||||
public float GetStarShootGateValue() => GetStarShootSlowDownGateValue() + 60f;
|
||||
|
||||
@@ -235,7 +235,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
{
|
||||
// Increment timer
|
||||
AITimer += 1f;
|
||||
float crystalShootGateValue = bossRush ? 240f : death ? 280f : revenge ? 300f : expertMode ? 320f : 360f;
|
||||
float crystalShootGateValue = bossRush ? 180f : death ? 210f : revenge ? 225f : expertMode ? 240f : 270f;
|
||||
float crystalShootPhaseDuration = crystalShootGateValue + 120f;
|
||||
|
||||
// Generate dust that scales with how close the crystals are to firing
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
private double distance = MinDistance;
|
||||
private const double MinMaxDistance = 300D;
|
||||
|
||||
public const int MaxHP = 12000;
|
||||
public const int MaxHP = 8000;
|
||||
public const int MaxBossRushHP = 20000;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
@@ -151,7 +151,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
Player player = Main.player[Main.npc[CalamityGlobalNPC.doughnutBoss].target];
|
||||
|
||||
// Distance the rock travels before it starts to fall down
|
||||
float maxChargeDistance = 2400f;
|
||||
float maxChargeDistance = 4000f;
|
||||
float chargeSpeed = bossRush ? 20f : death ? 18f : revenge ? 17f : expertMode ? 16f : 14f;
|
||||
float fallDownGateValue = maxChargeDistance / chargeSpeed;
|
||||
|
||||
|
||||