diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index eede924ece..7540a8557f 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -949,15 +949,31 @@ namespace CalamityMod.Items public override void UpdateEquip(Item item, Player player) { #region Head - if (item.type == ItemID.SpectreHood) + if (item.type == ItemID.SquireGreatHelm) + player.lifeRegen -= 3; + else if (item.type == ItemID.MonkBrows) + player.meleeSpeed -= 0.1f; + else if (item.type == ItemID.SpectreHood) player.magicDamage += 0.2f; else if (item.type == ItemID.GladiatorHelmet || item.type == ItemID.ObsidianHelm) player.Calamity().throwingDamage += 0.03f; - #endregion + #endregion - #region Body - if (item.type == ItemID.GladiatorBreastplate || item.type == ItemID.ObsidianShirt) - player.Calamity().throwingCrit += 3; + #region Body + if (item.type == ItemID.GladiatorBreastplate || item.type == ItemID.ObsidianShirt) + player.Calamity().throwingCrit += 3; + else if (item.type == ItemID.SquireAltShirt) + player.lifeRegen -= 6; + else if (item.type == ItemID.MonkAltShirt) + { + player.minionDamage -= 0.1f; + player.meleeSpeed -= 0.1f; + } + else if (item.type == ItemID.HuntressAltShirt) + { + player.minionDamage -= 0.1f; + player.rangedDamage -= 0.1f; + } else if (item.type == ItemID.StardustBreastplate) player.maxMinions--; #endregion @@ -1461,9 +1477,7 @@ namespace CalamityMod.Items public override void PostUpdate(Item item) { if (CalamityLists.forceItemList?.Contains(item.type) ?? false) - { CalamityUtils.ForceItemIntoWorld(item); - } } #endregion diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index e6b3df9f97..515730fb88 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -444,9 +444,15 @@ namespace CalamityMod.Items // Rebalances to vanilla item stats #region Vanilla Item Rebalance Tooltips + // Reduce DD2 armor piece bonuses because they're overpowered + if (item.type == ItemID.MonkBrows || item.type == ItemID.MonkAltShirt) + EditTooltipByNum(0, (line) => line.text = line.text.Replace("20%", "10%")); + if (item.type == ItemID.HuntressAltShirt) + EditTooltipByNum(0, (line) => line.text = line.text.Replace("25%", "15%")); + // Worm Scarf only gives 10% DR instead of 17% if (item.type == ItemID.WormScarf) - EditTooltipByNum(0, (line) => line.text = line.text = line.text.Replace("17%", "10%")); + EditTooltipByNum(0, (line) => line.text = line.text.Replace("17%", "10%")); if (item.type == ItemID.TitanGlove) EditTooltipByNum(0, (line) => line.text += "\n10% increased true melee damage"); diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index fd48990230..00fdc42a96 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -1510,49 +1510,52 @@ namespace CalamityMod.NPCs { int type = ModContent.ProjectileType(); int damage = npc.GetProjectileDamage(type); + float gigaBlastFrequency = (expertMode ? 180f : 240f) - enrageScale * 15f; + float projSpeed = malice ? 6.25f : 5f; if (calamityGlobalNPC.newAI[3] <= 300f) { - if (calamityGlobalNPC.newAI[3] % 180f == 0f) // Blasts from top - Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f, type, damage, 0f, Main.myPlayer); + if (calamityGlobalNPC.newAI[3] % gigaBlastFrequency == 0f) // Blasts from top + Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, projSpeed, type, damage, 0f, Main.myPlayer); } else if (calamityGlobalNPC.newAI[3] <= 600f && calamityGlobalNPC.newAI[3] > 300f) { - if (calamityGlobalNPC.newAI[3] % 180f == 0f) // Blasts from right - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -5f, 0f, type, damage, 0f, Main.myPlayer); + if (calamityGlobalNPC.newAI[3] % gigaBlastFrequency == 0f) // Blasts from right + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -projSpeed, 0f, type, damage, 0f, Main.myPlayer); } else if (calamityGlobalNPC.newAI[3] > 600f) { - if (calamityGlobalNPC.newAI[3] % 180f == 0f) // Blasts from top - Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f, type, damage, 0f, Main.myPlayer); + if (calamityGlobalNPC.newAI[3] % gigaBlastFrequency == 0f) // Blasts from top + Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, projSpeed, type, damage, 0f, Main.myPlayer); } } npc.ai[0] += 1f; - float hellblastGateValue = 12f; + float hellblastGateValue = (expertMode ? 12f : 16f) - enrageScale; if (npc.ai[0] > hellblastGateValue) { npc.ai[0] = 0f; int type = ModContent.ProjectileType(); int damage = npc.GetProjectileDamage(type); + float projSpeed = malice ? 5f : 4f; if (calamityGlobalNPC.newAI[3] % (hellblastGateValue * 5f) == 0f) { - Projectile.NewProjectile(player.position.X - 1000, player.position.Y, 0f, 4f, type, damage, 0f, Main.myPlayer, 1f, 0f); - Projectile.NewProjectile(player.position.X + 1000, player.position.Y, 0f, 4f, type, damage, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(player.position.X - 1000, player.position.Y, 0f, projSpeed, type, damage, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(player.position.X + 1000, player.position.Y, 0f, -projSpeed, type, damage, 0f, Main.myPlayer, 1f, 0f); } if (calamityGlobalNPC.newAI[3] < 300f) // Blasts from above { - Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 4f, type, damage, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, projSpeed, type, damage, 0f, Main.myPlayer, 1f, 0f); } else if (calamityGlobalNPC.newAI[3] < 600f) // Blasts from left and right { - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f, 0f, type, damage, 0f, Main.myPlayer, 1f, 0f); - Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f, 0f, type, damage, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -(projSpeed - 0.5f), 0f, type, damage, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), projSpeed - 0.5f, 0f, type, damage, 0f, Main.myPlayer, 1f, 0f); } else // Blasts from above, left, and right { - Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 3f, type, damage, 0f, Main.myPlayer, 1f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3f, 0f, type, damage, 0f, Main.myPlayer, 1f, 0f); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f, 0f, type, damage, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, projSpeed - 1f, type, damage, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -(projSpeed - 1f), 0f, type, damage, 0f, Main.myPlayer, 1f, 0f); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), projSpeed - 1f, 0f, type, damage, 0f, Main.myPlayer, 1f, 0f); } } } diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index f47ad63b74..c1d626a6fb 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -131,7 +131,7 @@ namespace CalamityMod.NPCs.Cryogen bool phase4 = lifeRatio < (revenge ? 0.55f : 0.4f); bool phase5 = lifeRatio < (revenge ? 0.4f : 0.2f); bool phase6 = lifeRatio < 0.25f && revenge; - bool phase7 = lifeRatio < 0.1f && revenge; + bool phase7 = lifeRatio < 0.15f && revenge; if ((int)npc.ai[0] + 1 > currentPhase) HandlePhaseTransition((int)npc.ai[0] + 1); diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index de413a4589..8d1f66ed15 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -433,20 +433,20 @@ namespace CalamityMod.NPCs.SupremeCalamitas Projectile.NewProjectile(player.position.X - 1000f, player.position.Y, 4f * uDieLul, 0f, ModContent.ProjectileType(), firstBulletHellblastDamage, 0f, Main.myPlayer); Projectile.NewProjectile(player.position.X + 1000f, player.position.Y, -4f * uDieLul, 0f, ModContent.ProjectileType(), firstBulletHellblastDamage, 0f, Main.myPlayer); } - if (bulletHellCounter2 < 300) //blasts from above + if (bulletHellCounter2 < 300) // Blasts from above { Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 4f * uDieLul, ModContent.ProjectileType(), firstBulletHellblastDamage, 0f, Main.myPlayer); } - else if (bulletHellCounter2 < 600) //blasts from left and right + else if (bulletHellCounter2 < 600) // Blasts from left and right { Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, ModContent.ProjectileType(), firstBulletHellblastDamage, 0f, Main.myPlayer); Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, ModContent.ProjectileType(), firstBulletHellblastDamage, 0f, Main.myPlayer); } - else //blasts from above, left, and right + else // Blasts from above, left, and right { Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 3f * uDieLul, ModContent.ProjectileType(), firstBulletHellblastDamage, 0f, Main.myPlayer); Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3f * uDieLul, 0f, ModContent.ProjectileType(), firstBulletHellblastDamage, 0f, Main.myPlayer); - Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f * uDieLul, 0f, ModContent.ProjectileType(), firstBulletHellblastDamage, 0f, Main.myPlayer); + Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f * uDieLul, 0f, ModContent.ProjectileType(), firstBulletHellblastDamage, 0f, Main.myPlayer); } } } @@ -501,17 +501,17 @@ namespace CalamityMod.NPCs.SupremeCalamitas { if (bulletHellCounter2 < 1200) { - if (bulletHellCounter2 % 180 == 0) //blasts from top + if (bulletHellCounter2 % 180 == 0) // Blasts from top Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType(), gigablastDamage, 0f, Main.myPlayer); } else if (bulletHellCounter2 < 1500 && bulletHellCounter2 > 1200) { - if (bulletHellCounter2 % 180 == 0) //blasts from right + if (bulletHellCounter2 % 180 == 0) // Blasts from right Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -5f * uDieLul, 0f, ModContent.ProjectileType(), gigablastDamage, 0f, Main.myPlayer); } else if (bulletHellCounter2 > 1500) { - if (bulletHellCounter2 % 180 == 0) //blasts from top + if (bulletHellCounter2 % 180 == 0) // Blasts from top Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType(), gigablastDamage, 0f, Main.myPlayer); } bulletHellCounter += 1; @@ -523,15 +523,15 @@ namespace CalamityMod.NPCs.SupremeCalamitas Projectile.NewProjectile(player.position.X - 1000f, player.position.Y, 4f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); Projectile.NewProjectile(player.position.X + 1000f, player.position.Y, -4f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); } - if (bulletHellCounter2 < 1200) //blasts from below + if (bulletHellCounter2 < 1200) // Blasts from below { Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y + 1000f, 0f, -4f * uDieLul, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); } - else if (bulletHellCounter2 < 1500) //blasts from left + else if (bulletHellCounter2 < 1500) // Blasts from left { Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); } - else //blasts from left and right + else // Blasts from left and right { Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); @@ -567,10 +567,10 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (Main.netMode != NetmodeID.MultiplayerClient) { - if (bulletHellCounter2 % 180 == 0) //blasts from top + if (bulletHellCounter2 % 180 == 0) // Blasts from top Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType(), gigablastDamage, 0f, Main.myPlayer); - if (bulletHellCounter2 % 240 == 0) //fireblasts from above + if (bulletHellCounter2 % 240 == 0) // Fireblasts from above Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 10f * uDieLul, ModContent.ProjectileType(), fireblastDamage, 0f, Main.myPlayer); bulletHellCounter += 1; @@ -582,15 +582,15 @@ namespace CalamityMod.NPCs.SupremeCalamitas Projectile.NewProjectile(player.position.X - 1000f, player.position.Y, 4f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); Projectile.NewProjectile(player.position.X + 1000f, player.position.Y, -4f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); } - if (bulletHellCounter2 < 2100) //blasts from above + if (bulletHellCounter2 < 2100) // Blasts from above { Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 4f * uDieLul, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); } - else if (bulletHellCounter2 < 2400) //blasts from right + else if (bulletHellCounter2 < 2400) // Blasts from right { Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); } - else //blasts from left and right + else // Blasts from left and right { Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); @@ -629,16 +629,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas float num741 = player.Center.Y - vectorCenter.Y; npc.rotation = (float)Math.Atan2(num741, num740) - MathHelper.PiOver2; - if (Main.netMode != NetmodeID.MultiplayerClient) //more clustered attack + if (Main.netMode != NetmodeID.MultiplayerClient) // More clustered attack { - if (bulletHellCounter2 % 180 == 0) //blasts from top + if (bulletHellCounter2 % 180 == 0) // Blasts from top Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType(), gigablastDamage, 0f, Main.myPlayer); - if (bulletHellCounter2 % 240 == 0) //fireblasts from above + if (bulletHellCounter2 % 240 == 0) // Fireblasts from above Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 10f * uDieLul, ModContent.ProjectileType(), fireblastDamage, 0f, Main.myPlayer); int divisor = revenge ? 225 : expertMode ? 450 : 675; - if (bulletHellCounter2 % divisor == 0 && expertMode) //giant homing fireballs + if (bulletHellCounter2 % divisor == 0 && expertMode) // Giant homing fireballs { Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 1f * uDieLul, ModContent.ProjectileType(), monsterDamage, 0f, Main.myPlayer, 0f, passedVar); passedVar += 1f; @@ -653,15 +653,15 @@ namespace CalamityMod.NPCs.SupremeCalamitas Projectile.NewProjectile(player.position.X - 1000f, player.position.Y, 4f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); Projectile.NewProjectile(player.position.X + 1000f, player.position.Y, -4f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); } - if (bulletHellCounter2 < 3000) //blasts from below + if (bulletHellCounter2 < 3000) // Blasts from below { Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y + 1000f, 0f, -4f * uDieLul, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); } - else if (bulletHellCounter2 < 3300) //blasts from left + else if (bulletHellCounter2 < 3300) // Blasts from left { Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); } - else //blasts from left and right + else // Blasts from left and right { Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); Projectile.NewProjectile(player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, ModContent.ProjectileType(), bulletHellblastDamage, 0f, Main.myPlayer); @@ -702,13 +702,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (Main.netMode != NetmodeID.MultiplayerClient) { - if (bulletHellCounter2 % 240 == 0) //blasts from top + if (bulletHellCounter2 % 240 == 0) // Blasts from top Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType(), gigablastDamage, 0f, Main.myPlayer); - if (bulletHellCounter2 % 360 == 0) //fireblasts from above + if (bulletHellCounter2 % 360 == 0) // Fireblasts from above Projectile.NewProjectile(player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 10f * uDieLul, ModContent.ProjectileType(), fireblastDamage, 0f, Main.myPlayer); - if (bulletHellCounter2 % 30 == 0) //projectiles that move in wave pattern + if (bulletHellCounter2 % 30 == 0) // rojectiles that move in wave pattern { int random = Main.rand.Next(-500, 501); Projectile.NewProjectile(player.position.X + 1000f, player.position.Y + random, -5f * uDieLul, 0f, ModContent.ProjectileType(), waveDamage, 0f, Main.myPlayer);