From be5d9bbcc38d03c8d40392ebdd04ad69d426b1d6 Mon Sep 17 00:00:00 2001 From: Done2222 Date: Wed, 27 Sep 2023 18:04:00 +0300 Subject: [PATCH] adjusted tyranny's end and amr further (sorry cit) also bananarang nerf --- Items/CalamityGlobalItemTweaks.cs | 2 +- .../Mods.CalamityMod.Items.Weapons.Ranged.hjson | 8 ++++---- Projectiles/Ranged/AMRShot.cs | 4 ++-- Projectiles/Ranged/PiercingBullet.cs | 17 ++--------------- 4 files changed, 9 insertions(+), 22 deletions(-) diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index 3d5e695f68..eefca79624 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -42,7 +42,7 @@ namespace CalamityMod.Items { ItemID.AmethystStaff, Do(ManaExact(2)) }, { ItemID.Anchor, Do(DamageExact(107), UseExact(30)) }, { ItemID.AntlionClaw, Do(UseExact(14)) }, // Mandible Blade - { ItemID.Bananarang, Do(DamageExact(98), UseExact(14)) }, + { ItemID.Bananarang, Do(DamageExact(76), UseExact(14)) }, { ItemID.BatScepter, Do(DamageExact(56)) }, { ItemID.BeamSword, Do(UseMeleeSpeed, UseTurn, DamageExact(180), UseAnimationExact(60), ShootSpeedExact(23f)) }, { ItemID.BeeGun, Do(DamageExact(11)) }, diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 504e3883da..41a1a6837e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -49,7 +49,7 @@ AntiMaterielRifle: { Tooltip: ''' Converts musket balls into .50 caliber sniper rounds that rip apart enemy defense and DR - Critical hits unleash a second swarm of 4 bullets + Critical hits unleash a second swarm of 5 bullets ''' } @@ -1242,9 +1242,9 @@ TyrannysEnd: { DisplayName: Tyranny's End Tooltip: ''' - Converts musket balls into .70 caliber sniper rounds that bypass enemy Defense and DR - Inflicts Marked for Death on enemy hits - Critical hits summon a swarm of 5 additional bullets + Converts musket balls into .70 caliber sniper rounds that deal devestating damage + inflicts Marked for Death on enemy hits + Critical hits summon a swarm of 8 additional bullets 'Pierce the heart of even the most heavily-armored foe' ''' } diff --git a/Projectiles/Ranged/AMRShot.cs b/Projectiles/Ranged/AMRShot.cs index 0df64fdf82..6cd8801ff3 100644 --- a/Projectiles/Ranged/AMRShot.cs +++ b/Projectiles/Ranged/AMRShot.cs @@ -74,13 +74,13 @@ namespace CalamityMod.Projectiles.Ranged if (crit) { var source = Projectile.GetSource_FromThis(); - int extraProjectileAmt = 4; + int extraProjectileAmt = 5; for (int x = 0; x < extraProjectileAmt; x++) { if (Projectile.owner == Main.myPlayer) { bool fromRight = x > 3; - CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, fromRight, 500f, 500f, 0f, 500f, 10f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.22), Projectile.knockBack * 0.1f, Projectile.owner); + CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, fromRight, 500f, 500f, 0f, 500f, 10f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.2), Projectile.knockBack * 0.1f, Projectile.owner); } } } diff --git a/Projectiles/Ranged/PiercingBullet.cs b/Projectiles/Ranged/PiercingBullet.cs index 209d6fb091..91f2c8057d 100644 --- a/Projectiles/Ranged/PiercingBullet.cs +++ b/Projectiles/Ranged/PiercingBullet.cs @@ -30,19 +30,6 @@ namespace CalamityMod.Projectiles.Ranged Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration; } - public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) - { - //Avoid touching things that you probably aren't meant to damage - if (modifiers.SuperArmor || target.defense > 999 || target.Calamity().DR >= 0.95f || target.Calamity().unbreakableDR) - return; - - //Bypass defense - modifiers.DefenseEffectiveness *= 0f; - - //Bypass DR - modifiers.FinalDamage /= 1f - target.Calamity().DR; - } - public override bool OnTileCollide(Vector2 oldVelocity) { Collision.HitTiles(Projectile.position, Projectile.velocity, Projectile.width, Projectile.height); @@ -67,12 +54,12 @@ namespace CalamityMod.Projectiles.Ranged if (crit) { var source = Projectile.GetSource_FromThis(); - int bulletCount = 5; + int bulletCount = 8; for (int x = 0; x < bulletCount; x++) { if (Projectile.owner == Main.myPlayer) { - CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, x < bulletCount / 2, 500f, 500f, 0f, 500f, 12f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.14), Projectile.knockBack, Projectile.owner); + CalamityUtils.ProjectileBarrage(source, Projectile.Center, targetPos, x < bulletCount / 2, 500f, 500f, 0f, 500f, 12f, ModContent.ProjectileType(), (int)(Projectile.damage * 0.13), Projectile.knockBack, Projectile.owner); } } }