diff --git a/ILEditing/BalancingILChanges.cs b/ILEditing/BalancingILChanges.cs index f4b79ce23f..fbc3a529d0 100644 --- a/ILEditing/BalancingILChanges.cs +++ b/ILEditing/BalancingILChanges.cs @@ -348,26 +348,6 @@ namespace CalamityMod.ILEditing } #endregion - #region Chlorophyte Bullet Dust Reducing - private static void AdjustChlorophyteBullets(ILContext il) - { - // Reduce dust from 10 to 5 and homing range. - var cursor = new ILCursor(il); - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(ProjectileID.ChlorophyteBullet))) - { - LogFailure("Chlorophyte Bullet AI", "Could not locate the bullet ID."); - return; - } - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(10))) // The number of dust spawned by the bullet. - { - LogFailure("Chlorophyte Bullet AI", "Could not locate the dust quantity."); - return; - } - cursor.Remove(); - cursor.Emit(OpCodes.Ldc_I4_5); // Decrease dust to 5. - } - #endregion - #region Terrarian Projectile Limitation for Extra Updates private static void LimitTerrarianProjectiles(ILContext il) { diff --git a/ILEditing/MechanicILChanges.cs b/ILEditing/MechanicILChanges.cs index 81a209872d..33712995f1 100644 --- a/ILEditing/MechanicILChanges.cs +++ b/ILEditing/MechanicILChanges.cs @@ -1186,6 +1186,26 @@ namespace CalamityMod.ILEditing } #endregion + #region Chlorophyte Bullet Dust Reducing + private static void AdjustChlorophyteBullets(ILContext il) + { + // Reduce dust from 10 to 5 and homing range. + var cursor = new ILCursor(il); + if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(ProjectileID.ChlorophyteBullet))) + { + LogFailure("Chlorophyte Bullet AI", "Could not locate the bullet ID."); + return; + } + if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcI4(10))) // The number of dust spawned by the bullet. + { + LogFailure("Chlorophyte Bullet AI", "Could not locate the dust quantity."); + return; + } + cursor.Remove(); + cursor.Emit(OpCodes.Ldc_I4_5); // Decrease dust to 5. + } + #endregion + #region Make Tax Collector Worth it private static void MakeTaxCollectorUseful(ILContext il) { diff --git a/Items/Weapons/Rogue/Apoctolith.cs b/Items/Weapons/Rogue/Apoctolith.cs index 0717f4e31a..9f54c2c43e 100644 --- a/Items/Weapons/Rogue/Apoctolith.cs +++ b/Items/Weapons/Rogue/Apoctolith.cs @@ -16,11 +16,11 @@ namespace CalamityMod.Items.Weapons.Rogue { Item.width = 66; Item.height = 64; - Item.damage = 220; + Item.damage = 228; Item.shootSpeed = 18f; Item.shoot = ModContent.ProjectileType(); - Item.useTime = 30; - Item.useAnimation = 30; + Item.useTime = 26; + Item.useAnimation = 26; Item.useStyle = ItemUseStyleID.Swing; Item.knockBack = 10f; Item.value = CalamityGlobalItem.Rarity7BuyPrice; @@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue // Terraria seems to really dislike high crit values in SetDefaults public override void ModifyWeaponCrit(Player player, ref float crit) => crit += 20; - public override float StealthDamageMultiplier => 1.25f; + public override float StealthDamageMultiplier => 1.3f; 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/Rogue/BallisticPoisonBomb.cs b/Items/Weapons/Rogue/BallisticPoisonBomb.cs index b4bba3bf78..3a025b0eec 100644 --- a/Items/Weapons/Rogue/BallisticPoisonBomb.cs +++ b/Items/Weapons/Rogue/BallisticPoisonBomb.cs @@ -33,20 +33,10 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike - { - int spread = 5; - for (int i = 0; i < 3; i++) - { - Vector2 perturbedspeed = new Vector2(velocity.X + Main.rand.Next(-3, 4), velocity.Y + Main.rand.Next(-3, 4)).RotatedBy(MathHelper.ToRadians(spread)); - int proj = Projectile.NewProjectile(source, position, perturbedspeed, type, damage, knockback, player.whoAmI); - if (proj.WithinBounds(Main.maxProjectiles)) - Main.projectile[proj].Calamity().stealthStrike = true; - spread -= Main.rand.Next(2, 6); - } - return false; - } - return true; + int proj = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); + if (proj.WithinBounds(Main.maxProjectiles)) + Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable(); + return false; } public override void AddRecipes() diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson index 0cb958ec6c..1f2b936bf2 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Rogue.hjson @@ -54,8 +54,8 @@ BallisticPoisonBomb: { DisplayName: Ballistic Poison Bomb Tooltip: ''' - Throws a sticky bomb that explodes into spikes and poison clouds - Stealth strikes throw three at once + Throws a sticky bomb that explodes into spikes and venomous clouds + Stealth strikes erupt into more clouds with a longer lasting venom ''' } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index ad27552cb9..a3f5a2205f 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -1353,7 +1353,7 @@ namespace CalamityMod.NPCs } else if (npc.type == NPCID.GolemHeadFree) { - npc.lifeMax = (int)Math.Round(npc.lifeMax * 2D); + npc.lifeMax = (int)Math.Round(npc.lifeMax * 1.7); npc.dontTakeDamage = false; } else if (npc.type == NPCID.HallowBoss) diff --git a/Projectiles/Rogue/BallisticPoisonBombProj.cs b/Projectiles/Rogue/BallisticPoisonBombProj.cs index 47115fe94a..1085f9f558 100644 --- a/Projectiles/Rogue/BallisticPoisonBombProj.cs +++ b/Projectiles/Rogue/BallisticPoisonBombProj.cs @@ -1,5 +1,4 @@ using System; -using CalamityMod.Projectiles.Typeless; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -59,19 +58,19 @@ namespace CalamityMod.Projectiles.Rogue { Projectile.ExpandHitboxBy(128); SoundEngine.PlaySound(SoundID.Item14, Projectile.Center); - int projAmt = Main.rand.Next(3, 5); + int spikeAmt = Main.rand.Next(3, 4+1); if (Projectile.owner == Main.myPlayer) { - for (int s = 0; s < projAmt; s++) + for (int s = 0; s < spikeAmt; s++) { Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f); Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType(), Projectile.damage, 0f, Projectile.owner); } - int cloudAmt = Main.rand.Next(8, 13); + int cloudAmt = Projectile.Calamity().stealthStrike ? Main.rand.Next(8, 12+1) : Main.rand.Next(3, 5+1); for (int c = 0; c < cloudAmt; c++) { Vector2 velocity = CalamityUtils.RandomVelocity(100f, 10f, 200f, 0.01f); - Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.5), 0f, Projectile.owner); + Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType(), (int)(Projectile.damage * 0.75), 0f, Projectile.owner, 0f, Projectile.Calamity().stealthStrike ? 1f : 0f); } } for (int d = 0; d < 5; d++) diff --git a/Projectiles/Typeless/BallisticPoisonCloud.cs b/Projectiles/Rogue/BallisticPoisonCloud.cs similarity index 90% rename from Projectiles/Typeless/BallisticPoisonCloud.cs rename to Projectiles/Rogue/BallisticPoisonCloud.cs index 49593f016c..47f612c1ef 100644 --- a/Projectiles/Typeless/BallisticPoisonCloud.cs +++ b/Projectiles/Rogue/BallisticPoisonCloud.cs @@ -3,7 +3,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Typeless +namespace CalamityMod.Projectiles.Rogue { public class BallisticPoisonCloud : ModProjectile, ILocalizedModType { @@ -62,8 +62,8 @@ namespace CalamityMod.Projectiles.Typeless } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Venom, 120); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Venom, Projectile.ai[1] == 1f ? 240 : 120); - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Venom, 120); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Venom, Projectile.ai[1] == 1f ? 240 : 120); } } diff --git a/Projectiles/Typeless/BallisticPoisonCloud.png b/Projectiles/Rogue/BallisticPoisonCloud.png similarity index 100% rename from Projectiles/Typeless/BallisticPoisonCloud.png rename to Projectiles/Rogue/BallisticPoisonCloud.png