From 664c9b107d60fe8bf35eaeddfc9842d4573c172a Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Mon, 21 Oct 2024 03:03:43 +0700 Subject: [PATCH] vanilla changes become normal sort of (balancing still to-do i just eyed some numbers) --- CalPlayer/CalamityPlayer.cs | 3 - CalPlayer/CalamityPlayerHitHurt.cs | 47 ------------ CalPlayer/CalamityPlayerOnHit.cs | 74 ------------------- Items/CalamityGlobalItem.cs | 15 ---- Items/CalamityGlobalItemTooltip.cs | 55 -------------- Items/CalamityGlobalItemTweaks.cs | 70 +++++++++--------- NPCs/CalamityGlobalNPC.cs | 47 ------------ Projectiles/CalamityGlobalProjectileTweaks.cs | 6 +- 8 files changed, 38 insertions(+), 279 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index f991d563d5..8232fae24e 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -4467,9 +4467,6 @@ namespace CalamityMod.CalPlayer if (Player.ownedProjectileCounts[ProjectileType()] > 0) Player.yoraiz0rEye = 0; - if (Player.HeldItem != null && Player.HeldItem.type == ItemID.FalconBlade) - Player.moveSpeed += 0.2f; - int totalMoonlightDyes = Player.dye.Count(dyeItem => dyeItem.type == ItemType()); if (totalMoonlightDyes > 0) { diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 3815e6f6ea..996755b417 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -538,32 +538,6 @@ namespace CalamityMod.CalPlayer if (yellowCandle && cgn.DR < 0.99f && target.takenDamageMultiplier > 0.05f) modifiers.ModifyHitInfo += CirrusYellowCandleBuff.ModifyHitInfo_Spite; - // Excalibur and True Excalibur deal +100% damage to targets above 75% HP. - if (item.type == ItemID.Excalibur || item.type == ItemID.TrueExcalibur) - { - if (target.life > (int)(target.lifeMax * 0.75)) - modifiers.ScalingBonusDamage += 1f; - } - - // Titanium Sword deals up to +15% damage based on the target's knockback resistance. - if (item.type == ItemID.TitaniumSword) - { - float knockbackResistBonus = 0.15f * (1f - target.knockBackResist); - modifiers.ScalingBonusDamage += knockbackResistBonus; - } - - // Antlion Claw, Bone Sword and Breaker Blade ignore 50% of the enemy's defense. - if (item.type == ItemID.AntlionClaw || item.type == ItemID.BoneSword || item.type == ItemID.BreakerBlade) - { - modifiers.ScalingArmorPenetration += 0.5f; - } - - // Stylish Scissors, all Phaseblades and all Phasesabers ignore 100% of the enemy's defense. - if (item.type == ItemID.StylistKilLaKillScissorsIWish || (item.type >= ItemID.BluePhaseblade && item.type <= ItemID.YellowPhaseblade) || (item.type >= ItemID.BluePhasesaber && item.type <= ItemID.YellowPhasesaber) || item.type == ItemID.OrangePhaseblade || item.type == ItemID.OrangePhasesaber) - { - modifiers.ScalingArmorPenetration += 1f; - } - // Frost Armor's rework gives +X% melee damage and +Y% ranged damage based on distance, where X+Y = 15. if (frostSet) { @@ -658,32 +632,11 @@ namespace CalamityMod.CalPlayer modifiers.ScalingBonusDamage += 0.05f; } - // Excalibur and True Excalibur deal +100% damage to targets above 75% HP. - if (proj.type == ProjectileID.Excalibur || proj.type == ProjectileID.TrueExcalibur) - { - if (target.life > (int)(target.lifeMax * 0.75)) - modifiers.ScalingBonusDamage += 1f; - } - // Calamity buffs Inferno Fork by 20%. This is multiplicative because it's supposed to be a buff to the weapon's base damage. // However, because the weapon is coded like spaghetti, you have to multiply the explosion's damage too. if (proj.type == ProjectileID.InfernoFriendlyBlast) modifiers.SourceDamage *= 1.2f; - // Gungnir deals +100% damage to targets above 75% HP. - if (proj.type == ProjectileID.Gungnir) - { - if (target.life > (int)(target.lifeMax * 0.75)) - modifiers.ScalingBonusDamage += 1f; - } - - // Titanium Trident deals up to +15% damage based on the target's knockback resistance. - if (proj.type == ProjectileID.TitaniumTrident) - { - float knockbackResistBonus = 0.15f * (1f - target.knockBackResist); - modifiers.ScalingBonusDamage += knockbackResistBonus; - } - // Frost Armor's rework gives +X% melee damage and +Y% ranged damage based on distance, where X+Y = 15. if (frostSet) { diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 36d0fb40ea..bb08e86a54 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -87,43 +87,6 @@ namespace CalamityMod.CalPlayer switch (item.type) { - case ItemID.CobaltSword: - target.Calamity().cobaltNerfTimer = CalamityGlobalNPC.cobaltAndMythrilNerfTime; - break; - - case ItemID.PalladiumSword: - if (Player.moonLeech) - return; - Player.lifeRegenTime += 2; - break; - - case ItemID.MythrilSword: - target.Calamity().mythrilNerfTimer = CalamityGlobalNPC.cobaltAndMythrilNerfTime; - break; - - case ItemID.OrichalcumSword: - if (Player.petalTimer > 0) - Player.petalTimer /= 2; - break; - - case ItemID.AdamantiteSword: - float slowDownMult = 0.5f; - if (CalamityLists.enemyImmunityList.Contains(target.type) || target.boss) - slowDownMult = 0.95f; - target.velocity *= slowDownMult; - break; - - case ItemID.CandyCaneSword: - - if (Player.moonLeech || Player.lifeSteal <= 0f || target.lifeMax <= 5) - return; - - int heal = 2; - Player.lifeSteal -= heal; - Player.HealPlayer(heal); - - break; - case ItemID.DeathSickle: target.AddBuff(BuffType(), 120); break; @@ -225,43 +188,6 @@ namespace CalamityMod.CalPlayer switch (proj.type) { - case ProjectileID.CobaltNaginata: - target.Calamity().cobaltNerfTimer = CalamityGlobalNPC.cobaltAndMythrilNerfTime; - break; - - case ProjectileID.PalladiumPike: - if (Player.moonLeech) - return; - Player.lifeRegenTime += 2; - break; - - case ProjectileID.MythrilHalberd: - target.Calamity().mythrilNerfTimer = CalamityGlobalNPC.cobaltAndMythrilNerfTime; - break; - - case ProjectileID.OrichalcumHalberd: - if (Player.petalTimer > 0) - Player.petalTimer /= 2; - break; - - case ProjectileID.AdamantiteGlaive: - float slowDownMult = 0.5f; - if (CalamityLists.enemyImmunityList.Contains(target.type) || target.boss) - slowDownMult = 0.95f; - target.velocity *= slowDownMult; - break; - - case ProjectileID.FruitcakeChakram: - - if (Player.moonLeech || Main.player[Main.myPlayer].lifeSteal <= 0f || target.lifeMax <= 5) - return; - - int heal = 2; - Main.player[Main.myPlayer].lifeSteal -= heal; - Player.HealPlayer(heal); - - break; - case ProjectileID.ObsidianSwordfish: target.AddBuff(BuffID.OnFire3, 180); break; diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 9749b0a114..7f4c33f620 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -529,21 +529,6 @@ namespace CalamityMod.Items } } } - if (item.type == ItemID.PearlwoodBow) - { - foreach (Projectile p in Main.ActiveProjectiles) - { - if ((p.type == ModContent.ProjectileType() || p.type == ModContent.ProjectileType()) && p.owner == player.whoAmI) - { - p.Kill(); - } - } - for (int i = -8; i <= 8; i += 8) - { - Vector2 perturbedSpeed = velocity.RotatedBy(MathHelper.ToRadians(i)); - Projectile.NewProjectile(source, position, perturbedSpeed, ModContent.ProjectileType(), damage, 0f, player.whoAmI); - } - } return true; } #endregion diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index a45e111368..378bbfd827 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -658,64 +658,9 @@ namespace CalamityMod.Items EditTooltipByNum(0, (line) => line.Text = brainDodgeLine); #endregion - // Early Hardmode ore melee weapons have new on-hit effects. - #region Early Hardmode Melee Tooltips - - // Cobalt - if (item.type == ItemID.CobaltSword || item.type == ItemID.CobaltNaginata) - EditTooltipByName("Knockback", (line) => line.Text += "\nDecreases enemy defense by 25% on hit\nThis effect lasts for 10 seconds"); - - // Palladium - if (item.type == ItemID.PalladiumSword || item.type == ItemID.PalladiumPike) - EditTooltipByName("Knockback", (line) => line.Text += "\nIncreases natural life regen on hit"); - - // Mythril - if (item.type == ItemID.MythrilSword || item.type == ItemID.MythrilHalberd) - EditTooltipByName("Knockback", (line) => line.Text += "\nDecreases enemy contact damage by 10% on hit\nThis effect lasts for 10 seconds"); - - // Orichalcum - if (item.type == ItemID.OrichalcumSword || item.type == ItemID.OrichalcumHalberd) - EditTooltipByName("Knockback", (line) => line.Text += "\nIncreases how frequently the Orichalcum set bonus triggers on hit"); - - // Adamantite - if (item.type == ItemID.AdamantiteSword) - EditTooltipByName("Material", (line) => line.Text += "\nSlows enemies on hit"); - - if (item.type == ItemID.AdamantiteGlaive) - EditTooltipByName("Knockback", (line) => line.Text += "\nSlows enemies on hit"); - - // Titanium - if (item.type == ItemID.TitaniumSword) - EditTooltipByName("Material", (line) => line.Text += "\nDeals increased damage to enemies with high knockback resistance"); - - if (item.type == ItemID.TitaniumTrident) - EditTooltipByName("Knockback", (line) => line.Text += "\nDeals increased damage to enemies with high knockback resistance"); - - // Hallowed (and True Excalibur) - if (item.type == ItemID.Excalibur || item.type == ItemID.Gungnir || item.type == ItemID.TrueExcalibur) - EditTooltipByName("Material", (line) => line.Text += "\nDeals double damage to enemies above 75% life"); - #endregion - // Other melee weapon tooltips #region Other Melee Tooltips - if (item.type == ItemID.CandyCaneSword || item.type == ItemID.FruitcakeChakram) - EditTooltipByName("Knockback", (line) => line.Text += "\nHeals you on hit"); - - // Stylish Scissors, all Phaseblades, and all Phasesabers ignore 100% of defense - if (item.type == ItemID.StylistKilLaKillScissorsIWish || (item.type >= ItemID.BluePhasesaber && item.type <= ItemID.YellowPhasesaber) || item.type == ItemID.OrangePhasesaber) - EditTooltipByName("Knockback", (line) => line.Text += "\nIgnores 100% of enemy defense"); - // Phaseblades are done separately to ensure it appears under the Material line - if (item.type >= ItemID.BluePhaseblade && item.type <= ItemID.YellowPhaseblade || item.type == ItemID.OrangePhaseblade) - EditTooltipByName("Material", (line) => line.Text += "\nIgnores 100% of enemy defense"); - - // Bone Sword, Breaker Blade, and Mandible Blade ignore 50% of defense - if (item.type == ItemID.BoneSword || item.type == ItemID.BreakerBlade) - EditTooltipByName("Knockback", (line) => line.Text += "\nIgnores 50% of enemy defense"); - // Mandible Blade is done separately to ensure it appears under the Material line - if (item.type == ItemID.AntlionClaw) - EditTooltipByName("Material", (line) => line.Text += "\nIgnores 50% of enemy defense"); - // Death Sickle inflict Whispering Death if (item.type == ItemID.DeathSickle) EditTooltipByNum(0, (line) => line.Text += "\nInflicts Whispering Death on hit"); diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index d1c01830a8..979335f158 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -36,13 +36,13 @@ namespace CalamityMod.Items currentTweaks = new SortedDictionary { #region CATEGORY 1: Weapon Balancing - { ItemID.AdamantiteGlaive, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(65), ShootSpeedRatio(1.25f)) }, + { ItemID.AdamantiteGlaive, Do(AutoReuse, TrueMelee, UseExact(6), ShootSpeedExact(18f)) }, { ItemID.AdamantiteRepeater, Do(PointBlank, UseExact(14)) }, - { ItemID.AdamantiteSword, Do(UseTurn, DamageExact(77)) }, + { ItemID.AdamantiteSword, Do(UseTurn, UseExact(6)) }, { ItemID.AmberStaff, Do(UseTimeExact(15), UseAnimationExact(45), ReuseDelayExact(15)) }, { ItemID.AmethystStaff, Do(ManaExact(2)) }, { ItemID.Anchor, Do(DamageExact(107), UseExact(30)) }, - { ItemID.AntlionClaw, Do(UseExact(14)) }, // Mandible Blade + { ItemID.AntlionClaw, Do(UseExact(10)) }, // Mandible Blade { ItemID.AquaScepter, Do(DamageExact(24)) }, { ItemID.Bananarang, Do(DamageExact(76), UseExact(14)) }, { ItemID.BatScepter, Do(DamageExact(50)) }, @@ -55,12 +55,13 @@ namespace CalamityMod.Items { ItemID.BlizzardStaff, Do(DamageExact(41), ManaExact(7)) }, { ItemID.BloodyMachete, Do(AutoReuse, DamageExact(24)) }, { ItemID.Blowgun, Do(PointBlank, DamageExact(40), ShootSpeedExact(15f)) }, - { ItemID.BluePhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) }, - { ItemID.BluePhasesaber, Do(DamageExact(60)) }, + { ItemID.BluePhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) }, + { ItemID.BluePhasesaber, Do(DamageExact(132)) }, + { ItemID.BoneSword, Do(AutoReuse, UseTurn, DamageExact(25)) }, { ItemID.BookofSkulls, Do(DamageExact(27), ManaExact(13), ShootSpeedExact(5.5f)) }, { ItemID.BookStaff, Do(ManaExact(14)) }, // Tome of Infinite Wisdom { ItemID.Boomstick, Do(PointBlank, DamageExact(11)) }, - { ItemID.BreakerBlade, Do(AutoReuse, UseTurn, DamageExact(97)) }, + { ItemID.BreakerBlade, Do(AutoReuse, UseTurn, DamageExact(140)) }, { ItemID.CandyCornRifle, Do(PointBlank, DamageExact(66)) }, { ItemID.Cascade, Do(AutoReuse, DamageExact(31)) }, { ItemID.ChainGuillotines, Do(DamageExact(100)) }, @@ -72,9 +73,9 @@ namespace CalamityMod.Items { ItemID.ChristmasTreeSword, Do(AutoReuse, UseTurn, UseMeleeSpeed, DamageExact(80), UseExact(30)) }, { ItemID.ClingerStaff, Do(DamageExact(63)) }, { ItemID.ClockworkAssaultRifle, Do(PointBlank, DamageExact(21)) }, - { ItemID.CobaltNaginata, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(90)) }, + { ItemID.CobaltNaginata, Do(AutoReuse, TrueMelee, UseExact(9), ShootSpeedExact(12f)) }, { ItemID.CobaltRepeater, Do(PointBlank, UseExact(18)) }, - { ItemID.CobaltSword, Do(UseTurn, DamageExact(80)) }, + { ItemID.CobaltSword, Do(UseTurn, UseExact(9)) }, { ItemID.Code2, Do(AutoReuse, DamageExact(43)) }, { ItemID.CorruptYoyo, Do(AutoReuse, DamageExact(20)) }, // Malaise { ItemID.CrimsonYoyo, Do(AutoReuse, DamageExact(20)) }, // Artery @@ -103,9 +104,9 @@ namespace CalamityMod.Items { ItemID.EmpressBlade, Do(AutoReuse, DamageExact(60), UseExact(20)) }, // Terraprisma { ItemID.EnchantedBoomerang, Do(DamageExact(24)) }, { ItemID.EnchantedSword, Do(UseMeleeSpeed, DamageExact(30), ShootSpeedExact(15f)) }, - { ItemID.Excalibur, Do(TrueMelee, UseRatio(0.8f), DamageExact(125), UseAnimationExact(45)) }, + { ItemID.Excalibur, Do(TrueMelee, DamageExact(210), UseExact(24)) }, { ItemID.FairyQueenMagicItem, Do(DamageExact(54)) }, // Nightglow - { ItemID.FalconBlade, Do(UseTurn, UseExact(15)) }, + { ItemID.FalconBlade, Do(UseTurn, UseExact(13)) }, { ItemID.FireworksLauncher, Do(DamageExact(50), UseExact(25)) }, // Celebration { ItemID.Flairon, Do(DamageExact(65)) }, { ItemID.Flamarang, Do(DamageExact(40)) }, @@ -120,10 +121,10 @@ namespace CalamityMod.Items { ItemID.GoldShortsword, Do(AutoReuse, TrueMelee, DamageExact(17)) }, { ItemID.GolemFist, Do(DamageExact(150)) }, { ItemID.Gradient, Do(AutoReuse, DamageExact(39)) }, - { ItemID.GreenPhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) }, - { ItemID.GreenPhasesaber, Do(DamageExact(60)) }, + { ItemID.GreenPhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) }, + { ItemID.GreenPhasesaber, Do(DamageExact(132)) }, { ItemID.GrenadeLauncher, Do(DamageExact(112)) }, - { ItemID.Gungnir, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(92), ShootSpeedRatio(1.25f)) }, + { ItemID.Gungnir, Do(AutoReuse, TrueMelee, DamageExact(132), ShootSpeedExact(7f)) }, { ItemID.HallowedRepeater, Do(PointBlank, UseExact(12)) }, { ItemID.Handgun, Do(PointBlank, UseExact(20)) }, { ItemID.HellwingBow, Do(PointBlank, DamageExact(16)) }, @@ -169,23 +170,23 @@ namespace CalamityMod.Items { ItemID.Muramasa, Do(CritDelta(+10)) }, { ItemID.MushroomSpear, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(100)) }, { ItemID.Musket, Do(PointBlank, DamageExact(22)) }, - { ItemID.MythrilHalberd, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(95), ShootSpeedRatio(1.25f)) }, + { ItemID.MythrilHalberd, Do(AutoReuse, TrueMelee, UseExact(8), ShootSpeedExact(14f)) }, { ItemID.MythrilRepeater, Do(PointBlank, UseExact(16)) }, - { ItemID.MythrilSword, Do(UseTurn, DamageExact(100)) }, + { ItemID.MythrilSword, Do(UseTurn, UseExact(8)) }, { ItemID.NettleBurst, Do(ManaExact(10), DamageExact(70)) }, { ItemID.NightsEdge, Do(TrueMelee, DamageExact(45)) }, { ItemID.NorthPole, Do(AutoReuse, UseMeleeSpeed) }, - { ItemID.OrangePhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) }, - { ItemID.OrangePhasesaber, Do(DamageExact(60)) }, - { ItemID.OrichalcumHalberd, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(98), ShootSpeedRatio(1.25f)) }, + { ItemID.OrangePhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) }, + { ItemID.OrangePhasesaber, Do(DamageExact(132)) }, + { ItemID.OrichalcumHalberd, Do(AutoReuse, TrueMelee, DamageExact(120), ShootSpeedRatio(1.25f)) }, { ItemID.OrichalcumRepeater, Do(PointBlank, DamageExact(48)) }, - { ItemID.OrichalcumSword, Do(UseTurn, DamageExact(82)) }, + { ItemID.OrichalcumSword, Do(UseTurn, DamageExact(144)) }, { ItemID.PainterPaintballGun, Do(PointBlank, DamageExact(8)) }, { ItemID.PaladinsHammer, Do(DamageExact(100), ShootSpeedExact(23)) }, - { ItemID.PalladiumPike, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(96)) }, + { ItemID.PalladiumPike, Do(AutoReuse, TrueMelee, DamageExact(96)) }, { ItemID.PalladiumRepeater, Do(PointBlank, DamageExact(45)) }, - { ItemID.PalladiumSword, Do(UseTurn, DamageExact(100)) }, - { ItemID.PearlwoodBow, Do(AutoReuse, PointBlank, DamageExact(20), UseDelta(+8), ShootSpeedDelta(+3.4f), KnockbackDelta(+1f)) }, + { ItemID.PalladiumSword, Do(UseTurn, DamageExact(120)) }, + { ItemID.PearlwoodBow, Do(AutoReuse, PointBlank, DamageExact(32)) }, { ItemID.PearlwoodSword, Do(UseTurn, DamageExact(45)) }, { ItemID.PewMaticHorn, Do(DamageExact(25), ShootSpeedExact(15)) }, { ItemID.Phantasm, Do(PointBlank, DamageExact(48)) }, @@ -198,8 +199,8 @@ namespace CalamityMod.Items { ItemID.PrincessWeapon, Do(DamageExact(90)) }, // Resonance Scepter { ItemID.PsychoKnife, Do(UseTurn, UseExact(11), DamageExact(200)) }, { ItemID.PurpleClubberfish, Do(UseTurn, KnockbackExact(10f)) }, - { ItemID.PurplePhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) }, - { ItemID.PurplePhasesaber, Do(DamageExact(60)) }, + { ItemID.PurplePhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) }, + { ItemID.PurplePhasesaber, Do(DamageExact(132)) }, { ItemID.PygmyStaff, Do(AutoReuse, UseExact(20), DamageExact(70)) }, { ItemID.QuadBarrelShotgun, Do(PointBlank, DamageExact(11)) }, { ItemID.RainbowGun, Do(DamageExact(60), ManaExact(40)) }, @@ -208,8 +209,8 @@ namespace CalamityMod.Items { ItemID.RavenStaff, Do(AutoReuse, UseExact(20), DamageExact(36)) }, { ItemID.RazorbladeTyphoon, Do(DamageExact(103)) }, { ItemID.Razorpine, Do(DamageExact(40)) }, - { ItemID.RedPhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) }, - { ItemID.RedPhasesaber, Do(DamageExact(60)) }, + { ItemID.RedPhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) }, + { ItemID.RedPhasesaber, Do(DamageExact(132)) }, { ItemID.RedRyder, Do(PointBlank, DamageExact(24)) }, { ItemID.RedsYoyo, Do(AutoReuse, DamageExact(48)) }, // Red's Throw and Valkyrie Yoyo have the same stats { ItemID.RocketLauncher, Do(DamageExact(70)) }, @@ -239,7 +240,7 @@ namespace CalamityMod.Items { ItemID.StarCannon, Do(DamageExact(25)) }, { ItemID.StardustDragonStaff, Do(AutoReuse, DamageExact(20), UseExact(19)) }, { ItemID.StormTigerStaff, Do(AutoReuse, DamageExact(49), UseExact(20)) }, // Desert Tiger Staff - { ItemID.StylistKilLaKillScissorsIWish, Do(AutoReuse, UseTurn, DamageExact(18)) }, // Stylish Scissors + { ItemID.StylistKilLaKillScissorsIWish, Do(AutoReuse, UseTurn, DamageExact(21)) }, // Stylish Scissors { ItemID.Stynger, Do(DamageExact(75)) }, { ItemID.Swordfish, Do(AutoReuse, TrueMelee, DamageExact(24)) }, { ItemID.TacticalShotgun, Do(PointBlank, DamageExact(41)) }, @@ -256,13 +257,13 @@ namespace CalamityMod.Items { ItemID.ThunderSpear, Do(AutoReuse, UseMeleeSpeed) }, // Storm Spear { ItemID.ThunderStaff, Do(DamageExact(18)) }, //Thunder Zapper { ItemID.TitaniumRepeater, Do(PointBlank, DamageExact(52)) }, - { ItemID.TitaniumSword, Do(UseTurn, DamageExact(77)) }, - { ItemID.TitaniumTrident, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(72), ShootSpeedRatio(1.25f)) }, + { ItemID.TitaniumSword, Do(UseTurn, DamageExact(180)) }, + { ItemID.TitaniumTrident, Do(AutoReuse, TrueMelee, DamageExact(132), ShootSpeedRatio(1.25f)) }, { ItemID.TopazStaff, Do(ManaExact(2)) }, { ItemID.Toxikarp, Do(UseExact(9)) }, { ItemID.Trident, Do(AutoReuse, TrueMelee, DamageExact(20)) }, { ItemID.Trimarang, Do(DamageExact(24)) }, - { ItemID.TrueExcalibur, Do(TrueMelee, DamageExact(107)) }, + { ItemID.TrueExcalibur, Do(TrueMelee, DamageExact(112)) }, { ItemID.TrueNightsEdge, Do(DamageExact(105)) }, { ItemID.Tsunami, Do(PointBlank, DamageExact(45)) }, { ItemID.TungstenBullet, Do(DamageExact(8)) }, @@ -275,12 +276,12 @@ namespace CalamityMod.Items { ItemID.VenusMagnum, Do(PointBlank, DamageExact(65)) }, { ItemID.WaspGun, Do(UseExact(11), DamageExact(58)) }, { ItemID.WaterBolt, Do(DamageExact(23)) }, - { ItemID.WhitePhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) }, - { ItemID.WhitePhasesaber, Do(DamageExact(60)) }, + { ItemID.WhitePhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) }, + { ItemID.WhitePhasesaber, Do(DamageExact(132)) }, { ItemID.WoodenBoomerang, Do(DamageExact(16), Value(Item.sellPrice(copper: 20))) }, { ItemID.Yelets, Do(AutoReuse, DamageExact(53)) }, - { ItemID.YellowPhaseblade, Do(AutoReuse, UseTurn, DamageExact(32)) }, - { ItemID.YellowPhasesaber, Do(DamageExact(60)) }, + { ItemID.YellowPhaseblade, Do(AutoReuse, UseTurn, DamageExact(48)) }, + { ItemID.YellowPhasesaber, Do(DamageExact(132)) }, { ItemID.Zenith, Do(DamageExact(210)) }, { ItemID.ZombieArm, Do(AutoReuse, UseTurn, KnockbackExact(12f)) }, #endregion @@ -516,7 +517,6 @@ namespace CalamityMod.Items { ItemID.BatBat, autoReuse }, { ItemID.BladeofGrass, Do(AutoReuse, UseTurn) }, { ItemID.BloodButcherer, Do(AutoReuse, UseTurn) }, - { ItemID.BoneSword, Do(AutoReuse, UseTurn) }, { ItemID.BorealWoodSword, Do(AutoReuse, UseTurn) }, { ItemID.CactusSword, Do(AutoReuse, UseTurn) }, { ItemID.CandyCaneSword, Do(AutoReuse, UseTurn) }, diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index dff1443e29..47ed3a8f12 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -256,10 +256,6 @@ namespace CalamityMod.NPCs public const int knockbackResistanceMin = 180; public int knockbackResistanceTimer = 0; - // Used for NPCs affected by vanilla Cobalt/Mythril weapons - public const int cobaltAndMythrilNerfTime = 600; - public int cobaltNerfTimer = 0; - public int mythrilNerfTimer = 0; // Debuffs public int vaporfied = 0; @@ -496,9 +492,6 @@ namespace CalamityMod.NPCs myClone.bossCanBeKnockedBack = bossCanBeKnockedBack; myClone.knockbackResistanceTimer = knockbackResistanceTimer; - myClone.cobaltNerfTimer = cobaltNerfTimer; - myClone.mythrilNerfTimer = mythrilNerfTimer; - myClone.vaporfied = vaporfied; myClone.timeSlow = timeSlow; myClone.gState = gState; @@ -5591,10 +5584,6 @@ namespace CalamityMod.NPCs if (ashesOnDeath > 0) ashesOnDeath--; - if (cobaltNerfTimer > 0) - cobaltNerfTimer--; - if (mythrilNerfTimer > 0) - mythrilNerfTimer--; if (cursorFocus > 0 && cursorFocus < cursorFocusMax) cursorFocus--; if (veriumDoomTimer > 0) @@ -7118,42 +7107,6 @@ namespace CalamityMod.NPCs } } - // Cobalt weapons reduce NPC defense - if (cobaltNerfTimer > 0) - { - miscDefenseLoss = (int)(npc.defense * 0.25); - - // Particle effects - if (Main.rand.NextBool(5)) - { - Vector2 spawnLocation = new Vector2(Main.rand.NextFloat(npc.position.X, npc.position.X + npc.width), Main.rand.NextFloat(npc.position.Y, npc.position.Y + npc.height)); - Vector2 velocity = new Vector2(0f, MathHelper.Max(Main.rand.NextFloat(4f, 6f) * ((npc.height - (spawnLocation.Y - npc.position.Y)) / 65), 0.6f)); - - Particle cobaltArrow = new StatDownArrow(spawnLocation, velocity, new Color(27, 141, 235), new Color(0, 94, 181), 0.75f, 15); - GeneralParticleHandler.SpawnParticle(cobaltArrow); - } - } - - // Mythril weapons reduce NPC contact damage - if (mythrilNerfTimer > 0) - { - // Ensure that it isn't trying to set a non-zero damage value if the NPC's damage is currently 0 - if (npc.damage == 0) - npc.damage = 0; - else - npc.damage = (int)(npc.defDamage * 0.9); - - // Particle effects - if (Main.rand.NextBool(5)) - { - Vector2 spawnLocation = new Vector2(Main.rand.NextFloat(npc.position.X, npc.position.X + npc.width), Main.rand.NextFloat(npc.position.Y, npc.position.Y + npc.height)); - Vector2 velocity = new Vector2(0f, MathHelper.Max(Main.rand.NextFloat(4f, 6f) * ((npc.height - (spawnLocation.Y - npc.position.Y)) / 65), 0.6f)); - - Particle mythrilArrow = new StatDownArrow(spawnLocation, velocity, new Color(35, 217, 144), new Color(23, 145, 97), 0.75f, 15); - GeneralParticleHandler.SpawnParticle(mythrilArrow); - } - } - // Some extraneous and probably undocumented visual effect caused by the heart lad pet thing if (ladHearts > 0 && !npc.loveStruck && Main.netMode != NetmodeID.Server) { diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index e30e433de3..ed51596070 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -115,6 +115,7 @@ namespace CalamityMod.Projectiles #region CATEGORY 2: Weapon/Enemy Balancing { ProjectileID.AdamantiteChainsaw, standardChainsawTweaks }, { ProjectileID.AdamantiteDrill, standardDrillTweaks }, + { ProjectileID.AdamantiteGlaive, Do(TrueMelee, LocalIFrames(6)) }, { ProjectileID.Anchor, Do(ExtraUpdatesExact(1)) }, { ProjectileID.Arkhalis, Do(TrueMeleeNoSpeed, ScaleExact(1.25f)) }, { ProjectileID.Bee, Do(PiercingExact(2)) }, @@ -130,6 +131,7 @@ namespace CalamityMod.Projectiles { ProjectileID.ChlorophyteOrb, Do(NoPiercing) }, { ProjectileID.CobaltChainsaw, standardChainsawTweaks }, { ProjectileID.CobaltDrill, standardDrillTweaks }, + { ProjectileID.CobaltNaginata, Do(TrueMelee, LocalIFrames(9)) }, { ProjectileID.CrystalBullet, standardBulletTweaks }, { ProjectileID.CrystalVileShardHead, Do(LocalIFrames(23)) }, { ProjectileID.CrystalVileShardShaft, Do(LocalIFrames(23)) }, @@ -178,6 +180,7 @@ namespace CalamityMod.Projectiles { ProjectileID.MoonlordBullet, standardBulletTweaks }, // Luminite Bullet { ProjectileID.MythrilChainsaw, standardChainsawTweaks }, { ProjectileID.MythrilDrill, standardDrillTweaks }, + { ProjectileID.MythrilHalberd, Do(TrueMelee, LocalIFrames(8)) }, { ProjectileID.NanoBullet, standardBulletTweaks }, { ProjectileID.NebulaDrill, standardDrillTweaks }, { ProjectileID.NebulaLaser, Do(ExtraUpdatesDelta(-1)) }, @@ -218,9 +221,7 @@ namespace CalamityMod.Projectiles #endregion #region CATEGORY 3: True Melee support - { ProjectileID.AdamantiteGlaive, trueMelee }, { ProjectileID.ChlorophyteJackhammer, trueMeleeNoSpeed }, - { ProjectileID.CobaltNaginata, trueMelee }, { ProjectileID.CopperShortswordStab, trueMelee }, { ProjectileID.DarkLance, trueMelee }, { ProjectileID.GoldShortswordStab, trueMelee }, @@ -230,7 +231,6 @@ namespace CalamityMod.Projectiles { ProjectileID.JoustingLance, trueMelee }, { ProjectileID.LeadShortswordStab, trueMelee }, { ProjectileID.MushroomSpear, trueMelee }, - { ProjectileID.MythrilHalberd, trueMelee }, { ProjectileID.NebulaChainsaw, trueMeleeNoSpeed }, { ProjectileID.ObsidianSwordfish, trueMelee }, { ProjectileID.OrichalcumHalberd, trueMelee },