1 - Providence makes headcrab and darkness effects gradually fade in when you get close to Holy Inferno barrier.

2 - Aorta now fires blood clots.
3 - Biome Blade inflicts debuffs for a shorter duration, replaced Plague with Venom and cut Glacial State debuff time in half.
4 - Buffed Biome Blade damage by 5.
5 - Dark Energies spread out less and inflilct Distorted for a third of its original duration.
6 - SCal bros move properly now.
7 - Aureus makes laser fire noise when stomping now.
8 - Old Duke spends less time lining up his charge in phase 3.
9 - Increased Cnidarian range, reduced Microwave aura damage, increased Riptide range, reduced Sulphurous Grabber bubble amount, increased Verdant speed and leaf damage.
This commit is contained in:
Andrew Marheine committed 2020-11-04 18:08:12 -06:00
1 parent 14c1c8399e
commit d4ff3084e6
19 files changed
+128 -63

No files matched your search

+28
View File
@@ -116,6 +116,34 @@ namespace CalamityMod.CalPlayer
#region Revengeance Effects
private static void RevengeanceModeMiscEffects(Player player, CalamityPlayer modPlayer, Mod mod)
{
if (CalamityGlobalNPC.holyBoss != -1)
{
if (Main.npc[CalamityGlobalNPC.holyBoss].active)
{
if (Main.myPlayer == Main.npc[CalamityGlobalNPC.holyBoss].target)
{
float x = Vector2.Distance(Main.player[Main.npc[CalamityGlobalNPC.holyBoss].target].Center, Main.npc[CalamityGlobalNPC.holyBoss].Center);
float aiState = Main.npc[CalamityGlobalNPC.holyBoss].ai[0];
float aiTimer = Main.npc[CalamityGlobalNPC.holyBoss].ai[3];
float baseDistance = 2800f;
float shorterFlameCocoonDistance = 1000f;
float shorterSpearCocoonDistance = 1400f;
float shorterDistance = aiState == 2f ? shorterFlameCocoonDistance : shorterSpearCocoonDistance;
float maxDistance = (aiState == 2f || aiState == 5f) ? baseDistance - MathHelper.Lerp(0f, shorterDistance, MathHelper.Clamp(aiTimer / 120f, 0f, 1f)) : baseDistance;
float drawDarknessDistance = maxDistance - 400f;
float intensityScalar = MathHelper.Lerp(0f, 0.9f, MathHelper.Clamp((x - drawDarknessDistance) / 400f, 0f, 1f));
if (!Main.player[Main.npc[CalamityGlobalNPC.holyBoss].target].Calamity().ZoneAbyss && !Main.player[Main.npc[CalamityGlobalNPC.holyBoss].target].headcovered)
ScreenObstruction.screenObstruction = MathHelper.Lerp(ScreenObstruction.screenObstruction, 1f, intensityScalar);
// Return to prevent running other darkness code
return;
}
}
}
if (CalamityWorld.revenge)
{
// This effect is way too annoying during the fight so I disabled it - Fab
+27
View File
@@ -48,6 +48,7 @@ using System.Reflection;
using Terraria;
using Terraria.DataStructures;
using Terraria.GameContent.Dyes;
using Terraria.GameContent.Events;
using Terraria.Graphics.Effects;
using Terraria.Graphics.Shaders;
using Terraria.ID;
@@ -1326,6 +1327,32 @@ namespace CalamityMod
{
// Apply the calculated darkness value for the local player.
CalamityPlayer modPlayer = Main.LocalPlayer.Calamity();
if (CalamityGlobalNPC.holyBoss != -1)
{
if (Main.npc[CalamityGlobalNPC.holyBoss].active)
{
if (Main.myPlayer == Main.npc[CalamityGlobalNPC.holyBoss].target)
{
float x = Vector2.Distance(Main.player[Main.npc[CalamityGlobalNPC.holyBoss].target].Center, Main.npc[CalamityGlobalNPC.holyBoss].Center);
float aiState = Main.npc[CalamityGlobalNPC.holyBoss].ai[0];
float aiTimer = Main.npc[CalamityGlobalNPC.holyBoss].ai[3];
float baseDistance = 2800f;
float shorterFlameCocoonDistance = 1000f;
float shorterSpearCocoonDistance = 1400f;
float shorterDistance = aiState == 2f ? shorterFlameCocoonDistance : shorterSpearCocoonDistance;
float maxDistance = (aiState == 2f || aiState == 5f) ? baseDistance - MathHelper.Lerp(0f, shorterDistance, MathHelper.Clamp(aiTimer / 120f, 0f, 1f)) : baseDistance;
float drawDarknessDistance = maxDistance - 400f;
float intensityScalar = MathHelper.Lerp(0f, 0.9f, MathHelper.Clamp((x - drawDarknessDistance) / 400f, 0f, 1f));
scale -= intensityScalar;
// Return to prevent running other darkness code
return;
}
}
}
float darkRatio = MathHelper.Clamp(modPlayer.caveDarkness, 0f, 1f);
if (modPlayer.ZoneAbyss)
+2 -1
View File
@@ -11,7 +11,8 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Aorta");
Tooltip.SetDefault("An exceptionally agile yoyo");
Tooltip.SetDefault("Fires homing blood when enemies are near\n" +
"An exceptionally agile yoyo");
ItemID.Sets.Yoyo[item.type] = true;
ItemID.Sets.GamepadExtraRange[item.type] = 15;
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
+3 -3
View File
@@ -18,10 +18,10 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetDefaults()
{
item.width = 42;
item.damage = 30;
item.damage = 35;
item.melee = true;
item.useAnimation = 24;
item.useTime = 24;
item.useAnimation = 30;
item.useTime = 30;
item.useTurn = true;
item.useStyle = ItemUseStyleID.SwingThrow;
item.knockBack = 5f;
+8 -10
View File
@@ -2673,6 +2673,7 @@ namespace CalamityMod.NPCs
}
// Fire lasers on stomp
Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 33);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
float num179 = BossRushEvent.BossRushActive ? 24f : death ? 20f : 18.5f;
@@ -4402,12 +4403,6 @@ namespace CalamityMod.NPCs
// Prepare to charge
else if (npc.ai[0] == 3.1f)
{
if (npc.ai[2] < 10f)
{
npc.ai[2] += 1f;
return;
}
npc.noTileCollide = true;
npc.rotation = (npc.rotation * rotationMult * 0.5f + npc.velocity.X * rotationAmt * 0.85f) / 5f;
@@ -4439,7 +4434,6 @@ namespace CalamityMod.NPCs
npc.ai[0] = 3.2f;
npc.ai[1] = npc.direction;
npc.ai[2] = 0f;
}
}
@@ -4634,6 +4628,7 @@ namespace CalamityMod.NPCs
float idlePhaseVelocity = expertMode ? 14f : 13f;
if (phase3AI)
{
idlePhaseTimer = 25;
idlePhaseAcceleration = expertMode ? 0.85f : 0.8f;
idlePhaseVelocity = expertMode ? 16f : 15f;
}
@@ -4658,7 +4653,7 @@ namespace CalamityMod.NPCs
if (death)
{
idlePhaseTimer = 51;
idlePhaseTimer -= 4;
idlePhaseAcceleration *= 1.05f;
idlePhaseVelocity *= 1.05f;
chargeTime -= 2;
@@ -4666,7 +4661,7 @@ namespace CalamityMod.NPCs
}
else if (revenge)
{
idlePhaseTimer = 53;
idlePhaseTimer -= 2;
idlePhaseAcceleration *= 1.025f;
idlePhaseVelocity *= 1.025f;
chargeTime -= 1;
@@ -4675,13 +4670,16 @@ namespace CalamityMod.NPCs
if (BossRushEvent.BossRushActive)
{
idlePhaseTimer = 35;
idlePhaseTimer -= 20;
idlePhaseAcceleration *= 1.1f;
idlePhaseVelocity *= 1.15f;
chargeTime -= 3;
chargeVelocity *= 1.25f;
}
if (idlePhaseTimer < 20)
idlePhaseTimer = 20;
if (calamityGlobalNPC.newAI[1] == 1f)
idlePhaseVelocity *= 0.25f;
+3 -3
View File
@@ -175,8 +175,8 @@ namespace CalamityMod.NPCs.CeaselessVoid
float tileEnrageMult = Main.npc[CalamityGlobalNPC.voidBoss].ai[1];
float num1247 = 0.5f;
float maxDistance = 48f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f));
float num1247 = 0.1f;
float maxDistance = 24f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f));
for (int num1248 = 0; num1248 < Main.maxNPCs; num1248++)
{
if (Main.npc[num1248].active)
@@ -311,7 +311,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(BuffID.VortexDebuff, 60, true);
player.AddBuff(BuffID.VortexDebuff, 20, true);
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
+3 -3
View File
@@ -168,8 +168,8 @@ namespace CalamityMod.NPCs.CeaselessVoid
float tileEnrageMult = Main.npc[CalamityGlobalNPC.voidBoss].ai[1];
float num1247 = 0.5f;
float maxDistance = 48f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f));
float num1247 = 0.1f;
float maxDistance = 24f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f));
for (int num1248 = 0; num1248 < Main.maxNPCs; num1248++)
{
if (Main.npc[num1248].active)
@@ -271,7 +271,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(BuffID.VortexDebuff, 60, true);
player.AddBuff(BuffID.VortexDebuff, 20, true);
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
+3 -3
View File
@@ -169,8 +169,8 @@ namespace CalamityMod.NPCs.CeaselessVoid
float tileEnrageMult = Main.npc[CalamityGlobalNPC.voidBoss].ai[1];
float num1247 = 0.5f;
float maxDistance = 48f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f));
float num1247 = 0.1f;
float maxDistance = 24f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f));
for (int num1248 = 0; num1248 < Main.maxNPCs; num1248++)
{
if (Main.npc[num1248].active)
@@ -299,7 +299,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
public override void OnHitPlayer(Player player, int damage, bool crit)
{
player.AddBuff(BuffID.VortexDebuff, 60, true);
player.AddBuff(BuffID.VortexDebuff, 20, true);
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot)
+3 -11
View File
@@ -29,25 +29,17 @@ namespace CalamityMod.NPCs.Providence
if (UpdatePIndex())
{
float x = 0f;
float aiState = 0f;
float aiTimer = 0f;
if (ProvIndex != -1)
{
x = Vector2.Distance(Main.player[Main.myPlayer].Center, Main.npc[ProvIndex].Center);
aiState = Main.npc[ProvIndex].ai[0];
aiTimer = Main.npc[ProvIndex].ai[3];
}
float spawnAnimationTimer = 180f;
float maxDistance = (aiState == 2f || aiState == 5f) ? 2800f - MathHelper.Lerp(0f, 1400f, MathHelper.Clamp(aiTimer / 120f, 0f, 1f)) : 2800f;
float drawShaderDistance = maxDistance - 160f;
float intensityScalar = 0.25f + MathHelper.Lerp(0f, 0.75f, MathHelper.Clamp((x - drawShaderDistance) / 320f, 0f, 0.75f));
float intensityScalar = 0.25f;
if (Main.npc[ProvIndex].Calamity().newAI[3] < spawnAnimationTimer)
intensityScalar = MathHelper.Lerp(0f, intensityScalar, Main.npc[ProvIndex].Calamity().newAI[3] / spawnAnimationTimer);
return (1f - Utils.SmoothStep(6000f, 9000f, x)) * intensityScalar;
return (1f - Utils.SmoothStep(3000f, 6000f, x)) * intensityScalar;
}
return 0f; //0.5
return 0f;
}
public override Color OnTileColor(Color inColor)
+7 -3
View File
@@ -271,11 +271,15 @@ namespace CalamityMod.NPCs.Providence
float distanceX = Math.Abs(vector.X - player.Center.X);
// Inflict Holy Inferno if target is too far away
float maxDistance = (AIState == (int)Phase.FlameCocoon || AIState == (int)Phase.SpearCocoon) ? 1400f : 2800f;
float baseDistance = 2800f;
float shorterFlameCocoonDistance = 1800f;
float shorterSpearCocoonDistance = 1400f;
float shorterDistance = AIState == (int)Phase.FlameCocoon ? shorterFlameCocoonDistance : shorterSpearCocoonDistance;
float maxDistance = (AIState == (int)Phase.FlameCocoon || AIState == (int)Phase.SpearCocoon) ? shorterDistance : baseDistance;
if (Vector2.Distance(player.Center, vector) > maxDistance)
{
if (!player.dead && player.active)
player.AddBuff(ModContent.BuffType<HolyInferno>(), 2);
if (!player.dead && player.active)
player.AddBuff(ModContent.BuffType<HolyInferno>(), 2);
}
// Count the remaining Guardians, healer especially because it allows the boss to heal
+9 -5
View File
@@ -96,20 +96,20 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (npc.ai[3] < distanceX)
{
npc.ai[3] += scale;
distanceY -= scale;
distanceY += scale;
}
else if (npc.ai[3] < distanceX * 2)
{
npc.ai[3] += scale;
distanceY += scale;
distanceY -= scale;
}
if (npc.ai[3] >= distanceX * 2)
else
npc.ai[3] = 0f;
Vector2 vector83 = new Vector2(npc.Center.X, npc.Center.Y);
float num678 = Main.player[npc.target].Center.X - vector83.X + distanceX;
float num679 = Main.player[npc.target].Center.Y - vector83.Y + distanceY;
npc.rotation = 1.57f;
npc.rotation = MathHelper.PiOver2;
float num680 = (float)Math.Sqrt((double)(num678 * num678 + num679 * num679));
num680 = num676 / num680;
num678 *= num680;
@@ -153,7 +153,11 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (npc.localAI[0] >= 120f)
{
npc.ai[1] += 1f;
if (npc.ai[1] >= 60f)
if (deadBrother)
{
npc.ai[1] += 1f;
}
if (npc.ai[1] >= 60f)
{
npc.ai[1] = 0f;
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SCalSounds/BrimstoneSkullSound"), npc.Center);
+7 -3
View File
@@ -103,13 +103,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas
npc.ai[3] += scale;
distanceY += scale;
}
if (npc.ai[3] >= distanceX * 2)
else
npc.ai[3] = 0f;
Vector2 vector83 = new Vector2(npc.Center.X, npc.Center.Y);
float num678 = Main.player[npc.target].Center.X - vector83.X - distanceX;
float num679 = Main.player[npc.target].Center.Y - vector83.Y + distanceY;
npc.rotation = 4.71f;
npc.rotation = MathHelper.PiOver2 * 3f;
float num680 = (float)Math.Sqrt((double)(num678 * num678 + num679 * num679));
num680 = num676 / num680;
num678 *= num680;
@@ -153,7 +153,11 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (npc.localAI[0] >= 120f)
{
npc.ai[1] += 1f;
if (npc.ai[1] >= 30f)
if (deadBrother)
{
npc.ai[1] += 1f;
}
if (npc.ai[1] >= 30f)
{
npc.ai[1] = 0f;
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SCalSounds/BrimstoneHellblastSound"), npc.Center);
+11 -10
View File
@@ -165,45 +165,46 @@ namespace CalamityMod.Projectiles.Melee
bool glow = player.ZoneGlowshroom;
bool hell = player.ZoneUnderworldHeight;
bool holy = player.ZoneHoly;
int debuffTime = 90;
if (astral)
{
target.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 180);
target.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), debuffTime);
}
else if (jungle)
{
target.AddBuff(ModContent.BuffType<Plague>(), 180);
target.AddBuff(BuffID.Venom, debuffTime);
}
else if (snow)
{
target.AddBuff(ModContent.BuffType<GlacialState>(), 180);
target.AddBuff(ModContent.BuffType<GlacialState>(), debuffTime / 2);
}
else if (beach)
{
target.AddBuff(ModContent.BuffType<CrushDepth>(), 180);
target.AddBuff(ModContent.BuffType<CrushDepth>(), debuffTime);
}
else if (dungeon)
{
target.AddBuff(BuffID.Frostburn, 180);
target.AddBuff(BuffID.Frostburn, debuffTime);
}
else if (desert)
{
target.AddBuff(ModContent.BuffType<HolyFlames>(), 180);
target.AddBuff(ModContent.BuffType<HolyFlames>(), debuffTime);
}
else if (glow)
{
target.AddBuff(ModContent.BuffType<TemporalSadness>(), 180);
target.AddBuff(ModContent.BuffType<TemporalSadness>(), debuffTime);
}
else if (hell)
{
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 180);
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), debuffTime);
}
else if (holy)
{
target.AddBuff(ModContent.BuffType<HolyFlames>(), 180);
target.AddBuff(ModContent.BuffType<HolyFlames>(), debuffTime);
}
else
{
target.AddBuff(ModContent.BuffType<ArmorCrunch>(), 180);
target.AddBuff(ModContent.BuffType<ArmorCrunch>(), debuffTime);
}
}
}
+7 -2
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
{
DisplayName.SetDefault("Aorta");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 11f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 220f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 260f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 8.5f;
ProjectileID.Sets.TrailCacheLength[projectile.type] = 4;
@@ -30,7 +30,12 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
projectile.MaxUpdates = 2;
}
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
public override void AI()
{
CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 240f, 6f, 180f, 3, ModContent.ProjectileType<Blood2>(), 0.25);
}
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
{
CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1);
return false;
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
{
DisplayName.SetDefault("Cnidarian");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 7f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 190f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 240f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 11f;
}
+1 -1
View File
@@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
// Spawn invisible but damaging aura projectile
if (projectile.owner == Main.myPlayer && !spawnedAura)
{
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<MicrowaveAura>(), (int)((double)projectile.damage * 0.5f), projectile.knockBack, projectile.owner, projectile.identity, 0f);
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType<MicrowaveAura>(), (int)(projectile.damage * 0.35), projectile.knockBack, projectile.owner, projectile.identity, 0f);
spawnedAura = true;
}
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
{
DisplayName.SetDefault("Riptide");
ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 7.5f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 180f;
ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 220f;
ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 12.5f;
}
@@ -82,7 +82,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
bubbleCounter++;
if (bubbleCounter >= 60)
{
int bubbleAmt = 9;
int bubbleAmt = 7;
for (float i = 0; i < bubbleAmt; i++)
{
int projType = ModContent.ProjectileType<SulphurousGrabberBubble>();
+3 -2
View File
@@ -28,8 +28,9 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
projectile.friendly = true;
projectile.melee = true;
projectile.penetrate = -1;
projectile.MaxUpdates = 2;
projectile.usesLocalNPCImmunity = true;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 9;
}
@@ -40,7 +41,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
if (Main.rand.NextBool(5))
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 75, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 6f, 18f, 5, ProjectileID.CrystalLeafShot, 0.6);
CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 6f, 54f, 5, ProjectileID.CrystalLeafShot, 0.8);
}
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)