From 0756e9b14fa45cb7c77985cd18bb32ba2ca7eac3 Mon Sep 17 00:00:00 2001 From: Altixal <73398287+Altixal@users.noreply.github.com> Date: Sat, 23 May 2026 23:34:10 +0700 Subject: [PATCH] more assortment of stuff - Buffed Amazon, Anchor, Ball O' Fugu, Breaker Blade, Candy Corn Rifle, Classy Cane, Clockwork Assault Rifle, Cobalt Naginata, Cobalt Repeater, Cobalt Sword, Crackshot Colt, Cutlass, Fates Reveal, Frostbrand, KO Cannon, Orichalcum Repeater, Palladium Repeater, Slag Magnum, Starspawn Helix Staff, The Last Mourning, The Maelstrom, Tundra Flame Blossoms Staff, Unstable Caster's Gauntlet - Nerfed Amber Staff, Bee Keeper, Burnt Sienna, Chain Guillotines, Chlorophyte Partisan, Dart Rifle, Enchanted Boomerang, Enchanted Sword, Meowmere, Muramasa, Swordfish, Thunder Zapper, Veering Wind - Reduced Ark line projectile parry effectiveness to account for the fact most projectiles don't do that much damage anymore - Reverted changes to Starfury stars, now uses the 1.4.4 tile collision style - Caustic Staff dragons spawn less passive dust + reverted shadowflames whoops - Tweaked Face Melter and allowed it to received modifier bonuses on speed (buff) - Applied changes to Marked For Death (effective nerf to Eye of Magnus/buff to Lunic Eye) --- Items/CalamityGlobalItemTooltip.cs | 2 +- Items/CalamityGlobalItemTweaks.cs | 50 +++++++++---------- Items/Weapons/Magic/FaceMelter.cs | 34 ++----------- Items/Weapons/Magic/FatesReveal.cs | 2 +- Items/Weapons/Magic/VeeringWind.cs | 2 +- Items/Weapons/Melee/BallOFugu.cs | 5 +- Items/Weapons/Melee/BurntSienna.cs | 2 +- Items/Weapons/Melee/TheLastMourning.cs | 5 +- Items/Weapons/Ranged/SlagMagnum.cs | 10 ++-- Items/Weapons/Ranged/TheMaelstrom.cs | 2 +- .../Summon/TundraFlameBlossomsStaff.cs | 2 +- .../en-US/Mods.CalamityMod.Buffs.hjson | 4 +- ...Mods.CalamityMod.Items.Weapons.Melee.hjson | 6 +-- ...ods.CalamityMod.Items.Weapons.Summon.hjson | 2 +- NPCs/CalamityGlobalNPC.cs | 10 ++-- Projectiles/CalamityGlobalProjectile.cs | 4 -- Projectiles/CalamityGlobalProjectileTweaks.cs | 6 +-- Projectiles/Magic/AerSigil.cs | 2 +- Projectiles/Magic/AerSigilMissile.cs | 4 +- Projectiles/Magic/AquaSigil.cs | 2 +- Projectiles/Magic/AquaSigilWaterball.cs | 2 +- Projectiles/Magic/IgnisSigil.cs | 2 +- Projectiles/Magic/IgnisSigilFireball.cs | 2 +- Projectiles/Magic/OrdoSigil.cs | 2 +- Projectiles/Magic/PerditoSigilShotCreator.cs | 6 ++- Projectiles/Magic/TerraSigil.cs | 2 +- .../Magic/UnstableCastersGauntletHoldout.cs | 2 +- Projectiles/Magic/WarpSigil.cs | 2 +- .../Melee/ArkOfTheCosmos_ParryHoldout.cs | 6 +-- .../Melee/ArkOfTheElements_ParryHoldout.cs | 6 +-- Projectiles/Melee/MaceFlails/BallOFuguProj.cs | 2 +- Projectiles/Melee/MourningSkull.cs | 45 ++++++++--------- .../TrueArkOfTheAncients_ParryHoldout.cs | 6 +-- Projectiles/Melee/UrchinSpikeFugu.cs | 20 +++++++- Projectiles/Ranged/RicoshotCoin.cs | 19 +++---- Projectiles/Summon/AstralProbeRound.cs | 1 + Projectiles/Summon/AstralProbeSummon.cs | 6 +-- Projectiles/Summon/CausticStaffProjectile.cs | 8 +-- Projectiles/Summon/CausticStaffSummon.cs | 4 +- 39 files changed, 139 insertions(+), 160 deletions(-) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 863e95c498..2a838269db 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -1078,7 +1078,7 @@ namespace CalamityMod.Items if (item.type == ItemID.HiveFive) AddYoyoStats(24f, 320f, 20f); if (item.type == ItemID.JungleYoyo) - AddYoyoStats(20f, 288f, 17f); + AddYoyoStats(24f, 320f, 20f); if (item.type == ItemID.Kraken) AddYoyoStats(-1f, 480f, 54f); if (item.type == ItemID.Rally) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index a5ec41230d..9ed8e64673 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -44,16 +44,15 @@ namespace CalamityMod.Items { ItemID.AdamantiteGlaive, Do(TrueMelee, DamageExact(66), UseExact(7), ShootSpeedExact(18f)) }, // VANILLA: 49 DMG, 25 UT, 5 VEL { ItemID.AdamantiteRepeater, Do(UseExact(14)) }, // VANILLA: 18 UT { ItemID.AdamantiteSword, Do(UseTurn, DamageExact(72), UseExact(7)) }, // VANILLA: 61 DMG, 21 UT - { ItemID.AmberStaff, Do(UseTimeExact(15), UseAnimationExact(45), ReuseDelayExact(15)) }, // VANILLA: 28 UT/UA, 0 RUD + { ItemID.AmberStaff, Do(UseTimeExact(18), UseAnimationExact(36), ReuseDelayExact(15)) }, // VANILLA: 28 UT/UA, 0 RUD { ItemID.AmethystStaff, Do(ManaExact(2)) }, // VANILLA: 5 MANA - { ItemID.Anchor, Do(DamageExact(107), UseExact(30)) }, // VANILLA: 70 DMG, 20 UT + { ItemID.Anchor, Do(DamageExact(107)) }, // VANILLA: 70 DMG { ItemID.AntlionClaw, Do(UseExact(10)) }, // Mandible Blade. VANILLA: 18 UT { ItemID.AquaScepter, Do(DamageRatio(0.9f)) }, // VANILLA: 27 DMG. Uses ratios due to remix seed { ItemID.Bananarang, Do(DamageExact(60)) }, // VANILLA: 45 DMG { ItemID.BatScepter, Do(DamageExact(50)) }, // VANILLA: 45 DMG { ItemID.BeamSword, Do(UseMeleeSpeed, DamageExact(131), UseAnimationExact(40), KnockbackExact(8)) }, // VANILLA: 52 DMG, 20 UT, 6.5 KB { ItemID.BeeGun, Do(DamageExact(11)) }, // VANILLA: 9 DMG - { ItemID.BeeKeeper, Do(UseTurn, DamageExact(32)) }, // VANILLA: 30 DMG { ItemID.Beenade, Do(UseTimeExact(22), ShootSpeedExact(10f)) }, // VANILLA: 15 UT, 6 VEL { ItemID.BeesKnees, Do(DamageExact(21), UseExact(35)) }, // VANILLA: 23 DMG, 23 UT { ItemID.Bladetongue, Do(UseTurn, DamageExact(120), UseExact(22)) }, // VANILLA: 55 DMG, 28 UT @@ -65,20 +64,20 @@ namespace CalamityMod.Items { ItemID.BoneSword, Do(UseTurn, DamageExact(25)) }, // VANILLA: 19 DMG { ItemID.BookofSkulls, Do(ShootSpeedExact(5.5f)) }, // VANILLA: 3.5 VEL { ItemID.Boomstick, Do(DamageExact(11)) }, // VANILLA: 14 DMG - { ItemID.BreakerBlade, Do(UseTurn, DamageExact(140)) }, // VANILLA: 70 DMG - { ItemID.CandyCornRifle, Do(DamageExact(66)) }, // VANILLA: 44 DMG + { ItemID.BreakerBlade, Do(UseTurn, DamageExact(160)) }, // VANILLA: 70 DMG + { ItemID.CandyCornRifle, Do(DamageExact(80)) }, // VANILLA: 44 DMG { ItemID.Cascade, Do(DamageExact(31)) }, // VANILLA: 27 DMG - { ItemID.ChainGuillotines, Do(DamageExact(100)) }, // VANILLA: 59 DMG + { ItemID.ChainGuillotines, Do(DamageExact(75)) }, // VANILLA: 59 DMG { ItemID.ChainGun, Do(DamageExact(35)) }, // VANILLA: 31 DMG { ItemID.ChainKnife, Do(DamageRatio(1.34f)) }, // VANILLA: 12 DMG. Uses ratios due to remix seed { ItemID.ChlorophyteClaymore, Do(UseMeleeSpeed, DamageExact(180), UseExact(45), ShootSpeedExact(22f)) }, // VANILLA: 95 DMG, 26 UT, 8 VEL - { ItemID.ChlorophytePartisan, Do(UseMeleeSpeed, DamageExact(95)) }, // VANILLA: 49 DMG + { ItemID.ChlorophytePartisan, Do(UseMeleeSpeed, DamageExact(80)) }, // VANILLA: 49 DMG { ItemID.ChlorophyteSaber, Do(UseMeleeSpeed, DamageExact(92), UseExact(10)) }, // VANILLA: 57 DMG, 16 UT { ItemID.ChristmasTreeSword, Do(UseTurn, UseMeleeSpeed, DamageExact(80), UseExact(30)) }, // VANILLA: 86 DMG, 23 UT - { ItemID.ClockworkAssaultRifle, Do(DamageExact(21)) }, // VANILLA: 17 DMG - { ItemID.CobaltNaginata, Do(TrueMelee, DamageExact(55), UseExact(9), ShootSpeedExact(12f)) }, // VANILLA: 44 DMG, 28 UT, 4.3 VEL - { ItemID.CobaltRepeater, Do(UseExact(18)) }, // VANILLA: 23 UT - { ItemID.CobaltSword, Do(DamageExact(60), UseExact(9)) }, // VANILLA: 40 DMG, 19 UT + { ItemID.ClockworkAssaultRifle, Do(DamageExact(24)) }, // VANILLA: 17 DMG + { ItemID.CobaltNaginata, Do(TrueMelee, DamageExact(60), UseExact(9), ShootSpeedExact(12f)) }, // VANILLA: 44 DMG, 28 UT, 4.3 VEL + { ItemID.CobaltRepeater, Do(UseExact(17)) }, // VANILLA: 23 UT + { ItemID.CobaltSword, Do(DamageExact(69), UseExact(9)) }, // VANILLA: 40 DMG, 19 UT { ItemID.Code2, Do(DamageExact(43)) }, // VANILLA: 54 DMG { ItemID.CoinGun, Do(UseExact(12)) }, // VANILLA: 8 UT { ItemID.CorruptYoyo, Do(DamageExact(20)) }, // Malaise. VANILLA: 16 DMG @@ -89,11 +88,9 @@ namespace CalamityMod.Items { ItemID.CrystalVileShard, Do(DamageExact(35)) }, // VANILLA: 25 DMG { ItemID.CursedArrow, Do(DamageExact(14)) }, // VANILLA: 17 DMG { ItemID.CursedDart, Do(DamageExact(25)) }, // VANILLA: 9 DMG - { ItemID.Cutlass, Do(DamageExact(90), UseExact(14)) }, // VANILLA: 53 DMG, 16 UT + { ItemID.Cutlass, Do(DamageExact(90), UseExact(11)) }, // VANILLA: 53 DMG, 16 UT { ItemID.DaedalusStormbow, Do(DamageExact(30)) }, // VANILLA: 38 DMG { ItemID.DaoofPow, Do(DamageExact(85)) }, // Displays as 170 damage. VANILLA: 50 DMG (displays as 100) - { ItemID.DarkLance, Do(TrueMelee, DamageExact(40)) }, // VANILLA: 34 DMG - { ItemID.DartRifle, Do(DamageExact(58)) }, // VANILLA: 52 DMG { ItemID.DayBreak, Do(DamageExact(125), UseExact(22)) }, // VANILLA: 150 DMG, 16 UT { ItemID.DD2BetsyBow, Do(DamageExact(42)) }, // Aerial Bane. VANILLA: 39 DMG. Compensation for removing aerial multiplier { ItemID.DD2SquireBetsySword, Do(UseMeleeSpeed, DamageExact(150)) }, // Flying Dragon. VANILLA: 180 DMG @@ -105,8 +102,8 @@ namespace CalamityMod.Items { ItemID.ElfMelter, Do(ShootSpeedDelta(+5f)) }, // VANILLA: 8.5 VEL { ItemID.EmeraldStaff, Do(DamageExact(27)) }, // VANILLA: 19 DMG { ItemID.EmpressBlade, Do(DamageExact(68)) }, // Terraprisma. VANILLA: 90 DMG - { ItemID.EnchantedBoomerang, Do(DamageExact(24)) }, // VANILLA: 17 DMG - { ItemID.EnchantedSword, Do(UseMeleeSpeed, DamageExact(30), ShootSpeedExact(15f)) }, // VANILLA: 23 DMG, 9.5 VEL + { ItemID.EnchantedBoomerang, Do(DamageExact(21)) }, // VANILLA: 17 DMG + { ItemID.EnchantedSword, Do(UseMeleeSpeed) }, { ItemID.EndlessMusketPouch, Do(DamageExact(8)) }, // VANILLA: 7 DMG. Gives it the same damage as Tungsten Bullet { ItemID.Excalibur, Do(TrueMelee, DamageExact(170)) }, // VANILLA: 72 DMG { ItemID.FairyQueenMagicItem, Do(DamageExact(54)) }, // Nightglow. VANILLA: 50 DMG @@ -118,7 +115,7 @@ namespace CalamityMod.Items { ItemID.FlowerofFire, Do(DamageRatio(0.78f)) }, // VANILLA: 48 DMG. Uses ratios due to remix seed { ItemID.FlowerPow, Do(DamageExact(80)) }, // Displays as 160 damage. VANILLA: 65 DMG (displays as 130) { ItemID.FlyingKnife, Do(DamageExact(53)) }, // VANILLA: 40 DMG - { ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(88)) }, // VANILLA: 49 DMG + { ItemID.Frostbrand, Do(UseMeleeSpeed, DamageExact(110)) }, // VANILLA: 49 DMG { ItemID.Gatligator, Do(UseExact(6)) }, // VANILLA: 7 UT { ItemID.GoldShortsword, Do(TrueMelee, DamageExact(17)) }, // VANILLA: 12 DMG { ItemID.GolemFist, Do(DamageExact(150)) }, // VANILLA: 90 DMG @@ -143,7 +140,7 @@ namespace CalamityMod.Items { ItemID.InfluxWaver, Do(UseMeleeSpeed, DamageExact(80), UseExact(25)) }, // VANILLA: 100 DMG, 20 UT { ItemID.IronShortsword, Do(TrueMelee, DamageExact(10)) }, // VANILLA: 8 DMG { ItemID.Keybrand, Do(UseTurn) }, - { ItemID.KOCannon, Do(DamageRatio(2.65f)) }, // VANILLA: 40 DMG. Uses ratios due to remix seed + { ItemID.KOCannon, Do(DamageRatio(3f)) }, // VANILLA: 40 DMG. Uses ratios due to remix seed { ItemID.Kraken, Do(DamageExact(65)) }, // VANILLA: 95 DMG { ItemID.LaserMachinegun, Do(DamageExact(49)) }, // VANILLA: 60 DMG { ItemID.LaserRifle, Do(DamageExact(46)) }, // VANILLA: 29 DMG @@ -156,7 +153,7 @@ namespace CalamityMod.Items { ItemID.MagicMissile, Do(DamageExact(23), UseAnimationExact(20), UseTimeExact(10)) }, // VANILLA: 35 DMG, 22 UT/UA { ItemID.Marrow, Do(DamageExact(60)) }, // VANILLA: 53 DMG { ItemID.MedusaHead, Do(DamageExact(75)) }, // VANILLA: 40 DMG - { ItemID.Meowmere, Do(UseMeleeSpeed, DamageExact(240)) }, // VANILLA: 200 DMG + { ItemID.Meowmere, Do(UseMeleeSpeed) }, { ItemID.MiniNukeI, Do(DamageExact(90)) }, // VANILLA: 75 DMG { ItemID.MiniNukeII, Do(DamageExact(90)) }, { ItemID.Minishark, Do(DamageExact(4)) }, // VANILLA: 6 DMG @@ -166,7 +163,6 @@ namespace CalamityMod.Items { ItemID.MonkStaffT3, Do(DamageExact(225)) }, // Sky Dragon's Fury. VANILLA: 140 DMG { ItemID.MoonlordBullet, Do(DamageExact(17)) }, // Luminite Bullet. VANILLA: 20 DMG { ItemID.MoonlordTurretStaff, Do(DamageExact(50)) }, // Lunar Portal Staff. VANILLA: 100 DMG - { ItemID.Muramasa, Do(CritDelta(+10)) }, // VANILLA: 4% CRIT { ItemID.MushroomSpear, Do(TrueMelee, DamageExact(100), UseExact(32)) }, // VANILLA: 60 DMG, 40 UT { ItemID.Musket, Do(DamageExact(22)) }, // VANILLA: 31 DMG { ItemID.MythrilHalberd, Do(TrueMelee, DamageExact(65), UseExact(8), ShootSpeedExact(15f)) }, // VANILLA: 45 DMG, 26 UT, 4.5 VEL @@ -179,11 +175,11 @@ namespace CalamityMod.Items { ItemID.OrangePhaseblade, phaseblade }, { ItemID.OrangePhasesaber, phasesaber }, { ItemID.OrichalcumHalberd, Do(TrueMelee, DamageExact(128), ShootSpeedExact(6f)) }, // VANILLA: 46 DMG, 4.5 VEL - { ItemID.OrichalcumRepeater, Do(DamageExact(48)) }, // VANILLA: 40 DMG + { ItemID.OrichalcumRepeater, Do(DamageExact(50)) }, // VANILLA: 40 DMG { ItemID.OrichalcumSword, Do(UseTurn, DamageExact(175)) }, // VANILLA: 59 DMG { ItemID.PaladinsHammer, Do(DamageExact(95), ShootSpeedExact(28)) }, // VANILLA: 90 DMG, 14 VEL { ItemID.PalladiumPike, Do(TrueMelee, DamageExact(120), ShootSpeedExact(5.4f)) }, // VANILLA: 44 DMG, 4.4 VEL - { ItemID.PalladiumRepeater, Do(DamageExact(45)) }, // VANILLA: 37 DMG + { ItemID.PalladiumRepeater, Do(DamageExact(48)) }, // VANILLA: 37 DMG { ItemID.PalladiumSword, Do(DamageExact(150)) }, // VANILLA: 49 DMG { ItemID.PearlwoodBow, Do(DamageExact(32)) }, // VANILLA: 12 DMG { ItemID.PearlwoodSword, Do(UseTurn, DamageExact(45)) }, // VANILLA: 30 DMG @@ -232,13 +228,13 @@ namespace CalamityMod.Items { ItemID.SpiritFlame, Do(UseExact(20), ShootSpeedExact(2f)) }, // VANILLA: 22 UT, 3 VEL { ItemID.StaffofEarth, Do(DamageExact(150)) }, // VANILLA: 125 DMG { ItemID.StarCannon, Do(UseExact(18)) }, // VANILLA: 12 UT - { ItemID.StardustDragonStaff, Do(DamageExact(20)) }, // VANILLA: 40 DMG + { ItemID.StardustDragonStaff, Do(DamageExact(24)) }, // VANILLA: 40 DMG { ItemID.StormTigerStaff, Do(DamageExact(49)) }, // Desert Tiger Staff. VANILLA: 41 DMG { ItemID.StylistKilLaKillScissorsIWish, Do(UseTurn, DamageExact(21)) }, // Stylish Scissors. VANILLA: 14 DMG { ItemID.Stynger, Do(DamageExact(75)) }, // VANILLA: 45 DMG - { ItemID.Swordfish, Do(TrueMelee, DamageExact(24)) }, // VANILLA: 19 DMG + { ItemID.Swordfish, Do(TrueMelee, DamageExact(21)) }, // VANILLA: 19 DMG { ItemID.TacticalShotgun, Do(DamageExact(34)) }, // VANILLA: 29 DMG - { ItemID.TaxCollectorsStickOfDoom, Do(UseTurn, DamageExact(70), UseExact(12)) }, // Classy Cane. VANILLA: 16 DMG, 15 UT + { ItemID.TaxCollectorsStickOfDoom, Do(UseTurn, DamageExact(80), UseExact(10)) }, // Classy Cane. VANILLA: 16 DMG, 15 UT { ItemID.TendonBow, Do(DamageExact(17)) }, // VANILLA: 19 DMG { ItemID.TerraBlade, Do(DamageExact(95)) }, // VANILLA: 85 DMG { ItemID.Terragrim, Do(TrueMeleeNoSpeed, DamageExact(13)) }, // VANILLA: 17 DMG @@ -248,7 +244,7 @@ namespace CalamityMod.Items { ItemID.TheRottedFork, Do(TrueMelee, DamageExact(20)) }, // VANILLA: 17 DMG { ItemID.TheUndertaker, Do(DamageExact(15)) }, // VANILLA: 19 DMG { ItemID.ThunderSpear, Do(UseMeleeSpeed) }, // Storm Spear - { ItemID.ThunderStaff, Do(DamageExact(18)) }, // Thunder Zapper. VANILLA: 20 DMG + { ItemID.ThunderStaff, Do(DamageExact(15)) }, // Thunder Zapper. VANILLA: 20 DMG { ItemID.TitaniumRepeater, Do(DamageExact(52)) }, // VANILLA: 43 DMG { ItemID.TitaniumSword, Do(UseTurn, DamageExact(185)) }, // VANILLA: 61 DMG { ItemID.TitaniumTrident, Do(TrueMelee, DamageExact(144), ShootSpeedExact(6.5f)) }, // VANILLA: 48 DMG, 5 VEL @@ -386,6 +382,7 @@ namespace CalamityMod.Items #region CATEGORY 4: True Melee support { ItemID.Arkhalis, trueMeleeNoSpeed }, { ItemID.CopperShortsword, trueMelee }, + { ItemID.DarkLance, trueMelee }, { ItemID.Gladius, trueMelee }, { ItemID.HallowJoustingLance, trueMelee }, { ItemID.JoustingLance, trueMelee }, @@ -402,6 +399,7 @@ namespace CalamityMod.Items #endregion #region CATEGORY 5: UseTurn + { ItemID.BeeKeeper, Do(UseTurn) }, { ItemID.BladeofGrass, Do(UseTurn) }, { ItemID.BloodButcherer, Do(UseTurn) }, { ItemID.BorealWoodSword, Do(UseTurn) }, diff --git a/Items/Weapons/Magic/FaceMelter.cs b/Items/Weapons/Magic/FaceMelter.cs index a2182c7753..58678eb19e 100644 --- a/Items/Weapons/Magic/FaceMelter.cs +++ b/Items/Weapons/Magic/FaceMelter.cs @@ -20,8 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic Item.damage = 130; Item.DamageType = DamageClass.Magic; Item.mana = 14; - Item.useTime = 5; - Item.useAnimation = 10; + Item.useAnimation = Item.useTime = 10; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 5f; @@ -40,21 +39,6 @@ namespace CalamityMod.Items.Weapons.Magic public override bool AltFunctionUse(Player player) => true; - public override bool CanUseItem(Player player) - { - if (player.altFunctionUse == 2) - { - Item.useTime = 20; - Item.useAnimation = 20; - } - else - { - Item.useTime = 5; - Item.useAnimation = 10; - } - return base.CanUseItem(player); - } - public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { if (player.altFunctionUse == 2) @@ -64,19 +48,9 @@ namespace CalamityMod.Items.Weapons.Magic } else { - int note = Main.rand.Next(2); - if (note == 0) - { - damage = (int)(damage * 1.5f); - type = ModContent.ProjectileType(); - } - else - { - velocity.X *= 1.5f; - velocity.Y *= 1.5f; - type = ModContent.ProjectileType(); - } - Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); + Vector2 offset = velocity.SafeNormalize(Vector2.UnitX) * 8f; + Projectile.NewProjectile(source, position + offset.RotatedBy(MathHelper.PiOver2), velocity, type, (int)(damage * 1.5f), knockback, player.whoAmI); + Projectile.NewProjectile(source, position + offset.RotatedBy(-MathHelper.PiOver2), velocity * 1.5f, ModContent.ProjectileType(), damage, knockback, player.whoAmI); return false; } } diff --git a/Items/Weapons/Magic/FatesReveal.cs b/Items/Weapons/Magic/FatesReveal.cs index b89d9b77dd..4250819277 100644 --- a/Items/Weapons/Magic/FatesReveal.cs +++ b/Items/Weapons/Magic/FatesReveal.cs @@ -65,7 +65,7 @@ namespace CalamityMod.Items.Weapons.Magic } realPlayerPos += new Vector2(mouseXDist, mouseYDist); - int numProjectiles = 5; + int numProjectiles = 6; for (int i = 0; i < numProjectiles; i++) { realPlayerPos.X += (float)Main.rand.Next(-100, 101); diff --git a/Items/Weapons/Magic/VeeringWind.cs b/Items/Weapons/Magic/VeeringWind.cs index 63c8f0dcad..f3bba20cc4 100644 --- a/Items/Weapons/Magic/VeeringWind.cs +++ b/Items/Weapons/Magic/VeeringWind.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic { Item.width = 28; Item.height = 32; - Item.damage = 19; + Item.damage = 16; Item.DamageType = DamageClass.Magic; Item.mana = 14; Item.useAnimation = Item.useTime = 36; diff --git a/Items/Weapons/Melee/BallOFugu.cs b/Items/Weapons/Melee/BallOFugu.cs index 475588999f..a132edf541 100644 --- a/Items/Weapons/Melee/BallOFugu.cs +++ b/Items/Weapons/Melee/BallOFugu.cs @@ -16,10 +16,9 @@ namespace CalamityMod.Items.Weapons.Melee { Item.width = 30; Item.height = 10; - Item.damage = 28; + Item.damage = 25; Item.DamageType = DamageClass.MeleeNoSpeed; - Item.useTime = 20; - Item.useAnimation = 20; + Item.useAnimation = Item.useTime = 20; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.noUseGraphic = true; diff --git a/Items/Weapons/Melee/BurntSienna.cs b/Items/Weapons/Melee/BurntSienna.cs index d290ff5246..886968018d 100644 --- a/Items/Weapons/Melee/BurntSienna.cs +++ b/Items/Weapons/Melee/BurntSienna.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.height = 54; Item.damage = 32; Item.DamageType = DamageClass.Melee; - Item.useAnimation = Item.useTime = 21; + Item.useAnimation = Item.useTime = 24; Item.useTurn = true; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 5.5f; diff --git a/Items/Weapons/Melee/TheLastMourning.cs b/Items/Weapons/Melee/TheLastMourning.cs index ee6e286544..615a5ccb20 100644 --- a/Items/Weapons/Melee/TheLastMourning.cs +++ b/Items/Weapons/Melee/TheLastMourning.cs @@ -18,10 +18,9 @@ namespace CalamityMod.Items.Weapons.Melee Item.width = 94; Item.height = 94; Item.DamageType = DamageClass.Melee; - Item.damage = 550; + Item.damage = 600; Item.knockBack = 8.5f; - Item.useAnimation = 20; - Item.useTime = 20; + Item.useAnimation = Item.useTime = 20; Item.autoReuse = true; Item.useTurn = true; diff --git a/Items/Weapons/Ranged/SlagMagnum.cs b/Items/Weapons/Ranged/SlagMagnum.cs index 6c3656b312..d2114fab15 100644 --- a/Items/Weapons/Ranged/SlagMagnum.cs +++ b/Items/Weapons/Ranged/SlagMagnum.cs @@ -14,10 +14,9 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 58; Item.height = 24; - Item.damage = 24; + Item.damage = 36; Item.DamageType = DamageClass.Ranged; - Item.useTime = 15; - Item.useAnimation = 15; + Item.useAnimation = Item.useTime = 15; Item.useStyle = ItemUseStyleID.Shoot; Item.noMelee = true; Item.knockBack = 4f; @@ -30,10 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.useAmmo = AmmoID.Bullet; } - public override Vector2? HoldoutOffset() - { - return new Vector2(-10, 0); - } + public override Vector2? HoldoutOffset() => new Vector2(-10, 0); public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { diff --git a/Items/Weapons/Ranged/TheMaelstrom.cs b/Items/Weapons/Ranged/TheMaelstrom.cs index d84ae38408..72066dce71 100644 --- a/Items/Weapons/Ranged/TheMaelstrom.cs +++ b/Items/Weapons/Ranged/TheMaelstrom.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged { Item.width = 20; Item.height = 12; - Item.damage = 530; + Item.damage = 550; Item.useTime = 45; Item.useAnimation = 45; Item.useStyle = ItemUseStyleID.Shoot; diff --git a/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs b/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs index 5725ba1b3d..c694415713 100644 --- a/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs +++ b/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Summon { Item.width = 50; Item.height = 60; - Item.damage = 40; + Item.damage = 56; Item.mana = 10; Item.useAnimation = Item.useTime = 36; Item.useStyle = ItemUseStyleID.Swing; diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 6c163a44d0..1f7610b55d 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1184,8 +1184,8 @@ Irradiated: { MarkedforDeath: { DisplayName: Marked for Death - Description: Damage reduction reduced - ItemTooltipEnemy: Damage reduction is 50% less effective + Description: Increased damage taken + ItemTooltipEnemy: Enemies take 1.1x damage } PearlAura: { diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 0a2152a8e6..628d3fc69c 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -88,7 +88,7 @@ ArkoftheCosmos: { ''' to snip out the scissor blades in front of you Hitting an enemy with it will parry them, granting you brief invulnerability - You can also parry projectiles to make them deal 160 less damage for a short period + You can also parry projectiles to make them deal 120 less damage for a short period Parrying will empower the next 16 swings of the sword ''' BlastInfo: Double with charges available to cause a Big Rip in spacetime and consume all charges @@ -111,7 +111,7 @@ ArkoftheElements: { ''' to snip out the scissor blades in front of you Hitting an enemy with it will parry them, granting you brief invulnerability - You can parry projectiles to make them deal 100 less damage for a short period + You can parry projectiles to make them deal 60 less damage for a short period Parrying will empower the next 10 swings of the sword, letting you use both blades at once ''' } @@ -1430,7 +1430,7 @@ TrueArkoftheAncients: { ''' to extend the Ark out in front of you Hitting an enemy with it will parry them, granting you brief invulnerability - You can also parry projectiles to make them deal 80 less damage for a short period + You can also parry projectiles to make them deal 30 less damage for a short period Parrying will empower the next 10 swings of the sword, letting it throw stronger projectiles ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index b88145d1a4..5da1beeaa2 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -149,7 +149,7 @@ CausticStaff: { ''' Always inflicts [cbuff:OnFire3] Inflicts [cbuff:CursedInferno] with 2 dragons summoned - Inflicts [cbuff:CalamityMod/Shadowflame] and [cbuff:Venom] with 3 dragons summoned + Inflicts [cbuff:Venom] with 3 dragons summoned Inflicts [cbuff:Ichor] and [cbuff:CalamityMod/MarkedforDeath] with 4 dragons summoned ''' } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 953fefffea..9304ab2984 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -2796,7 +2796,7 @@ namespace CalamityMod.NPCs // Apply armor penetration based on Calamity debuffs. The hit system manages the sequencing. // Ozzatron 05JAN2023: fixed doubled armor pen, this time for real - int defenseReduction = (markedForDeath && DR <= 0f ? MarkedforDeath.DefenseReduction : 0) + (wither ? RemsRevenge.WitherDefenseReduction : 0) + miscDefenseLoss; + int defenseReduction = (wither ? RemsRevenge.WitherDefenseReduction : 0) + miscDefenseLoss; modifiers.ArmorPenetration += defenseReduction; // DR applies after vanilla defense. @@ -2872,8 +2872,6 @@ namespace CalamityMod.NPCs private float ApplyDRReduction(NPC npc, float DR) { float calcDR = DR; - if (markedForDeath) - calcDR *= 0.5f; if (absorberAffliction) calcDR *= 0.8f; if (npc.Calamity().armorCrunch) @@ -3667,6 +3665,9 @@ namespace CalamityMod.NPCs public override void ModifyHitByItem(NPC npc, Player player, Item item, ref NPC.HitModifiers modifiers) { CalamityPlayer modPlayer = player.Calamity(); + if (markedForDeath) + modifiers.SourceDamage *= 1.1f; + if (modPlayer.camper && !player.StandingStill()) modifiers.SourceDamage *= 0.5f; @@ -3854,6 +3855,9 @@ namespace CalamityMod.NPCs modifiers.SourceDamage *= 0.33f; } + if (markedForDeath) + modifiers.SourceDamage *= 1.1f; + if (modPlayer.camper && !player.StandingStill()) modifiers.SourceDamage *= 0.5f; diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 864ce38552..f41b443bd0 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -3969,10 +3969,6 @@ namespace CalamityMod.Projectiles } #endregion - // Starfury stars never collide with tiles - if (projectile.type == ProjectileID.Starfury) - projectile.tileCollide = false; - // True Night's Edge projectiles instantly start with max velocity if (projectile.type == ProjectileID.TrueNightsEdge) { diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index ca674a3789..072e1ddb65 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles { ProjectileID.HiveFive, RebalanceYoyo(24f, 320f, 20f, 0, 15) }, // original: 8s lifetime | 215px range | 13px/f top speed | 0 extra updates - { ProjectileID.JungleYoyo, RebalanceYoyo(20f, 288f, 17f, 0, 20) }, // Amazon + { ProjectileID.JungleYoyo, RebalanceYoyo(24f, 320f, 20f, 0, 20) }, // Amazon // original: INF lifetime | 340px range | 16px/f top speed | 0 extra updates { ProjectileID.Kraken, RebalanceYoyo(-1f, 480f, 54f, 2) }, @@ -200,12 +200,11 @@ namespace CalamityMod.Projectiles { ProjectileID.Shroomerang, Do(ExtraUpdatesExact(1), DefaultIDStaticIFrames) }, { ProjectileID.SolarFlareDrill, standardDrillTweaks }, { ProjectileID.StardustDrill, standardDrillTweaks }, - { ProjectileID.Starfury, Do(TimeLeftExact(75), DefaultIDStaticIFrames) }, { ProjectileID.StarWrath, Do(NoPiercing) }, { ProjectileID.Sunfury, Do(ExtraUpdatesExact(1)) }, { ProjectileID.SwordBeam, Do(ExtraUpdatesExact(2), DefaultIDStaticIFrames) }, // Beam Sword projectile { ProjectileID.Terragrim, Do(TrueMeleeNoSpeed, ScaleExact(1.25f), IDStaticIFrames(5)) }, // Has an exception in Vanilla iframe code, uses 5 iframes - { ProjectileID.ThunderStaffShot, Do(PiercingExact(3), DefaultIDStaticIFrames) }, //Thunder Zapper projectile + { ProjectileID.ThunderStaffShot, Do(PiercingExact(2), DefaultIDStaticIFrames) }, //Thunder Zapper projectile { ProjectileID.TitaniumChainsaw, standardChainsawTweaks }, { ProjectileID.TitaniumDrill, standardDrillTweaks }, { ProjectileID.Trimarang, Do(ExtraUpdatesExact(1), DefaultIDStaticIFrames) }, @@ -555,6 +554,7 @@ namespace CalamityMod.Projectiles { ProjectileID.Stake, defaultIFrames }, { ProjectileID.StarAnise, defaultIFrames }, { ProjectileID.StarCannonStar, defaultIFrames }, + { ProjectileID.Starfury, defaultIFrames }, { ProjectileID.StardustCellMinion, defaultIFrames }, { ProjectileID.StardustGuardianExplosion, defaultIFrames }, { ProjectileID.StickyBomb, defaultIFrames }, diff --git a/Projectiles/Magic/AerSigil.cs b/Projectiles/Magic/AerSigil.cs index 5af08db9b2..84d5bdc46a 100644 --- a/Projectiles/Magic/AerSigil.cs +++ b/Projectiles/Magic/AerSigil.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Magic Vector2 targetDirection = Projectile.Center.DirectionTo(Main.MouseWorld).SafeNormalize(Vector2.UnitX); spawnedProjectile = true; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, targetDirection * 48f, ModContent.ProjectileType(), Projectile.damage * 2, Projectile.knockBack, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, targetDirection * 36f, ModContent.ProjectileType(), Projectile.damage * 3, Projectile.knockBack, Projectile.owner); } if (Projectile.localAI[0] >= 50) diff --git a/Projectiles/Magic/AerSigilMissile.cs b/Projectiles/Magic/AerSigilMissile.cs index a97417bf7b..b75cdb3981 100644 --- a/Projectiles/Magic/AerSigilMissile.cs +++ b/Projectiles/Magic/AerSigilMissile.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.penetrate = 1; Projectile.alpha = 255; Projectile.timeLeft = 420; - Projectile.usesLocalNPCImmunity = true; + Projectile.MaxUpdates = 2; // Makes trail draw right away for (int i = 0; i < Projectile.oldPos.Length; i++) @@ -111,7 +111,7 @@ namespace CalamityMod.Projectiles.Magic if (Projectile.owner == Main.myPlayer) { - Projectile explosion = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 4.25f), Projectile.knockBack * 6, Projectile.owner); + Projectile explosion = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage * 2, Projectile.knockBack * 6, Projectile.owner); explosion.ai[1] = 600f; explosion.localAI[1] = Main.rand.NextFloat(0.1f, 0.2f); // Interpolate explosion.netUpdate = true; diff --git a/Projectiles/Magic/AquaSigil.cs b/Projectiles/Magic/AquaSigil.cs index 45a03ce786..e1cfeafec8 100644 --- a/Projectiles/Magic/AquaSigil.cs +++ b/Projectiles/Magic/AquaSigil.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Magic Vector2 targetDirection = Projectile.Center.DirectionTo(Main.MouseWorld).SafeNormalize(Vector2.UnitX); spawnedProjectile = true; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, targetDirection * 29f, ModContent.ProjectileType(), Projectile.damage * 2, Projectile.knockBack, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, targetDirection * 32f, ModContent.ProjectileType(), Projectile.damage * 2, Projectile.knockBack, Projectile.owner); } if (Projectile.localAI[0] >= 50) diff --git a/Projectiles/Magic/AquaSigilWaterball.cs b/Projectiles/Magic/AquaSigilWaterball.cs index 3b37d92670..12df9f41e4 100644 --- a/Projectiles/Magic/AquaSigilWaterball.cs +++ b/Projectiles/Magic/AquaSigilWaterball.cs @@ -121,7 +121,7 @@ namespace CalamityMod.Projectiles.Magic if (Projectile.owner == Main.myPlayer) { - Projectile explosion = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center + (new Vector2(-26, 0).RotatedBy(Projectile.rotation - MathHelper.PiOver2)), Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 3.85f), Projectile.knockBack, Projectile.owner); + Projectile explosion = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center + (new Vector2(-26, 0).RotatedBy(Projectile.rotation - MathHelper.PiOver2)), Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 3.5f), Projectile.knockBack, Projectile.owner); explosion.ai[1] = 260f;                 explosion.localAI[1] = Main.rand.NextFloat(0.1f, 0.2f); // Interpolate                 explosion.netUpdate = true; diff --git a/Projectiles/Magic/IgnisSigil.cs b/Projectiles/Magic/IgnisSigil.cs index c3d022a7f5..e12591bd45 100644 --- a/Projectiles/Magic/IgnisSigil.cs +++ b/Projectiles/Magic/IgnisSigil.cs @@ -50,7 +50,7 @@ namespace CalamityMod.Projectiles.Magic Vector2 targetDirection = Projectile.Center.DirectionTo(Main.MouseWorld).SafeNormalize(Vector2.UnitX); spawnedProjectile = true; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, targetDirection * 34f, ModContent.ProjectileType(), Projectile.damage * 2, Projectile.knockBack, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, targetDirection * 50f, ModContent.ProjectileType(), Projectile.damage * 5, Projectile.knockBack, Projectile.owner); } if (Projectile.localAI[0] >= 50) diff --git a/Projectiles/Magic/IgnisSigilFireball.cs b/Projectiles/Magic/IgnisSigilFireball.cs index c3187cd90c..dc23785024 100644 --- a/Projectiles/Magic/IgnisSigilFireball.cs +++ b/Projectiles/Magic/IgnisSigilFireball.cs @@ -145,7 +145,7 @@ namespace CalamityMod.Projectiles.Magic if (Projectile.owner == Main.myPlayer) { - Projectile explosion = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center + (new Vector2(-26, 0).RotatedBy(Projectile.rotation - MathHelper.PiOver2)), Vector2.Zero, ModContent.ProjectileType(), (int) (Projectile.damage * 3.35f), Projectile.knockBack, Projectile.owner); + Projectile explosion = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center + (new Vector2(-26, 0).RotatedBy(Projectile.rotation - MathHelper.PiOver2)), Vector2.Zero, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); explosion.ai[1] = 145f; explosion.localAI[1] = Main.rand.NextFloat(0.1f, 0.2f); // Interpolate                 explosion.netUpdate = true; diff --git a/Projectiles/Magic/OrdoSigil.cs b/Projectiles/Magic/OrdoSigil.cs index 27717cd24b..6391564561 100644 --- a/Projectiles/Magic/OrdoSigil.cs +++ b/Projectiles/Magic/OrdoSigil.cs @@ -52,7 +52,7 @@ namespace CalamityMod.Projectiles.Magic Vector2 targetDirection = Projectile.Center.DirectionTo(Main.MouseWorld).SafeNormalize(Vector2.UnitX); spawnedProjectile = true; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, targetDirection * 18f, ModContent.ProjectileType(), (int) (Projectile.damage * 4.5f), Projectile.knockBack, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, targetDirection * 18f, ModContent.ProjectileType(), Projectile.damage * 6, Projectile.knockBack, Projectile.owner); } if (Projectile.localAI[0] >= 50) diff --git a/Projectiles/Magic/PerditoSigilShotCreator.cs b/Projectiles/Magic/PerditoSigilShotCreator.cs index e04665bd0c..e4f72837da 100644 --- a/Projectiles/Magic/PerditoSigilShotCreator.cs +++ b/Projectiles/Magic/PerditoSigilShotCreator.cs @@ -13,8 +13,8 @@ namespace CalamityMod.Projectiles.Magic public ref float FiringTimer => ref Projectile.ai[0]; public ref float ShotsFiredCount => ref Projectile.ai[1]; - private const int TotalShots = 13; - private const int DelayBetweenShots = 4; + private const int TotalShots = 18; + private const int DelayBetweenShots = 3; private const float ShotSpeed = 17f; private const float SpawnRadius = 150f; // Radius around the cursor where shots spawn @@ -61,5 +61,7 @@ namespace CalamityMod.Projectiles.Magic Projectile.Kill(); } } + + public override bool? CanDamage() => false; } } diff --git a/Projectiles/Magic/TerraSigil.cs b/Projectiles/Magic/TerraSigil.cs index 578d0d49f9..e9838cd000 100644 --- a/Projectiles/Magic/TerraSigil.cs +++ b/Projectiles/Magic/TerraSigil.cs @@ -50,7 +50,7 @@ namespace CalamityMod.Projectiles.Magic Vector2 targetDirection = Projectile.Center.DirectionTo(Main.MouseWorld).SafeNormalize(Vector2.UnitX); spawnedProjectile = true; - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, targetDirection * 32f, ModContent.ProjectileType(), Projectile.damage * 2, Projectile.knockBack, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, targetDirection * 32f, ModContent.ProjectileType(), Projectile.damage * 3, Projectile.knockBack, Projectile.owner); } if (Projectile.localAI[0] >= 50) diff --git a/Projectiles/Magic/UnstableCastersGauntletHoldout.cs b/Projectiles/Magic/UnstableCastersGauntletHoldout.cs index 5c2a940d07..e54fd5f2bc 100644 --- a/Projectiles/Magic/UnstableCastersGauntletHoldout.cs +++ b/Projectiles/Magic/UnstableCastersGauntletHoldout.cs @@ -150,7 +150,7 @@ namespace CalamityMod.Projectiles.Magic // Spawn needle if (Main.myPlayer == Projectile.owner) - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, (Projectile.velocity * 35f).RotatedBy(Main.rand.NextFloat(-0.07f, 0.07f)), ModContent.ProjectileType(), (int) (Projectile.damage * 0.8f), Projectile.knockBack, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, (Projectile.velocity * 35f).RotatedBy(Main.rand.NextFloat(-0.07f, 0.07f)), ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); shootingTimer = 0f; } else diff --git a/Projectiles/Magic/WarpSigil.cs b/Projectiles/Magic/WarpSigil.cs index 191ff61d2e..20555dd70f 100644 --- a/Projectiles/Magic/WarpSigil.cs +++ b/Projectiles/Magic/WarpSigil.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Magic if (Projectile.localAI[0] >= 25 && !spawnedProjectile) { // ai[1] and ai[2] will inherit this sigil's position and timeLeft as its own - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Main.MouseWorld, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, 0, Projectile.whoAmI, Projectile.timeLeft); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Main.MouseWorld, Vector2.Zero, ModContent.ProjectileType(), (int)(Projectile.damage * 1.5f), Projectile.knockBack, Projectile.owner, 0, Projectile.whoAmI, Projectile.timeLeft); spawnedProjectile = true; } diff --git a/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs b/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs index ed61618cec..89be812015 100644 --- a/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs +++ b/Projectiles/Melee/ArkOfTheCosmos_ParryHoldout.cs @@ -147,9 +147,9 @@ namespace CalamityMod.Projectiles.Melee Owner.velocity += Utils.SafeNormalize(Owner.Center - proj.Center, Vector2.Zero) * 2; } - //Reduce the projectile's damage by 160 for a second. - if (proj.Calamity().flatDR < 160) - proj.Calamity().flatDR = 160; + //Reduce the projectile's damage by 120 for a second. + if (proj.Calamity().flatDR < 120) + proj.Calamity().flatDR = 120; if (proj.Calamity().flatDRTimer < 60) proj.Calamity().flatDRTimer = 60; break; diff --git a/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs b/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs index 65c40923ae..61b280bfe1 100644 --- a/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs +++ b/Projectiles/Melee/ArkOfTheElements_ParryHoldout.cs @@ -146,9 +146,9 @@ namespace CalamityMod.Projectiles.Melee Owner.velocity += Utils.SafeNormalize(Owner.Center - proj.Center, Vector2.Zero) * 2; } - //Reduce the projectile's damage by 100 for a second. - if (proj.Calamity().flatDR < 100) - proj.Calamity().flatDR = 100; + //Reduce the projectile's damage by 60 for a second. + if (proj.Calamity().flatDR < 60) + proj.Calamity().flatDR = 60; if (proj.Calamity().flatDRTimer < 60) proj.Calamity().flatDRTimer = 60; break; diff --git a/Projectiles/Melee/MaceFlails/BallOFuguProj.cs b/Projectiles/Melee/MaceFlails/BallOFuguProj.cs index 75fda7e3a0..623ec31bbe 100644 --- a/Projectiles/Melee/MaceFlails/BallOFuguProj.cs +++ b/Projectiles/Melee/MaceFlails/BallOFuguProj.cs @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Melee.MaceFlails { Vector2 velocity = Projectile.DirectionFrom(Owner.MountedCenter).SafeNormalize(Vector2.Zero).RotatedByRandom(MathHelper.ToRadians(15f)) * Main.rand.NextFloat(4.5f, 6.5f); Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType(), (int)(Projectile.damage * SpikeDamage), Projectile.knockBack * SpikeKnockback, Projectile.owner); - SpikeTimer = MaxSpikeTime + Main.rand.Next(5); + SpikeTimer = MaxSpikeTime + Main.rand.Next((int)SpikeRate - 3); } base.SpinAI(launchSpeed); } diff --git a/Projectiles/Melee/MourningSkull.cs b/Projectiles/Melee/MourningSkull.cs index a6dd1f7b10..4e2c3c3295 100644 --- a/Projectiles/Melee/MourningSkull.cs +++ b/Projectiles/Melee/MourningSkull.cs @@ -23,7 +23,9 @@ namespace CalamityMod.Projectiles.Melee Projectile.height = 26; Projectile.friendly = true; Projectile.DamageType = DamageClass.Melee; - Projectile.penetrate = 1; + Projectile.penetrate = 5; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; Projectile.timeLeft = 600; Projectile.alpha = 255; Projectile.tileCollide = false; @@ -59,38 +61,33 @@ namespace CalamityMod.Projectiles.Melee if (Projectile.ai[0] >= 0f && Projectile.ai[0] < 200f) { - int npcTracker = (int)Projectile.ai[0]; - if (Main.npc[npcTracker].active) - { - Vector2 projPos = Projectile.Center; - float npcXDist = Main.npc[npcTracker].position.X - projPos.X; - float npcYDist = Main.npc[npcTracker].position.Y - projPos.Y; - float npcDistance = (float)Math.Sqrt((double)(npcXDist * npcXDist + npcYDist * npcYDist)); - npcDistance = 8f / npcDistance; - npcXDist *= npcDistance; - npcYDist *= npcDistance; - Projectile.velocity.X = (Projectile.velocity.X * 14f + npcXDist) / 15f; - Projectile.velocity.Y = (Projectile.velocity.Y * 14f + npcYDist) / 15f; - } + NPC potentialTarget = null; + if (Main.npc[(int)Projectile.ai[0]].active && Projectile.localNPCImmunity[(int)Projectile.ai[0]] == 0) + potentialTarget = Main.npc[(int)Projectile.ai[0]]; else { - float homingRange = 1000f; - foreach (NPC n in Main.ActiveNPCs) + float range = 1600f; + foreach (NPC target in Main.ActiveNPCs) { - if (n.CanBeChasedBy(Projectile, false)) + if (target.CanBeChasedBy(Projectile) && Projectile.localNPCImmunity[target.whoAmI] == 0) { - float targetX = n.position.X + (float)(n.width / 2); - float targetY = n.position.Y + (float)(n.height / 2); - float targetDist = Math.Abs(Projectile.position.X + (float)(Projectile.width / 2) - targetX) + Math.Abs(Projectile.position.Y + (float)(Projectile.height / 2) - targetY); - if (targetDist < homingRange && Collision.CanHit(Projectile.position, Projectile.width, Projectile.height, n.position, n.width, n.height)) + float distance = Vector2.Distance(target.Center, Projectile.Center); + if (distance < range) { - homingRange = targetDist; - Projectile.ai[0] = (float)n.whoAmI; + range = distance; + potentialTarget = target; } } } } + if (potentialTarget != null) + { + Projectile.alpha = 0; + Vector2 idealVelocity = Projectile.SafeDirectionTo(potentialTarget.Center) * 18f; + Projectile.velocity = (Projectile.velocity * 14f + idealVelocity) / 15f; + } + if (Projectile.velocity.X < 0f) { Projectile.spriteDirection = -1; @@ -154,7 +151,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(BuffID.Daybreak, 300); - if (Projectile.owner == Main.myPlayer) + if (Projectile.owner == Main.myPlayer && Projectile.numHits == 0) { for (int k = 0; k < 2; k++) { diff --git a/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs b/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs index 0f208bdc5b..32fbc7def3 100644 --- a/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs +++ b/Projectiles/Melee/TrueArkOfTheAncients_ParryHoldout.cs @@ -128,9 +128,9 @@ namespace CalamityMod.Projectiles.Melee { GeneralParryEffects(); - //Reduce the projectile's damage by 80 for a second. - if (proj.Calamity().flatDR < 80) - proj.Calamity().flatDR = 80; + //Reduce the projectile's damage by 30 for a second. + if (proj.Calamity().flatDR < 30) + proj.Calamity().flatDR = 30; if (proj.Calamity().flatDRTimer < 60) proj.Calamity().flatDRTimer = 60; diff --git a/Projectiles/Melee/UrchinSpikeFugu.cs b/Projectiles/Melee/UrchinSpikeFugu.cs index 36866784f2..d17af1ef6e 100644 --- a/Projectiles/Melee/UrchinSpikeFugu.cs +++ b/Projectiles/Melee/UrchinSpikeFugu.cs @@ -28,7 +28,9 @@ namespace CalamityMod.Projectiles.Melee Projectile.DamageType = DamageClass.MeleeNoSpeed; Projectile.ignoreWater = true; Projectile.alpha = 255; - Projectile.penetrate = 1; + Projectile.penetrate = 2; + Projectile.usesLocalNPCImmunity = true; + Projectile.localNPCHitCooldown = -1; Projectile.timeLeft = 90; Projectile.noEnchantments = true; } @@ -39,7 +41,21 @@ namespace CalamityMod.Projectiles.Melee Projectile.rotation = Projectile.velocity.ToRotation(); Projectile.alpha = (int)Utils.Remap(Time, 0f, 12f, 255f, 0f); - NPC potentialTarget = Projectile.Center.ClosestNPCAt(256f); + NPC potentialTarget = null; + float range = 256f; + foreach (NPC target in Main.ActiveNPCs) + { + if (target.CanBeChasedBy(Projectile) && Projectile.localNPCImmunity[target.whoAmI] == 0) + { + float distance = Vector2.Distance(target.Center, Projectile.Center); + if (distance < range) + { + range = distance; + potentialTarget = target; + } + } + } + if (potentialTarget != null && Time >= 12f) { Vector2 idealVelocity = Projectile.SafeDirectionTo(potentialTarget.Center) * 12f; diff --git a/Projectiles/Ranged/RicoshotCoin.cs b/Projectiles/Ranged/RicoshotCoin.cs index f8f2a35d1e..d8471f6b5e 100644 --- a/Projectiles/Ranged/RicoshotCoin.cs +++ b/Projectiles/Ranged/RicoshotCoin.cs @@ -34,21 +34,22 @@ namespace CalamityMod.Projectiles.Ranged // Because ricoshots have slight frame delays for dramatic effect, setting this too high will make them miss hilariously. public static float SuperpredictionRatio = 0.1f; - // The first copper coin struck adds +70% damage. Copper coins beyond the first add +20% damage. - // Maximum: 4 copper coins = +130% + // The first copper coin struck adds +125% damage. Copper coins beyond the first add +25% damage. + // Maximum: 4 copper coins = +200% // - // The copper numbers are intentionally significantly lower because Crackshot Colt is pre-boss. - // That, and the mechanic will always be available because they're dirt cheap. Killing a single enemy lets you perform dozens more ricoshots. - public static float CopperBonus = 0.7f; - public static float CopperMulticoinBonus = 0.2f; + // Cost is virtually unaccounted for as even in early game, 4 copper coins is dirt cheap. + // Despite this, the gimmick exclusively used for early game Crackshot Colt needs to not be outperformed by just firing normally. + // Therefore, its bonuses cannot drop much lower than this despite being significantly cheaper. + public static float CopperBonus = 1.25f; + public static float CopperMulticoinBonus = 0.25f; - // The first silver coin struck adds +150% damage. Silver coins beyond the first add +50% damage. - // Maximum: 4 silver coins = +300% + // The first silver coin struck adds +175% damage. Silver coins beyond the first add +50% damage. + // Maximum: 4 silver coins = +325% // // Midas Prime uses coins from the piggy bank, so you will almost always be using gold. // Silver is not much worse than gold, because if you're broke and can't use gold you shouldn't be significantly penalized. // However, spending multiple silver on a multi-ricoshot is not too expensive, so the multicoin bonus is much lower. - public static float SilverBonus = 1.5f; + public static float SilverBonus = 1.75f; public static float SilverMulticoinBonus = 0.5f; // The first gold coin struck adds +200% damage. Gold coins beyond the first add +85% damage. diff --git a/Projectiles/Summon/AstralProbeRound.cs b/Projectiles/Summon/AstralProbeRound.cs index bc9ba0db92..b931e2f6fe 100644 --- a/Projectiles/Summon/AstralProbeRound.cs +++ b/Projectiles/Summon/AstralProbeRound.cs @@ -31,6 +31,7 @@ namespace CalamityMod.Projectiles.Summon Projectile.alpha = 125; Projectile.DamageType = DamageClass.Summon; + Projectile.MaxUpdates = 4; Projectile.netImportant = true; Projectile.friendly = true; Projectile.ignoreWater = true; diff --git a/Projectiles/Summon/AstralProbeSummon.cs b/Projectiles/Summon/AstralProbeSummon.cs index 3abb483622..0607161dbc 100644 --- a/Projectiles/Summon/AstralProbeSummon.cs +++ b/Projectiles/Summon/AstralProbeSummon.cs @@ -134,9 +134,9 @@ namespace CalamityMod.Projectiles.Summon { if (target != null && Main.myPlayer == Projectile.owner) { - if (TimerForShooting == 80f) + if (TimerForShooting == 60f) { - Vector2 velocity = CalamityUtils.CalculatePredictiveAimToTarget(Projectile.Center, target, 35f); + Vector2 velocity = CalamityUtils.CalculatePredictiveAimToTarget(Projectile.Center, target, 25f); Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner); @@ -146,7 +146,7 @@ namespace CalamityMod.Projectiles.Summon Projectile.netUpdate = true; } - if (TimerForShooting < 80f) + if (TimerForShooting < 60f) TimerForShooting++; } } diff --git a/Projectiles/Summon/CausticStaffProjectile.cs b/Projectiles/Summon/CausticStaffProjectile.cs index 4a21d96288..2b6874179d 100644 --- a/Projectiles/Summon/CausticStaffProjectile.cs +++ b/Projectiles/Summon/CausticStaffProjectile.cs @@ -29,8 +29,7 @@ namespace CalamityMod.Projectiles.Summon } public override void AI() { - int fire = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, GetDust(MinionCount), 0f, 0f, 0, default, 0.5f); - Dust dust = Main.dust[fire]; + Dust dust = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, GetDust(MinionCount), 0f, 0f, 0, default, 0.5f); dust.velocity *= 0.1f; dust.scale = 1.3f; dust.noGravity = true; @@ -52,7 +51,7 @@ namespace CalamityMod.Projectiles.Summon if (type >= 4f && Main.rand.NextBool(5)) return DustID.IchorTorch; if (type >= 3f && Main.rand.NextBool(4)) - return DustID.Shadowflame; + return DustID.VenomStaff; if (type >= 2f && Main.rand.NextBool(3)) return DustID.CursedTorch; return DustID.Torch; @@ -64,10 +63,7 @@ namespace CalamityMod.Projectiles.Summon if (MinionCount >= 2f) target.AddBuff(BuffID.CursedInferno, 30); if (MinionCount >= 3f) - { - target.AddBuff(BuffID.ShadowFlame, 30); target.AddBuff(BuffID.Venom, 30); - } if (MinionCount >= 4f) { target.AddBuff(BuffID.Ichor, 30); diff --git a/Projectiles/Summon/CausticStaffSummon.cs b/Projectiles/Summon/CausticStaffSummon.cs index 23908da253..300d9a1f3c 100644 --- a/Projectiles/Summon/CausticStaffSummon.cs +++ b/Projectiles/Summon/CausticStaffSummon.cs @@ -226,7 +226,8 @@ namespace CalamityMod.Projectiles.Summon } //Occasionally spawn fiery dust - if (Main.rand.NextBool(6)) + int minionCount = player.ownedProjectileCounts[Type]; + if (Main.rand.NextBool(15)) { int fire = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, DustID.Torch, 0f, 0f, 100, new Color(), 2f); Main.dust[fire].velocity *= 0.3f; @@ -241,7 +242,6 @@ namespace CalamityMod.Projectiles.Summon Projectile.spriteDirection = Projectile.direction = 1; //Increment firing cooldown - int minionCount = player.ownedProjectileCounts[Type]; if (Projectile.ai[1] > 0f) { Projectile.ai[1] += Main.rand.Next(1, 4);