1 - Defiled Feather makes double jumps grant more jump speed.

2 - Fixed the Astrum Aureus and Crabulon collision issue.
3 - Brimstone Elemental has 20% more HP.
4 - Ares Plasma and Tesla Arms attack soon after Ares spawns and have offset attack timings.
This commit is contained in:
Andrew Marheine committed 2021-12-16 16:17:56 -06:00
1 parent fdad0ba557
commit 31dcf9d215
10 files changed
+61 -39

No files matched your search

+20
View File
@@ -70,6 +70,26 @@ namespace CalamityMod.CalPlayer
if (player.wingsLogic > 0)
player.jumpSpeedBoost += 1.2f;
// Defiled jump boosts
if (modPlayer.noWings)
{
// 10% extra jump speed per extra jump
if (player.doubleJumpCloud)
player.jumpSpeedBoost += 0.5f;
if (player.doubleJumpBlizzard)
player.jumpSpeedBoost += 0.5f;
if (player.doubleJumpSandstorm)
player.jumpSpeedBoost += 0.5f;
if (player.doubleJumpFart)
player.jumpSpeedBoost += 0.5f;
if (player.doubleJumpSail)
player.jumpSpeedBoost += 0.5f;
}
// Decrease the counter on Fearmonger set turbo regeneration
if (modPlayer.fearmongerRegenFrames > 0)
modPlayer.fearmongerRegenFrames--;
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.DifficultyItems
{
DisplayName.SetDefault("Defiled Feather");
Tooltip.SetDefault("It's a long way down from a mountain...\n" +
"Favorite this item to disable wings.");
"Favorite this item to disable wings but increase the effectiveness of double jumps.");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(7, 8));
}
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.DifficultyItems
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Demon Trophy");
Tooltip.SetDefault("Boosts spawn rate by 1.25 times\n" +
Tooltip.SetDefault("Boosts spawn rate by 1.25x\n" +
"Effects cannot be reversed");
}
+1 -1
View File
@@ -43,7 +43,7 @@ namespace CalamityMod.NPCs.AstrumAureus
npc.npcSlots = 15f;
npc.GetNPCDamage();
npc.Calamity().canBreakPlayerDefense = true;
npc.width = 426;
npc.width = 374;
npc.height = 374;
npc.defense = 40;
npc.DR_NERD(0.15f);
@@ -38,7 +38,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
npc.height = 150;
npc.defense = 15;
npc.value = Item.buyPrice(0, 12, 0, 0);
npc.LifeMaxNERB(30000, 41000, 650000);
npc.LifeMaxNERB(36000, 49200, 780000);
npc.DR_NERD(0.15f);
if (CalamityWorld.downedProvidence && !BossRushEvent.BossRushActive)
{
+2 -4
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.NPCs.Crabulon
npc.Calamity().canBreakPlayerDefense = true;
npc.npcSlots = 14f;
npc.GetNPCDamage();
npc.width = 312;
npc.width = 196;
npc.height = 196;
npc.defense = 8;
npc.LifeMaxNERB(3000, 4000, 1100000);
@@ -230,15 +230,13 @@ namespace CalamityMod.NPCs.Crabulon
if (Main.netMode != NetmodeID.Server)
{
if (!player.dead && player.active && (player.Center - npc.Center).Length() < 800f)
{
player.AddBuff(ModContent.BuffType<Mushy>(), 2);
}
}
int sporeDust = Dust.NewDust(npc.position, npc.width, npc.height, 56, npc.velocity.X, npc.velocity.Y, 255, new Color(0, 80, 255, 80), 1.2f);
Main.dust[sporeDust].noGravity = true;
Main.dust[sporeDust].velocity *= 0.5f;
npc.ai[1] += 1f;
if (npc.justHit || npc.ai[1] >= 600f)
if (npc.justHit)
{
npc.ai[0] = 1f;
npc.ai[1] = 0f;
+6
View File
@@ -117,6 +117,10 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
// Max distance from the target before they are unable to hear sound telegraphs
private const float soundDistance = 4800f;
// Timers for the Tesla and Plasma Arms so that they fire at the proper times when they spawn and enter new phases
public const float plasmaArmStartTimer = 260f;
public const float teslaArmStartTimer = 80f;
// Drawers for arm segments.
public static PrimitiveTrail LightningDrawer;
public static PrimitiveTrail LightningBackgroundDrawer;
@@ -222,9 +226,11 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
break;
case 1:
lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType<AresPlasmaFlamethrower>(), npc.whoAmI);
Main.npc[lol].Calamity().newAI[1] = plasmaArmStartTimer;
break;
case 2:
lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType<AresTeslaCannon>(), npc.whoAmI);
Main.npc[lol].Calamity().newAI[1] = teslaArmStartTimer;
break;
case 3:
lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), ModContent.NPCType<AresGaussNuke>(), npc.whoAmI);
+15 -11
View File
@@ -237,6 +237,19 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
else
Lighting.AddLight(npc.Center, 0.1f * npc.Opacity, 0.25f * npc.Opacity, 0.05f * npc.Opacity);
// Gate values
bool fireMoreBolts = calamityGlobalNPC_Body.newAI[0] == (float)AresBody.Phase.Deathrays;
float plasmaBoltPhaseGateValue = fireMoreBolts ? 120f : 270f;
if (enraged)
plasmaBoltPhaseGateValue *= 0.1f;
else if (lastMechAlive)
plasmaBoltPhaseGateValue *= 0.4f;
else if (berserk)
plasmaBoltPhaseGateValue *= 0.7f;
// Set attack timer to this when despawning or when Ares is coming out of deathray phase
float setTimerTo = (int)(plasmaBoltPhaseGateValue * 0.95f) - 1;
// Despawn if target is dead
if (player.dead)
{
@@ -244,7 +257,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
if (player.dead)
{
AIState = (float)Phase.Nothing;
calamityGlobalNPC.newAI[1] = 0f;
calamityGlobalNPC.newAI[1] = setTimerTo;
calamityGlobalNPC.newAI[2] = 0f;
npc.dontTakeDamage = true;
@@ -301,17 +314,8 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
// Distance where Ares Plasma Arm stops moving
float movementDistanceGateValue = 50f;
// Gate values
// Make plasma bolts split less if in deathray spiral phase and not the last mech alive, but fire more if in deathray spiral phase
bool fireMoreBolts = calamityGlobalNPC_Body.newAI[0] == (float)AresBody.Phase.Deathrays;
bool boltsSplitLess = fireMoreBolts && !lastMechAlive;
float plasmaBoltPhaseGateValue = fireMoreBolts ? 120f : 270f;
if (enraged)
plasmaBoltPhaseGateValue *= 0.1f;
else if (lastMechAlive)
plasmaBoltPhaseGateValue *= 0.4f;
else if (berserk)
plasmaBoltPhaseGateValue *= 0.7f;
// If Plasma Cannon can fire projectiles, cannot fire if too close to the target and in deathray spiral phase
bool canFire = Vector2.Distance(npc.Center, player.Center) > 320f || calamityGlobalNPC_Body.newAI[0] != (float)AresBody.Phase.Deathrays;
@@ -328,7 +332,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
if (doNotFire)
{
AIState = (float)Phase.Nothing;
calamityGlobalNPC.newAI[1] = 0f;
calamityGlobalNPC.newAI[1] = setTimerTo;
calamityGlobalNPC.newAI[2] = 0f;
}
+14 -11
View File
@@ -238,6 +238,18 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
else
Lighting.AddLight(npc.Center, 0.1f * npc.Opacity, 0.25f * npc.Opacity, 0.25f * npc.Opacity);
// Gate values
float teslaOrbPhaseGateValue = fireMoreOrbs ? 120f : 270f;
if (enraged)
teslaOrbPhaseGateValue *= 0.1f;
else if (lastMechAlive)
teslaOrbPhaseGateValue *= 0.4f;
else if (berserk)
teslaOrbPhaseGateValue *= 0.7f;
// Set attack timer to this when despawning or when Ares is coming out of deathray phase
float setTimerTo = (int)(teslaOrbPhaseGateValue * 0.3f) - 1;
// Despawn if target is dead
if (player.dead)
{
@@ -245,7 +257,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
if (player.dead)
{
AIState = (float)Phase.Nothing;
calamityGlobalNPC.newAI[1] = 0f;
calamityGlobalNPC.newAI[1] = setTimerTo;
calamityGlobalNPC.newAI[2] = 0f;
npc.dontTakeDamage = true;
@@ -302,15 +314,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
// Distance where Ares Tesla Arm stops moving
float movementDistanceGateValue = 50f;
// Gate values
float teslaOrbPhaseGateValue = fireMoreOrbs ? 120f : 270f;
if (enraged)
teslaOrbPhaseGateValue *= 0.1f;
else if (lastMechAlive)
teslaOrbPhaseGateValue *= 0.4f;
else if (berserk)
teslaOrbPhaseGateValue *= 0.7f;
// If Tesla Cannon can fire projectiles, cannot fire if too close to the target and in deathray spiral phase
bool canFire = Vector2.Distance(npc.Center, player.Center) > 320f || calamityGlobalNPC_Body.newAI[0] != (float)AresBody.Phase.Deathrays;
@@ -326,7 +329,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
if (doNotFire)
{
AIState = (float)Phase.Nothing;
calamityGlobalNPC.newAI[1] = 0f;
calamityGlobalNPC.newAI[1] = setTimerTo;
calamityGlobalNPC.newAI[2] = 0f;
}
-9
View File
@@ -76,9 +76,6 @@ namespace CalamityMod.Projectiles
public bool stealthStrike = false; // Update all existing rogue weapons with this
public bool momentumCapacitatorBoost = false; // Constant acceleration
// Iron Heart
public int ironHeartDamage = 0;
// Counters and Timers
public int stealthStrikeHitCount = 0;
@@ -1928,12 +1925,6 @@ namespace CalamityMod.Projectiles
projectile.damage = defDamage + 15;
}
// Iron Heart damage variable will scale with projectile.damage
if (CalamityWorld.ironHeart)
{
ironHeartDamage = 0;
}
if (projectile.modProjectile != null && projectile.modProjectile.mod.Name.Equals("CalamityMod"))
goto SKIP_CALAMITY;