1 - Rev+ Eye of Cthulhu phase 2 blood shot spreads are now Death-exclusive because Rev having them was a little ridiculous.

2 - Increased debuff durations for some enemy projectiles.
This commit is contained in:
mountaindrew10 committed 2025-05-01 08:19:23 -05:00
1 parent 15c0148fac
commit ec3084ce2b
2 files changed
+32 -28

No files matched your search

+14 -14
View File
@@ -1384,11 +1384,11 @@ namespace CalamityMod.CalPlayer
}
else if (proj.type == ProjectileID.Stinger || proj.type == ProjectileID.QueenBeeStinger)
{
// 66.6% chance of Poison for 3 seconds, 1 guaranteed second of Poison otherwise (vanilla also has a 33.3% chance of Poison for 10 seconds)
// 66.6% chance of Poison for 5 seconds, 2 guaranteed seconds of Poison otherwise (vanilla also has a 33.3% chance of Poison for 10 seconds)
if (Main.rand.Next(3) > 0)
Player.AddBuff(BuffID.Poisoned, 180);
Player.AddBuff(BuffID.Poisoned, 300);
else
Player.AddBuff(BuffID.Poisoned, 60);
Player.AddBuff(BuffID.Poisoned, 120);
}
else if (proj.type == ProjectileID.PoisonSeedPlantera)
{
@@ -1400,11 +1400,11 @@ namespace CalamityMod.CalPlayer
}
else if (proj.type == ProjectileID.ThornBall)
{
Player.AddBuff(BuffID.Poisoned, 300);
Player.AddBuff(BuffID.Poisoned, 420);
}
else if (proj.type == ProjectileID.CultistBossFireBall)
{
Player.AddBuff(ModContent.BuffType<Daybroken>(), 120);
Player.AddBuff(ModContent.BuffType<Daybroken>(), 180);
}
else if (proj.type == ProjectileID.CultistBossIceMist)
{
@@ -1415,7 +1415,7 @@ namespace CalamityMod.CalPlayer
}
else if (proj.type == ProjectileID.CultistBossLightningOrbArc)
{
Player.AddBuff(BuffID.Electrified, 120);
Player.AddBuff(BuffID.Electrified, 180);
}
else if (proj.type == ProjectileID.AncientDoomProjectile)
{
@@ -1423,15 +1423,15 @@ namespace CalamityMod.CalPlayer
}
else if (proj.type == ProjectileID.CultistBossFireBallClone)
{
Player.AddBuff(ModContent.BuffType<Shadowflame>(), 120);
Player.AddBuff(ModContent.BuffType<Shadowflame>(), 180);
}
else if (proj.type == ProjectileID.PhantasmalBolt || proj.type == ProjectileID.PhantasmalEye)
{
Player.AddBuff(ModContent.BuffType<Nightwither>(), 60);
Player.AddBuff(ModContent.BuffType<Nightwither>(), 120);
}
else if (proj.type == ProjectileID.PhantasmalSphere)
{
Player.AddBuff(ModContent.BuffType<Nightwither>(), 120);
Player.AddBuff(ModContent.BuffType<Nightwither>(), 210);
}
else if (proj.type == ProjectileID.PhantasmalDeathray)
{
@@ -1439,23 +1439,23 @@ namespace CalamityMod.CalPlayer
}
else if ((proj.type == ProjectileID.FairyQueenLance || proj.type == ProjectileID.HallowBossRainbowStreak || proj.type == ProjectileID.HallowBossSplitShotCore) && NPC.ShouldEmpressBeEnraged())
{
Player.AddBuff(ModContent.BuffType<Daybroken>(), 60);
Player.AddBuff(ModContent.BuffType<Daybroken>(), 120);
}
else if (proj.type == ProjectileID.HallowBossLastingRainbow && NPC.ShouldEmpressBeEnraged())
{
Player.AddBuff(ModContent.BuffType<Daybroken>(), 120);
Player.AddBuff(ModContent.BuffType<Daybroken>(), 210);
}
else if (proj.type == ProjectileID.FairyQueenSunDance && NPC.ShouldEmpressBeEnraged())
{
Player.AddBuff(ModContent.BuffType<Daybroken>(), 180);
Player.AddBuff(ModContent.BuffType<Daybroken>(), 300);
}
else if (proj.type == ProjectileID.BloodNautilusShot)
{
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 120);
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 240);
}
else if (proj.type == ProjectileID.BloodShot)
{
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 60);
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 180);
}
else if (proj.type == ProjectileID.RuneBlast && Main.zenithWorld)
{
@@ -469,23 +469,27 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses
npc.SimpleFlyMovement(idealHoverVelocity, hoverAcceleration + (timeToCharge ? ((npc.ai[2] - phaseLimit) * 0.001f) : 0f));
npc.ai[2] += 1f;
float projectileGateValue = (lifeRatio < 0.5f && death) ? 40f : (death ? 60f : 80f);
if (npc.ai[2] % projectileGateValue == 0f && shootProjectile)
if (death)
{
Vector2 projectileVelocity = (Main.player[npc.target].Center - npc.Center).SafeNormalize(Vector2.UnitY) * servantAndProjectileVelocity * 2f;
Vector2 projectileSpawnCenter = npc.Center + projectileVelocity;
if (Main.netMode != NetmodeID.MultiplayerClient)
float projectileGateValue = lifeRatio < 0.5f ? 40f : 60f;
if (npc.ai[2] % projectileGateValue == 0f && shootProjectile)
{
int type = ProjectileID.BloodNautilusShot;
int damage = npc.GetProjectileDamage(type);
int numProj = death ? 4 : 3;
int spread = death ? 12 : 10;
float rotation = MathHelper.ToRadians(spread);
for (int i = 0; i < numProj; i++)
Vector2 projectileVelocity = (Main.player[npc.target].Center - npc.Center).SafeNormalize(Vector2.UnitY) * servantAndProjectileVelocity * 2f;
Vector2 projectileSpawnCenter = npc.Center + projectileVelocity;
if (Main.netMode != NetmodeID.MultiplayerClient)
{
Vector2 perturbedSpeed = projectileVelocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1)));
int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + perturbedSpeed.SafeNormalize(Vector2.UnitY) * ProjectileOffset, perturbedSpeed, type, damage, 0f, Main.myPlayer);
Main.projectile[proj].timeLeft = 600;
int type = ProjectileID.BloodNautilusShot;
int damage = npc.GetProjectileDamage(type);
int numProj = 3;
int spread = 10;
float rotation = MathHelper.ToRadians(spread);
for (int i = 0; i < numProj; i++)
{
Vector2 perturbedSpeed = projectileVelocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1)));
int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + perturbedSpeed.SafeNormalize(Vector2.UnitY) * ProjectileOffset, perturbedSpeed, type, damage, 0f, Main.myPlayer);
Main.projectile[proj].timeLeft = 600;
}
}
}
}