From d6bf6668eee1393bbfe65bde6d9ebc4b474e235c Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Thu, 15 Feb 2024 00:26:13 -0500 Subject: [PATCH] Bloodfire Arrow rebalance ideas * Damage nerf * Now increases natural life regen on hit, similar to Bloodfire Bullets * If natural life regen is high enough (currently 1200), arrows have a 50% chance to heal --- Items/Ammo/BloodfireArrow.cs | 2 +- .../en-US/Mods.CalamityMod.Items.Ammo.hjson | 6 +++++- Projectiles/Ranged/BloodfireArrowProj.cs | 16 +++++++++------- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Items/Ammo/BloodfireArrow.cs b/Items/Ammo/BloodfireArrow.cs index 13693ff059..b2f5fcedf2 100644 --- a/Items/Ammo/BloodfireArrow.cs +++ b/Items/Ammo/BloodfireArrow.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Items.Ammo { Item.width = 14; Item.height = 36; - Item.damage = 29; + Item.damage = 26; Item.DamageType = DamageClass.Ranged; Item.maxStack = 9999; Item.consumable = true; diff --git a/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson b/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson index 6e616b4f0b..c70e589e4e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Ammo.hjson @@ -19,7 +19,11 @@ AstralSolution: { BloodfireArrow: { DisplayName: Bloodfire Arrow - Tooltip: Heals you a small amount on enemy hits + Tooltip: + ''' + Accelerates your natural life regen on hit + When at high enough natural life regen, arrows will heal you + ''' } BloodfireBullet: { diff --git a/Projectiles/Ranged/BloodfireArrowProj.cs b/Projectiles/Ranged/BloodfireArrowProj.cs index 75e2311ff5..b170503ba6 100644 --- a/Projectiles/Ranged/BloodfireArrowProj.cs +++ b/Projectiles/Ranged/BloodfireArrowProj.cs @@ -83,16 +83,18 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - if (!target.canGhostHeal || Main.player[Projectile.owner].moonLeech) - return; - Player player = Main.player[Projectile.owner]; - int chance = 3; - if (player.ActiveItem().type == ModContent.ItemType()) - chance = 6; + player.lifeRegenTime += 1; - if (Main.rand.NextBool(chance)) + if (!target.canGhostHeal || player.moonLeech) + return; + + int chance = 2; + if (player.ActiveItem().type == ModContent.ItemType()) + chance = 4; + + if (player.lifeRegenTime > 1200 && Main.rand.NextBool(chance)) { player.statLife += 1; player.HealEffect(1);