From 774469e8db05ded0d72789a98dcc08ae561b6b4e Mon Sep 17 00:00:00 2001 From: doze-zoze Date: Wed, 4 Mar 2026 00:32:06 -0600 Subject: [PATCH] Yharims Gift rebalance - No longer spawns dragon dust when moving - 15 -> 10% dmg - 12 -> 10 defense - 15 -> 20% move speed - 375/375/375 -> 250/500/750 meteor dmg - Meteor spread changed, meteors now have 10 tile homing range - fixed meteors not proccing on all iframe types - Meteors now inflict Dragonfire - All attacks with Yharim's Gift equipped inflict Auric Rebuke Also fixed Virid Vanguard broken localization. Dragonfire meteor buff also effects the nohit bow but that already inflcited dragonfire in other ways. --- CalPlayer/CalamityPlayer.cs | 2 ++ CalPlayer/CalamityPlayerHitHurt.cs | 8 +++++ Items/Accessories/YharimsGift.cs | 35 +++++-------------- .../Mods.CalamityMod.Items.Accessories.hjson | 6 ++-- ...ods.CalamityMod.Items.Weapons.Summon.hjson | 2 +- Projectiles/Boss/AresPlasmaFireball.cs | 1 + Projectiles/Typeless/SkyFlareFriendly.cs | 7 +++- 7 files changed, 30 insertions(+), 31 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index e507fce658..c48601beb8 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -810,6 +810,7 @@ namespace CalamityMod.CalPlayer #region Accessory public bool shieldOfTheHighRulerDashVelocityBoosted = false; + public bool yharimsGift = false; public bool luxorsGift = false; public bool luxorHit = false; public bool luxorsGiftVanity = false; @@ -2350,6 +2351,7 @@ namespace CalamityMod.CalPlayer blazingCursorDamage = false; blazingCursorVisuals = false; + yharimsGift = false; luxorsGift = false; luxorsGiftVanity = false; fungalSymbiote = false; diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index c2018f03da..a4ef95d5b3 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -460,6 +460,14 @@ namespace CalamityMod.CalPlayer } #endregion + #region OnHitNPC + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + if (Player.Calamity().yharimsGift) + target.AddBuff(ModContent.BuffType(),120); + } + #endregion + #region Modify Hit NPC public override void ModifyHitNPCWithItem(Item item, NPC target, ref NPC.HitModifiers modifiers) { diff --git a/Items/Accessories/YharimsGift.cs b/Items/Accessories/YharimsGift.cs index c505001aa1..224b1ed1c1 100644 --- a/Items/Accessories/YharimsGift.cs +++ b/Items/Accessories/YharimsGift.cs @@ -9,13 +9,14 @@ namespace CalamityMod.Items.Accessories public class YharimsGift : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Accessories"; - public int dragonTimer = 60; + + public static int MeteorDamage => CalamityUtils.ScaleWithDifficulty(250); public override void SetDefaults() { Item.width = 20; Item.height = 22; - Item.defense = 12; + Item.defense = 10; Item.accessory = true; Item.value = CalamityGlobalItem.RarityVioletBuyPrice; Item.rare = ModContent.RarityType(); @@ -24,38 +25,20 @@ namespace CalamityMod.Items.Accessories public override void UpdateAccessory(Player player, bool hideVisual) { + player.Calamity().yharimsGift = true; var source = player.GetSource_Accessory(Item); - player.moveSpeed += 0.15f; - player.GetDamage() += 0.15f; + player.moveSpeed += 0.2f; + player.GetDamage() += 0.1f; player.noKnockback = true; - if (!player.StandingStill()) - { - dragonTimer--; - if (dragonTimer <= 0) - { - if (player.whoAmI == Main.myPlayer) - { - int damage = (int)player.GetBestClassDamage().ApplyTo(175); - - int projectile1 = Projectile.NewProjectile(source, player.Center, Vector2.Zero, ModContent.ProjectileType(), damage, 5f, player.whoAmI, 0f, 0f); - Main.projectile[projectile1].timeLeft = 60; - } - dragonTimer = 60; - } - } - else - { - dragonTimer = 60; - } - if (player.immune) + if (player.HasIFrames()) { if (player.miscCounter % 8 == 0) { if (player.whoAmI == Main.myPlayer) { - int damage = (int)player.GetBestClassDamage().ApplyTo(375); + int damage = (int)player.GetBestClassDamage().ApplyTo(MeteorDamage); - CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType(), damage, 9f, player.whoAmI); + CalamityUtils.ProjectileRain(source, player.Center, 400f, 400f, 500f, 800f, 22f, ModContent.ProjectileType(), damage, 9f, player.whoAmI).Calamity().conditionalHomingRange = 160; } } } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index a41cea163d..c4835c0d22 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -2120,9 +2120,9 @@ YharimsGift: { Tooltip: ''' {$Common.KnockbackImmunity} - Flaming meteors rain down after getting hit - Volatile dragon dust trails behind you - Increases damage and movement speed by 15% + Increases damage by 10% and movement speed by 20% + All attacks inflict [cbuff:CalamityMod/AuricRebuke] + Flaming meteors rain down while invincible [c/FCA92B:'The power to kill a god pulses from within this artifact'] ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson index 21a0c5eb27..2459dfcc26 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Summon.hjson @@ -876,7 +876,7 @@ ViridVanguard: { Alternates between summoning axes and swords, both laced with a powerful poison Axes orbit the player, dealing high damage at a close range Swords chase down enemies with extreme precision, tearing them to shreds - All weapons inflict [cbuff:CalamityMod/Sage Poison], which becomes more powerful the more weapons are summoned + All weapons inflict [cbuff:CalamityMod/SagePoison], which becomes more powerful the more weapons are summoned When all minion slots are full, again to spin up a flurry of slashes aimed at your cursor This ability has a five-second cooldown that requires holding this item Shift- this item in your inventory to change the rotation direction diff --git a/Projectiles/Boss/AresPlasmaFireball.cs b/Projectiles/Boss/AresPlasmaFireball.cs index 52afa6e287..730f564336 100644 --- a/Projectiles/Boss/AresPlasmaFireball.cs +++ b/Projectiles/Boss/AresPlasmaFireball.cs @@ -34,6 +34,7 @@ namespace CalamityMod.Projectiles.Boss Projectile.Opacity = 0f; CooldownSlot = ImmunityCooldownID.Bosses; Projectile.timeLeft = timeLeft; + Projectile.Calamity().DealsDefenseDamage = true; } public override void SendExtraAI(BinaryWriter writer) diff --git a/Projectiles/Typeless/SkyFlareFriendly.cs b/Projectiles/Typeless/SkyFlareFriendly.cs index 58f6823a88..85f26a424f 100644 --- a/Projectiles/Typeless/SkyFlareFriendly.cs +++ b/Projectiles/Typeless/SkyFlareFriendly.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; using Terraria.ID; @@ -50,6 +51,10 @@ namespace CalamityMod.Projectiles.Typeless return false; } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 300); + } public override void OnKill(int timeLeft) { SoundEngine.PlaySound(SoundID.Item14, Projectile.position);