From 81a40e382f2256c189f2ea837fe7c7bee0edeb5c Mon Sep 17 00:00:00 2001 From: Xyk Date: Mon, 11 Sep 2023 15:46:18 -0700 Subject: [PATCH] Oops! Opal Striker is just Plasma Beam gave it on fire, changed tooltip, made charge orb look a bit more orange --- .../en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson | 2 +- Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson | 4 ++-- Projectiles/Ranged/OpalChargedStrike.cs | 4 ++++ Projectiles/Ranged/OpalStrike.cs | 4 ++++ Projectiles/Ranged/OpalStrikerHoldout.cs | 4 ++-- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson index 0968620fb3..b496785573 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Ranged.hjson @@ -793,7 +793,7 @@ OpalStriker: { DisplayName: Opal Striker Tooltip: ''' - Fires a chargeable energy bolt that pierces + Fires a chargeable heated energy bolt that pierces Fully charged shots deal extra damage and move faster ''' } diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson index 8116d00123..78d9207185 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Ranged.hjson @@ -149,8 +149,8 @@ Nuke.DisplayName: Nuke NullShot.DisplayName: Null NullShot2.DisplayName: Null OnyxSharkBomb.DisplayName: Onyx Shark -OpalChargedStrike.DisplayName: Charged Opal Bolt -OpalStrike.DisplayName: Opal Bolt +OpalChargedStrike.DisplayName: Charged Plasma Bolt +OpalStrike.DisplayName: Heated Bolt OpalStrikerHoldout.DisplayName: Opal Striker PhangasmBow.DisplayName: Phangasm PiercingBullet.DisplayName: Piercing Blow diff --git a/Projectiles/Ranged/OpalChargedStrike.cs b/Projectiles/Ranged/OpalChargedStrike.cs index e742190e2e..f0c738d228 100644 --- a/Projectiles/Ranged/OpalChargedStrike.cs +++ b/Projectiles/Ranged/OpalChargedStrike.cs @@ -55,6 +55,10 @@ namespace CalamityMod.Projectiles.Ranged CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1); return false; } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(BuffID.OnFire, 300); + } public override void Kill(int timeLeft) { for (int i = 0; i <= 8; i++) diff --git a/Projectiles/Ranged/OpalStrike.cs b/Projectiles/Ranged/OpalStrike.cs index 87a7e84abb..8b028ac38a 100644 --- a/Projectiles/Ranged/OpalStrike.cs +++ b/Projectiles/Ranged/OpalStrike.cs @@ -41,6 +41,10 @@ namespace CalamityMod.Projectiles.Ranged CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1); return false; } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(BuffID.OnFire, 60); + } public override void Kill(int timeLeft) { for (int i = 0; i <= 8; i++) diff --git a/Projectiles/Ranged/OpalStrikerHoldout.cs b/Projectiles/Ranged/OpalStrikerHoldout.cs index 023cc39061..7a50f4e8f5 100644 --- a/Projectiles/Ranged/OpalStrikerHoldout.cs +++ b/Projectiles/Ranged/OpalStrikerHoldout.cs @@ -92,9 +92,9 @@ namespace CalamityMod.Projectiles.Ranged Particle streak = new ManaDrainStreak(player, Main.rand.NextFloat(0.06f + (CurrentChargingFrames / 180), 0.08f + (CurrentChargingFrames / 180)), Main.rand.NextVector2CircularEdge(2f, 2f) * Main.rand.NextFloat(0.3f * CurrentChargingFrames, 0.3f * CurrentChargingFrames), 0f, Color.Gold, Color.Orange, 7, tipPosition); GeneralParticleHandler.SpawnParticle(streak); } - Particle orb = new GenericBloom(tipPosition, Projectile.velocity, Color.Orange, CurrentChargingFrames / 135, 2); + Particle orb = new GenericBloom(tipPosition, Projectile.velocity, Color.OrangeRed, CurrentChargingFrames / 135, 2); GeneralParticleHandler.SpawnParticle(orb); - Particle orb2 = new GenericBloom(tipPosition, Projectile.velocity, Color.Khaki, CurrentChargingFrames / 200, 2); + Particle orb2 = new GenericBloom(tipPosition, Projectile.velocity, Color.Coral, CurrentChargingFrames / 200, 2); GeneralParticleHandler.SpawnParticle(orb2); } if (CurrentChargingFrames == 10)