From 8a286f2d4fec4220e9467f91d8e2b8ea6b27afde Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Fri, 5 Jul 2024 11:42:33 -0700 Subject: [PATCH 1/9] Initial Implementation/Inflictions --- Buffs/DamageOverTime/Voidfrost.cs | 81 ++++++++++++++++++ Buffs/DamageOverTime/Voidfrost.png | Bin 0 -> 659 bytes CalPlayer/CalamityPlayer.cs | 3 + .../en-US/Mods.CalamityMod.Buffs.hjson | 5 ++ NPCs/CalamityGlobalNPC.cs | 15 ++++ Projectiles/Magic/ClamorNoctusStar.cs | 2 +- Projectiles/Melee/CosmicDischargeFlail.cs | 2 +- Projectiles/Melee/CosmicIceBurst.cs | 5 +- Projectiles/Melee/CrescentMoonFlail.cs | 2 +- Projectiles/Melee/CrescentMoonProj.cs | 2 +- Projectiles/Melee/GalileosMoon.cs | 2 +- Projectiles/Melee/GalileosPlanet.cs | 2 +- Projectiles/Melee/OrderbringerBeam.cs | 5 ++ Projectiles/Melee/OrderbringerRain.cs | 7 +- .../Melee/Shortswords/GalileoGladiusProj.cs | 4 +- Projectiles/Melee/Spears/NadirSpear.cs | 2 + Projectiles/Melee/VoidEssence.cs | 5 +- Projectiles/Ranged/AstralRound.cs | 2 +- Projectiles/Ranged/HalleysComet.cs | 2 +- Projectiles/Rogue/HypothermiaChunk.cs | 7 +- Projectiles/Rogue/HypothermiaShard.cs | 7 +- Projectiles/Rogue/NightsGazeProjectile.cs | 4 +- Projectiles/Rogue/NightsGazeSpark.cs | 4 +- Projectiles/Rogue/NightsGazeStar.cs | 4 +- Projectiles/Summon/EndoCooperBody.cs | 5 +- Projectiles/Summon/EndoCooperLimbs.cs | 3 +- Projectiles/Summon/EndoFire.cs | 5 +- Projectiles/Summon/EndoRay.cs | 7 +- Projectiles/Summon/SiriusBeam.cs | 2 +- Projectiles/Summon/SiriusExplosion.cs | 2 +- 30 files changed, 163 insertions(+), 35 deletions(-) create mode 100644 Buffs/DamageOverTime/Voidfrost.cs create mode 100644 Buffs/DamageOverTime/Voidfrost.png diff --git a/Buffs/DamageOverTime/Voidfrost.cs b/Buffs/DamageOverTime/Voidfrost.cs new file mode 100644 index 0000000000..54d0297944 --- /dev/null +++ b/Buffs/DamageOverTime/Voidfrost.cs @@ -0,0 +1,81 @@ +using CalamityMod.Particles; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.DataStructures; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs.DamageOverTime +{ + public class Voidfrost : ModBuff + { + public override void SetStaticDefaults() + { + Main.debuff[Type] = true; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = true; + BuffID.Sets.LongerExpertDebuff[Type] = true; + } + + public override void Update(Player player, ref int buffIndex) + { + player.Calamity().voidfrost = true; + } + + public override void Update(NPC npc, ref int buffIndex) + { + if (npc.Calamity().voidfrost < npc.buffTime[buffIndex]) + npc.Calamity().voidfrost = npc.buffTime[buffIndex]; + npc.DelBuff(buffIndex); + buffIndex--; + } + + internal static void DrawEffects(PlayerDrawSet drawInfo, bool hasDebuffResistance = false) + { + Player Player = drawInfo.drawPlayer; + + if (Main.rand.NextBool(4)) + { + Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f); + SnowflakeSparkle snowflake = new SnowflakeSparkle(Player.Calamity().RandomDebuffVisualSpot, Vect, Main.rand.NextBool() ? Color.Cyan : Color.DarkBlue, Color.DodgerBlue, 0.4f, 15, 2f, 1.9f); + GeneralParticleHandler.SpawnParticle(snowflake); + } + if (Main.rand.NextBool(2)) + { + Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f); + MediumMistParticle mist = new MediumMistParticle(Player.Calamity().RandomDebuffVisualSpot, Vect, new Color(172, 238, 255), new Color(145, 170, 188), Main.rand.NextFloat(0.5f, 1.5f), 245 - Main.rand.Next(50), 0.02f); + GeneralParticleHandler.SpawnParticle(mist); + } + Vector2 dustCorner = Player.position - 2f * Vector2.One; + Vector2 dustVel = Player.velocity + new Vector2(0f, Main.rand.NextFloat(-11f, -2f)); + int d = Dust.NewDust(dustCorner, Player.width + 4, Player.height + 4, Main.rand.NextBool(4) ? 20 : 113, dustVel.X, dustVel.Y); + Main.dust[d].noGravity = true; + Main.dust[d].scale = Main.rand.NextFloat(1f, 0.3f); + Main.dust[d].alpha = 10; + } + + internal static void DrawEffects(NPC npc, ref Color drawColor) + { + Vector2 npcSize = npc.Center + new Vector2(Main.rand.NextFloat(-npc.width / 2, npc.width / 2), Main.rand.NextFloat(-npc.height / 2, npc.height / 2)); + if (Main.rand.NextBool(5)) + { + Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f); + SnowflakeSparkle snowflake = new SnowflakeSparkle(npcSize, Vect, Main.rand.NextBool() ? Color.Cyan : Color.DarkBlue, Color.DodgerBlue, 0.8f, 15, 2f, 1.9f); + GeneralParticleHandler.SpawnParticle(snowflake); + } + if (Main.rand.NextBool(40)) + { + Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f); + MediumMistParticle mist = new MediumMistParticle(npcSize, Vect, new Color(172, 238, 255), new Color(145, 170, 188), Main.rand.NextFloat(0.5f, 1.5f), 245 - Main.rand.Next(50), 0.02f); + GeneralParticleHandler.SpawnParticle(mist); + } + + Vector2 dustCorner = npc.position - 2f * Vector2.One; + Vector2 dustVel = npc.velocity + new Vector2(0f, Main.rand.NextFloat(-11f, -2f)); + int d = Dust.NewDust(dustCorner, npc.width + 4, npc.height + 4, Main.rand.NextBool(4) ? 20 : 113, dustVel.X, dustVel.Y); + Main.dust[d].noGravity = true; + Main.dust[d].scale = Main.rand.NextFloat(1f, 0.3f); + Main.dust[d].alpha = 10; + } + } +} diff --git a/Buffs/DamageOverTime/Voidfrost.png b/Buffs/DamageOverTime/Voidfrost.png new file mode 100644 index 0000000000000000000000000000000000000000..9cc113a1a993d59a90dc1a006f67085e07450bb0 GIT binary patch literal 659 zcmV;E0&M+>P)6h9+y68zH=AqGJWf>=X?5M&axMiAuS7BmM!Bu-|FLyd*FWGzOJL(pPHK~O}6 z;ZP9N&{ir4K~Nao-A}sfJ3nple#`sreDC?a-+Oo8dltgs9A2%HU$FLjh!H;Qqof(E z)k{(T=~?iHb@^u5@*}%QhtZA5XERH5?lMdk5=Q?P?y$Xel0u+xVDRgP7W$M({KUUFuh>5=A4;1qn7 z&NO47QJp3^N946)Rd9rTGbZu{ejjL81Fhy9kymeD3>~VNK#kc#Q;dPkrlt%uerPjt zd0%EC{+QvlCfe!C05I-n@A%-dQ+cn5*zWJ6awy332HngqY2sgh238^`RC;<`RJtQx zLk4U<7Wu_miOSsTTT3sX9|MUZYmD%9+vi^|M?OnsERq&-E@LadPGw~z#F*iJ^k+cs zSa6323A?$-b-^&_D&WS0A26#g19Hcb2+Rr0oN_(f3o78;t0ISg{rZ7M4It+n_&QGV zb$0Qttv`@^P1MHw!L}w0U}BNGU>P{qIOi%rPi9v3pYx7s!T`EdRI8jb;A%I_pThsD z0l7N{I?h02211OAe;aI002ovPDHLkV1fezG6Mhr literal 0 HcmV?d00001 diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index d839638068..909a5b35e7 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -911,6 +911,7 @@ namespace CalamityMod.CalPlayer public bool absorberAffliction = false; public bool sulphurPoison = false; public bool nightwither = false; + public bool voidfrost = false; public bool eutrophication = false; public bool iCantBreathe = false; //Frozen Lungs debuff public bool cragsLava = false; @@ -1994,6 +1995,7 @@ namespace CalamityMod.CalPlayer snowmanNoseless = false; sulphurPoison = false; nightwither = false; + voidfrost = false; eutrophication = false; iCantBreathe = false; cragsLava = false; @@ -2425,6 +2427,7 @@ namespace CalamityMod.CalPlayer abyssalDivingSuitPlateHits = 0; sulphurPoison = false; nightwither = false; + voidfrost = false; eutrophication = false; iCantBreathe = false; cragsLava = false; diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 42c88f0356..f72873a5d4 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1562,3 +1562,8 @@ AeolianEarthBuff: { Damage reduction increased by 8%, damage increased by 18% ''' } + +Voidfrost: { + DisplayName: Voidfrost + Description: Mods.CalamityMod.Buffs.Voidfrost.Description +} diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 7e79e0de7c..dc552f1218 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -281,6 +281,7 @@ namespace CalamityMod.NPCs public int astralInfection = 0; public int wDeath = 0; public int nightwither = 0; + public int voidfrost = 0; public int shellfishVore = 0; public int clamDebuff = 0; public int sulphurPoison = 0; @@ -500,6 +501,7 @@ namespace CalamityMod.NPCs myClone.astralInfection = astralInfection; myClone.wDeath = wDeath; myClone.nightwither = nightwither; + myClone.voidfrost = voidfrost; myClone.shellfishVore = shellfishVore; myClone.clamDebuff = clamDebuff; myClone.sulphurPoison = sulphurPoison; @@ -1040,6 +1042,13 @@ namespace CalamityMod.NPCs ApplyDPSDebuff(baseNightwitherDoTValue, baseNightwitherDoTValue / 5, ref npc.lifeRegen, ref damage); } + // Voidfrost + if (voidfrost > 0) + { + int baseVoidfrostDoTValue = (int)(300 * coldDamageMult); + ApplyDPSDebuff(baseVoidfrostDoTValue, baseVoidfrostDoTValue / 5, ref npc.lifeRegen, ref damage); + } + // Plague if (pFlames > 0) { @@ -5208,6 +5217,8 @@ namespace CalamityMod.NPCs wDeath--; if (nightwither > 0) nightwither--; + if (voidfrost > 0) + voidfrost--; if (shellfishVore > 0) shellfishVore--; if (clamDebuff > 0) @@ -6514,6 +6525,9 @@ namespace CalamityMod.NPCs if (nightwither > 0) Nightwither.DrawEffects(npc, ref drawColor); + if (voidfrost > 0) + Voidfrost.DrawEffects(npc, ref drawColor); + if (pFlames > 0) // Plague debuff Plague.DrawEffects(npc, ref drawColor); @@ -6731,6 +6745,7 @@ namespace CalamityMod.NPCs ("CalamityMod/Buffs/DamageOverTime/SulphuricPoisoning", NPC => NPC.Calamity().sulphurPoison > 0), ("CalamityMod/Buffs/DamageOverTime/Vaporfied", NPC => NPC.Calamity().vaporfied > 0), ("CalamityMod/Buffs/DamageOverTime/VermillionFlux", NPC => NPC.Calamity().vermillionFlux > 0), + ("CalamityMod/Buffs/DamageOverTime/Voidfrost", NPC => NPC.Calamity().voidfrost > 0), ("CalamityMod/Buffs/DamageOverTime/VulnerabilityHex", NPC => NPC.Calamity().vulnerabilityHex > 0), // All other important Calamity debuffs, in alphabetical order diff --git a/Projectiles/Magic/ClamorNoctusStar.cs b/Projectiles/Magic/ClamorNoctusStar.cs index 36e9c1e8df..7386caa9e2 100644 --- a/Projectiles/Magic/ClamorNoctusStar.cs +++ b/Projectiles/Magic/ClamorNoctusStar.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Magic public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } public override void OnKill(int timeLeft) diff --git a/Projectiles/Melee/CosmicDischargeFlail.cs b/Projectiles/Melee/CosmicDischargeFlail.cs index 8e0c8da37d..eb980cd6f7 100644 --- a/Projectiles/Melee/CosmicDischargeFlail.cs +++ b/Projectiles/Melee/CosmicDischargeFlail.cs @@ -100,7 +100,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { Player player = Main.player[Projectile.owner]; - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 180); target.AddBuff(ModContent.BuffType(), 60); if (Projectile.localAI[1] <= 0f && Projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Melee/CosmicIceBurst.cs b/Projectiles/Melee/CosmicIceBurst.cs index 56788a64b3..0d48886bc2 100644 --- a/Projectiles/Melee/CosmicIceBurst.cs +++ b/Projectiles/Melee/CosmicIceBurst.cs @@ -117,14 +117,13 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 420); + target.AddBuff(ModContent.BuffType(), 420); Projectile.direction = Main.player[Projectile.owner].direction; } public override void OnHitPlayer(Player target, Player.HurtInfo info) { - target.AddBuff(BuffID.Frostburn, 180); - target.AddBuff(ModContent.BuffType(), 420); + target.AddBuff(ModContent.BuffType(), 420); Projectile.direction = Main.player[Projectile.owner].direction; } } diff --git a/Projectiles/Melee/CrescentMoonFlail.cs b/Projectiles/Melee/CrescentMoonFlail.cs index 125511774e..842105dfaf 100644 --- a/Projectiles/Melee/CrescentMoonFlail.cs +++ b/Projectiles/Melee/CrescentMoonFlail.cs @@ -62,7 +62,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 240); Projectile.localAI[1] = 4f; } } diff --git a/Projectiles/Melee/CrescentMoonProj.cs b/Projectiles/Melee/CrescentMoonProj.cs index 907fa657ae..326c17d55e 100644 --- a/Projectiles/Melee/CrescentMoonProj.cs +++ b/Projectiles/Melee/CrescentMoonProj.cs @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Melee/GalileosMoon.cs b/Projectiles/Melee/GalileosMoon.cs index f330f94964..b9cb04ebe4 100644 --- a/Projectiles/Melee/GalileosMoon.cs +++ b/Projectiles/Melee/GalileosMoon.cs @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Melee/GalileosPlanet.cs b/Projectiles/Melee/GalileosPlanet.cs index a51dceec4b..bc651357af 100644 --- a/Projectiles/Melee/GalileosPlanet.cs +++ b/Projectiles/Melee/GalileosPlanet.cs @@ -177,7 +177,7 @@ namespace CalamityMod.Projectiles.Melee public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 240); + target.AddBuff(ModContent.BuffType(), 240); } public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, radius, targetHitbox); diff --git a/Projectiles/Melee/OrderbringerBeam.cs b/Projectiles/Melee/OrderbringerBeam.cs index 72feafc6e6..debffa2be8 100644 --- a/Projectiles/Melee/OrderbringerBeam.cs +++ b/Projectiles/Melee/OrderbringerBeam.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -104,6 +105,10 @@ namespace CalamityMod.Projectiles.Melee 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(ModContent.BuffType(), 800); + } public override void OnKill(int timeLeft) { diff --git a/Projectiles/Melee/OrderbringerRain.cs b/Projectiles/Melee/OrderbringerRain.cs index 690b46cd4b..e581612610 100644 --- a/Projectiles/Melee/OrderbringerRain.cs +++ b/Projectiles/Melee/OrderbringerRain.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; @@ -44,5 +45,9 @@ namespace CalamityMod.Projectiles.Melee CalamityUtils.HomeInOnNPC(Projectile, true, 200f, 12f, 20f); } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 800); + } } } diff --git a/Projectiles/Melee/Shortswords/GalileoGladiusProj.cs b/Projectiles/Melee/Shortswords/GalileoGladiusProj.cs index bf94ea1dc1..2843ec3b4a 100644 --- a/Projectiles/Melee/Shortswords/GalileoGladiusProj.cs +++ b/Projectiles/Melee/Shortswords/GalileoGladiusProj.cs @@ -63,13 +63,13 @@ namespace CalamityMod.Projectiles.Melee.Shortswords public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 300); + target.AddBuff(ModContent.BuffType(), 300); SpawnMeteor(Main.player[Projectile.owner]); } public override void OnHitPlayer(Player target, Player.HurtInfo info) { - target.AddBuff(ModContent.BuffType(), 300); + target.AddBuff(ModContent.BuffType(), 300); SpawnMeteor(Main.player[Projectile.owner]); } diff --git a/Projectiles/Melee/Spears/NadirSpear.cs b/Projectiles/Melee/Spears/NadirSpear.cs index 51c1f30f62..672789f03f 100644 --- a/Projectiles/Melee/Spears/NadirSpear.cs +++ b/Projectiles/Melee/Spears/NadirSpear.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Projectiles.BaseProjectiles; using Microsoft.Xna.Framework; @@ -70,5 +71,6 @@ namespace CalamityMod.Projectiles.Melee.Spears Main.dust[idx].velocity = Vector2.Zero; } } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 180); } } diff --git a/Projectiles/Melee/VoidEssence.cs b/Projectiles/Melee/VoidEssence.cs index 692aea191f..334f79b348 100644 --- a/Projectiles/Melee/VoidEssence.cs +++ b/Projectiles/Melee/VoidEssence.cs @@ -1,4 +1,5 @@ -using CalamityMod.Items.Weapons.Melee; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Melee; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -151,6 +152,8 @@ namespace CalamityMod.Projectiles.Melee float scale = Main.rand.NextFloat(1.0f, 1.8f); Main.dust[idx].scale = scale; } + + target.AddBuff(ModContent.BuffType(), 180); } public override void OnKill(int timeLeft) diff --git a/Projectiles/Ranged/AstralRound.cs b/Projectiles/Ranged/AstralRound.cs index 6844252aed..dc5230a47c 100644 --- a/Projectiles/Ranged/AstralRound.cs +++ b/Projectiles/Ranged/AstralRound.cs @@ -76,7 +76,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 800); } } } diff --git a/Projectiles/Ranged/HalleysComet.cs b/Projectiles/Ranged/HalleysComet.cs index 55536073df..be4ba1de28 100644 --- a/Projectiles/Ranged/HalleysComet.cs +++ b/Projectiles/Ranged/HalleysComet.cs @@ -77,7 +77,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 450); + target.AddBuff(ModContent.BuffType(), 450); SoundEngine.PlaySound(HalleysInferno.Hit, Projectile.Center); // Dust emission on hit diff --git a/Projectiles/Rogue/HypothermiaChunk.cs b/Projectiles/Rogue/HypothermiaChunk.cs index 278b40b93e..7e2cecaddf 100644 --- a/Projectiles/Rogue/HypothermiaChunk.cs +++ b/Projectiles/Rogue/HypothermiaChunk.cs @@ -1,4 +1,5 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -74,13 +75,13 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(BuffID.Frostburn2, 300); + target.AddBuff(ModContent.BuffType(), 300); target.AddBuff(ModContent.BuffType(), 150); } public override void OnHitPlayer(Player target, Player.HurtInfo info) { - target.AddBuff(BuffID.Frostburn2, 300); + target.AddBuff(ModContent.BuffType(), 300); target.AddBuff(ModContent.BuffType(), 150); } diff --git a/Projectiles/Rogue/HypothermiaShard.cs b/Projectiles/Rogue/HypothermiaShard.cs index 75a7cede89..343c1c80c2 100644 --- a/Projectiles/Rogue/HypothermiaShard.cs +++ b/Projectiles/Rogue/HypothermiaShard.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; @@ -70,9 +71,9 @@ namespace CalamityMod.Projectiles.Rogue } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Frostburn2, 120); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(BuffID.Frostburn2, 120); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 120); public override bool PreDraw(ref Color lightColor) { diff --git a/Projectiles/Rogue/NightsGazeProjectile.cs b/Projectiles/Rogue/NightsGazeProjectile.cs index ea2a217ec1..380d4a6bc8 100644 --- a/Projectiles/Rogue/NightsGazeProjectile.cs +++ b/Projectiles/Rogue/NightsGazeProjectile.cs @@ -55,13 +55,13 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), Projectile.timeLeft); + target.AddBuff(ModContent.BuffType(), Projectile.timeLeft); OnHitEffects(); } public override void OnHitPlayer(Player target, Player.HurtInfo info) { - target.AddBuff(ModContent.BuffType(), Projectile.timeLeft); + target.AddBuff(ModContent.BuffType(), Projectile.timeLeft); OnHitEffects(); } diff --git a/Projectiles/Rogue/NightsGazeSpark.cs b/Projectiles/Rogue/NightsGazeSpark.cs index 6d51909b88..a33e54ff06 100644 --- a/Projectiles/Rogue/NightsGazeSpark.cs +++ b/Projectiles/Rogue/NightsGazeSpark.cs @@ -63,9 +63,9 @@ namespace CalamityMod.Projectiles.Rogue } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 120); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 120); public override bool OnTileCollide(Vector2 oldVelocity) { diff --git a/Projectiles/Rogue/NightsGazeStar.cs b/Projectiles/Rogue/NightsGazeStar.cs index fad89f3222..e45644d91c 100644 --- a/Projectiles/Rogue/NightsGazeStar.cs +++ b/Projectiles/Rogue/NightsGazeStar.cs @@ -96,9 +96,9 @@ namespace CalamityMod.Projectiles.Rogue } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 120); - public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 120); + public override void OnHitPlayer(Player target, Player.HurtInfo info) => target.AddBuff(ModContent.BuffType(), 120); public override bool OnTileCollide(Vector2 oldVelocity) { diff --git a/Projectiles/Summon/EndoCooperBody.cs b/Projectiles/Summon/EndoCooperBody.cs index 311ac275e6..e1b83aa8cb 100644 --- a/Projectiles/Summon/EndoCooperBody.cs +++ b/Projectiles/Summon/EndoCooperBody.cs @@ -1,4 +1,5 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; @@ -351,7 +352,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), 60); - target.AddBuff(BuffID.Frostburn2, 180); + target.AddBuff(ModContent.BuffType(), 180); } public override bool? CanDamage() => AttackMode == 2; diff --git a/Projectiles/Summon/EndoCooperLimbs.cs b/Projectiles/Summon/EndoCooperLimbs.cs index 45fd326ec5..ba3408aa09 100644 --- a/Projectiles/Summon/EndoCooperLimbs.cs +++ b/Projectiles/Summon/EndoCooperLimbs.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; @@ -145,7 +146,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), 60); - target.AddBuff(BuffID.Frostburn2, 180); + target.AddBuff(ModContent.BuffType(), 180); } public override bool? CanDamage() => AttackMode == 2; diff --git a/Projectiles/Summon/EndoFire.cs b/Projectiles/Summon/EndoFire.cs index 3b40c7d549..5f3687bdb6 100644 --- a/Projectiles/Summon/EndoFire.cs +++ b/Projectiles/Summon/EndoFire.cs @@ -1,4 +1,5 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -104,7 +105,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), 60); - target.AddBuff(BuffID.Frostburn2, 180); + target.AddBuff(ModContent.BuffType(), 180); } } } diff --git a/Projectiles/Summon/EndoRay.cs b/Projectiles/Summon/EndoRay.cs index 7373b166b2..8ad3feca5d 100644 --- a/Projectiles/Summon/EndoRay.cs +++ b/Projectiles/Summon/EndoRay.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -45,5 +46,9 @@ namespace CalamityMod.Projectiles.Summon } } } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 180); + } } } diff --git a/Projectiles/Summon/SiriusBeam.cs b/Projectiles/Summon/SiriusBeam.cs index 52185dadfc..770ce4b47d 100644 --- a/Projectiles/Summon/SiriusBeam.cs +++ b/Projectiles/Summon/SiriusBeam.cs @@ -48,7 +48,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), 180); float x4 = Main.rgbToHsl(new Color(103, 203, Main.DiscoB)).X; Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage, Projectile.knockBack, Projectile.owner, x4, Projectile.whoAmI); } diff --git a/Projectiles/Summon/SiriusExplosion.cs b/Projectiles/Summon/SiriusExplosion.cs index d4ea45da2a..99670e593b 100644 --- a/Projectiles/Summon/SiriusExplosion.cs +++ b/Projectiles/Summon/SiriusExplosion.cs @@ -231,6 +231,6 @@ namespace CalamityMod.Projectiles.Summon return new Color(255 - Projectile.alpha, 255 - Projectile.alpha, 255 - Projectile.alpha, 0); } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 180); + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(ModContent.BuffType(), 180); } } From 2274a9a5f18f54c0929c116b332e67b955d5f573 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Sun, 14 Jul 2024 21:41:49 -0700 Subject: [PATCH 2/9] Moon Lord weapons inflict Nightwither --- Buffs/DamageOverTime/Voidfrost.cs | 4 ++-- CalPlayer/CalamityPlayerDrawEffects.cs | 3 +++ CalPlayer/CalamityPlayerLifeRegen.cs | 1 + CalPlayer/CalamityPlayerOnHit.cs | 4 ++++ Items/Weapons/Melee/StellarStriker.cs | 3 +++ Localization/en-US/Mods.CalamityMod.Buffs.hjson | 2 +- Projectiles/Magic/Asteroid.cs | 7 ++++++- Projectiles/Melee/JudgementProj.cs | 6 ++++++ Projectiles/Melee/Whiterain.cs | 7 ++++++- Projectiles/Ranged/PlasmaBlast.cs | 7 ++++++- Projectiles/Rogue/LunarKunaiProj.cs | 6 ++++++ 11 files changed, 44 insertions(+), 6 deletions(-) diff --git a/Buffs/DamageOverTime/Voidfrost.cs b/Buffs/DamageOverTime/Voidfrost.cs index 54d0297944..fb3b694d61 100644 --- a/Buffs/DamageOverTime/Voidfrost.cs +++ b/Buffs/DamageOverTime/Voidfrost.cs @@ -34,13 +34,13 @@ namespace CalamityMod.Buffs.DamageOverTime { Player Player = drawInfo.drawPlayer; - if (Main.rand.NextBool(4)) + if (Main.rand.NextBool(5)) { Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f); SnowflakeSparkle snowflake = new SnowflakeSparkle(Player.Calamity().RandomDebuffVisualSpot, Vect, Main.rand.NextBool() ? Color.Cyan : Color.DarkBlue, Color.DodgerBlue, 0.4f, 15, 2f, 1.9f); GeneralParticleHandler.SpawnParticle(snowflake); } - if (Main.rand.NextBool(2)) + if (Main.rand.NextBool(40)) { Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f); MediumMistParticle mist = new MediumMistParticle(Player.Calamity().RandomDebuffVisualSpot, Vect, new Color(172, 238, 255), new Color(145, 170, 188), Main.rand.NextFloat(0.5f, 1.5f), 245 - Main.rand.Next(50), 0.02f); diff --git a/CalPlayer/CalamityPlayerDrawEffects.cs b/CalPlayer/CalamityPlayerDrawEffects.cs index 0541f5665e..6d58bbba7b 100644 --- a/CalPlayer/CalamityPlayerDrawEffects.cs +++ b/CalPlayer/CalamityPlayerDrawEffects.cs @@ -269,6 +269,9 @@ namespace CalamityMod.CalPlayer if (calamityPlayer.nightwither && drawInfo.shadow == 0f) // Looks weaker if you have Moon Stone equipped Nightwither.DrawEffects(drawInfo, reducedNightwitherDamage); + if (calamityPlayer.voidfrost && drawInfo.shadow == 0f) + Voidfrost.DrawEffects(drawInfo); + if (calamityPlayer.pFlames && drawInfo.shadow == 0f) Plague.DrawEffects(drawInfo); diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index ff672e4da5..e255a17f15 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -107,6 +107,7 @@ namespace CalamityMod.CalPlayer ApplyDoTDebuff(daybroken, reducedDaybrokenDamage ? 20 : 40, purity); ApplyDoTDebuff(nightwither, reducedNightwitherDamage ? 20 : 40, purity); ApplyDoTDebuff(hFlames, 40, purity); + ApplyDoTDebuff(voidfrost, 40, purity); ApplyDoTDebuff(vHex, 35); ApplyDoTDebuff(cDepth, 18, purity); ApplyDoTDebuff(astralInfection, 24, infectedJewel || purity); diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index c8dae6d018..1312628870 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -292,6 +292,10 @@ namespace CalamityMod.CalPlayer target.AddBuff(BuffType(), 60); break; + case ProjectileID.LunarFlare: + target.AddBuff(BuffType(), 180); + break; + case ProjectileID.Cascade: target.AddBuff(BuffID.OnFire, 60); break; diff --git a/Items/Weapons/Melee/StellarStriker.cs b/Items/Weapons/Melee/StellarStriker.cs index 6e2e7945b2..8d38c1555a 100644 --- a/Items/Weapons/Melee/StellarStriker.cs +++ b/Items/Weapons/Melee/StellarStriker.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -34,12 +35,14 @@ namespace CalamityMod.Items.Weapons.Melee public override void OnHitNPC(Player player, NPC target, NPC.HitInfo hit, int damageDone) { + target.AddBuff(ModContent.BuffType(), 300); if (player.whoAmI == Main.myPlayer) SpawnFlaresNPC(player, Item.knockBack, GetOnHitDamage(player), target); } public override void OnHitPvp(Player player, Player target, Player.HurtInfo hurtInfo) { + target.AddBuff(ModContent.BuffType(), 300); if (player.whoAmI == Main.myPlayer) SpawnFlaresPvp(player, Item.knockBack, GetOnHitDamage(player), target); } diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index f72873a5d4..ea27c983df 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1565,5 +1565,5 @@ AeolianEarthBuff: { Voidfrost: { DisplayName: Voidfrost - Description: Mods.CalamityMod.Buffs.Voidfrost.Description + Description: Entropy ebbs at your being } diff --git a/Projectiles/Magic/Asteroid.cs b/Projectiles/Magic/Asteroid.cs index c109d2a738..a89860f6d3 100644 --- a/Projectiles/Magic/Asteroid.cs +++ b/Projectiles/Magic/Asteroid.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; @@ -57,6 +58,10 @@ namespace CalamityMod.Projectiles.Magic Main.dust[moreGreen].fadeIn = 1f; Main.dust[moreGreen].noGravity = true; } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 180); + } public override void OnKill(int timeLeft) { diff --git a/Projectiles/Melee/JudgementProj.cs b/Projectiles/Melee/JudgementProj.cs index 0137b32032..3570f7823a 100644 --- a/Projectiles/Melee/JudgementProj.cs +++ b/Projectiles/Melee/JudgementProj.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -65,6 +66,11 @@ namespace CalamityMod.Projectiles.Melee CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 200f, 10f, 20f); } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 180); + } + public override void OnKill(int timeLeft) { SoundEngine.PlaySound(SoundID.Item122, Projectile.position); diff --git a/Projectiles/Melee/Whiterain.cs b/Projectiles/Melee/Whiterain.cs index 0bf0617dfa..4d415d6b34 100644 --- a/Projectiles/Melee/Whiterain.cs +++ b/Projectiles/Melee/Whiterain.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; @@ -43,5 +44,9 @@ namespace CalamityMod.Projectiles.Melee CalamityUtils.HomeInOnNPC(Projectile, true, 320f, 14f, 20f); } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 60); + } } } diff --git a/Projectiles/Ranged/PlasmaBlast.cs b/Projectiles/Ranged/PlasmaBlast.cs index 93548a466e..2877dc14bc 100644 --- a/Projectiles/Ranged/PlasmaBlast.cs +++ b/Projectiles/Ranged/PlasmaBlast.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; @@ -94,6 +95,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(ModContent.BuffType(), 180); + } public override void OnKill(int timeLeft) { diff --git a/Projectiles/Rogue/LunarKunaiProj.cs b/Projectiles/Rogue/LunarKunaiProj.cs index ae1f678100..4c6a02c5c7 100644 --- a/Projectiles/Rogue/LunarKunaiProj.cs +++ b/Projectiles/Rogue/LunarKunaiProj.cs @@ -1,4 +1,5 @@ using System; +using CalamityMod.Buffs.DamageOverTime; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; using Terraria; @@ -51,6 +52,11 @@ namespace CalamityMod.Projectiles.Rogue Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, DustID.Vortex, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f); } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 180); + } + public override void OnKill(int timeLeft) { if (lunarEnhance) From 3a8ea325fa7e6b51d48d60cfbf99ce8d4913ad6b Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Mon, 15 Jul 2024 15:39:45 -0700 Subject: [PATCH 3/9] New sprite and visuals for Nightwither --- Buffs/DamageOverTime/Nightwither.cs | 12 ++++++------ Buffs/DamageOverTime/Nightwither.png | Bin 517 -> 3284 bytes Buffs/DamageOverTime/Voidfrost.png | Bin 659 -> 517 bytes Projectiles/Ranged/AstralRound.cs | 5 ----- Projectiles/Summon/EndoIceShard.cs | 5 +++-- 5 files changed, 9 insertions(+), 13 deletions(-) diff --git a/Buffs/DamageOverTime/Nightwither.cs b/Buffs/DamageOverTime/Nightwither.cs index 553cfc013b..6b3db2fead 100644 --- a/Buffs/DamageOverTime/Nightwither.cs +++ b/Buffs/DamageOverTime/Nightwither.cs @@ -37,16 +37,16 @@ namespace CalamityMod.Buffs.DamageOverTime if (Main.rand.NextBool(hasDebuffResistance ? 4 : 2)) { Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f); - CritSpark spark = new CritSpark(Player.Calamity().RandomDebuffVisualSpot, Vect, Main.rand.NextBool() ? Color.Cyan : Color.DarkBlue, Color.DodgerBlue, (hasDebuffResistance ? 0.4f : 0.8f), 15, 2f, 1.9f); + CritSpark spark = new CritSpark(Player.Calamity().RandomDebuffVisualSpot, Vect, Main.rand.NextBool() ? Color.Cyan : Color.Turquoise, Color.PaleTurquoise, (hasDebuffResistance ? 0.4f : 0.8f), 15, 2f, 1.9f); GeneralParticleHandler.SpawnParticle(spark); } for (int i = 0; i < (hasDebuffResistance ? 1 : 2); i++) { Vector2 dustCorner = Player.position - 2f * Vector2.One; Vector2 dustVel = Player.velocity + new Vector2(0f, Main.rand.NextFloat(-11f, -2f)); - int d = Dust.NewDust(dustCorner, Player.width + 4, Player.height + 4, Main.rand.NextBool(4) ? 160 : 206, dustVel.X, dustVel.Y); + int d = Dust.NewDust(dustCorner, Player.width + 4, Player.height + 4, Main.rand.NextBool(4) ? 300 : 323, dustVel.X, dustVel.Y); Main.dust[d].noGravity = true; - Main.dust[d].scale = hasDebuffResistance ? Main.rand.NextFloat(0.3f, 0.4f) : Main.rand.NextFloat(0.5f, 0.7f); + Main.dust[d].scale = hasDebuffResistance ? Main.rand.NextFloat(0.3f, 0.3f) : Main.rand.NextFloat(0.5f, 0.5f); Main.dust[d].alpha = 235; } } @@ -57,16 +57,16 @@ namespace CalamityMod.Buffs.DamageOverTime if (Main.rand.NextBool(3)) { Vector2 Vect = new Vector2(0f, Main.rand.NextBool(4) ? -5f : -9f).RotatedByRandom(MathHelper.ToRadians(25f)) * Main.rand.NextFloat(0.1f, 1.9f); - CritSpark spark = new CritSpark(npcSize, Vect, Main.rand.NextBool() ? Color.Cyan : Color.DarkBlue, Color.DodgerBlue, 0.8f, 15, 2f, 1.9f); + CritSpark spark = new CritSpark(npcSize, Vect, Main.rand.NextBool() ? Color.Cyan : Color.Turquoise, Color.PaleTurquoise, 0.8f, 15, 2f, 1.9f); GeneralParticleHandler.SpawnParticle(spark); } for (int i = 0; i < 2; i++) { Vector2 dustCorner = npc.position - 2f * Vector2.One; Vector2 dustVel = npc.velocity + new Vector2(0f, Main.rand.NextFloat(-11f, -2f)); - int d = Dust.NewDust(dustCorner, npc.width + 4, npc.height + 4, Main.rand.NextBool(4) ? 160 : 206, dustVel.X, dustVel.Y); + int d = Dust.NewDust(dustCorner, npc.width + 4, npc.height + 4, Main.rand.NextBool(4) ? 300 : 323, dustVel.X, dustVel.Y); Main.dust[d].noGravity = true; - Main.dust[d].scale = Main.rand.NextFloat(0.6f, 0.8f); + Main.dust[d].scale = Main.rand.NextFloat(0.5f, 0.5f); Main.dust[d].alpha = 235; } } diff --git a/Buffs/DamageOverTime/Nightwither.png b/Buffs/DamageOverTime/Nightwither.png index 7a68497f9b094e5013a25ebed24bb4bc1b9ab63e..24bfff9d1e6a21369c0a7554127b95550be9d647 100644 GIT binary patch delta 3280 zcmV;>3@`JA1k@RjB!2{FK}|sb0I`n?{9y$E017v0Lqkw=Qb$4{Nkv08F*!CiEix`K z002mdotAf0Q`r`W&%HOjP?8Xel+bHvQUXW~y-1NRDlrKVO2Ci+A~r-+a70m&rU)`9 z;DDn;k+C9*g#l5q>jW7@)NybW8eS9UZc9vd* zf9@GXANa%eSALld0I;TIwb}ZIZD|z%UF!i*yZwjFU@riQvc7c=eQ_STd|pz-;w)z? ztK8gNO97v2DKF^n`kxMeLtlK)Qoh~qM8wF>;&Ay4=AVc7 z9|!(*9)A`Q{3O1JFO)?@%ce{qOqR7<$Ps@_@A2i55xYX*}0a9+V~OBmRJI% zAsRq_9snpR5g-YBWGm3`eGA4%1NqI1(V3W?`_F>@eOI_l{>T<2e~x2E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*ax5}P-+_&qPpt=D5RH^R9_W%F@4rN$LW=%~1DgXcg2mk;800000(o>TF O0000-YREtd(Xc^}k9+eW zCg_vC+dcQ)d(Zj2^Ugib=IZPPppgGA(nL9&b{jxPGY_rmh<`-x@wyw@sK+&0)&7xt zsA|uovqi81fqEBs#sUCzjZ7-`ug5q5&g7Y57c$-b697CV50&|r6R_EB-aqAlM3(o> z0tS)s`6&Prv0DHNr@Meb;PdScfaL2H(2fKo2Qv2&#jX?aZ>$35ByO(vfOaIH%j~NV z={ez!p8ysjP=9wF&}HO8iG=>{MM5G~CLppNftm0=0Oz5Vx;7FLiI`dsrk95RxIB2S zy3Tq8#N$LP48Z$wsG$SQA{SYYfM{)N5rAm0G_FOWZy~I#lgQgA2c(wko*NOV6-}gP zyGS2bDxu~;%L!EO0^fjNnOMIl)#|`tuC5IuFD_*)L}XLjJBr4-!vC-AEu81^kG4~WN(xlO?MD$FG0+}f=tlCC(D&H`2>AkzE!ze)(| he@NCL@bCYQe*hZ@t1&lpF-8CY002ovPDHLkV1lxD=T`s# diff --git a/Buffs/DamageOverTime/Voidfrost.png b/Buffs/DamageOverTime/Voidfrost.png index 9cc113a1a993d59a90dc1a006f67085e07450bb0..7a68497f9b094e5013a25ebed24bb4bc1b9ab63e 100644 GIT binary patch delta 492 zcmVPx$zez+vR9J=Om%mFwQ545NrY50~5!Dbz z(GO~IXbftJh-iqWh8BnV2b}y9oZ5n*#Z_o&h=_2gpeY(ENU|uBglfn@3DK}YkB@uv zAtvaPzS}+b-FwgZyz|aI&*tjv1)z}sF49CfoOT;PM>7wt>VJqt?(w=C+Nj4hTGjrM zd#Gy9q_ah^0)cuLc*X(%bd5|Z_OHh{0M6u@Viz*q{SyE@B@dPPmJ_hqZQeiSfJBz} z%>o9I@%bqL60utV3a7h(LE!W44uItA70`|ZBnLA05yh?(@o%gG<|J;e_keaJpv&y5 z5a~JLj-LP)B7abK9nfXuLWzX_?nOc(RVE;^9)X$gJ^<&TmAW<(5{Z~v52lxg0JuDO zuDZ^81jOS+EDXT=aj2mK%pwz*4CsTED6 zXS+xrS1O_AK+6eK?gHO{Uzu3HDAnq~V6LtWBQGvxEM-Jf+dGQgdUt_zuaXPV;8AI! zoCCE;m_@F?d+CToEhq4+9~ky6DG!Lpj=4?1_$tgKlgVHVqA@J}2j(-3f2&*wSbTLK%00000)+jA1d|1jBYy$-Nkl6h9+y68zH=AqGJWf>=X?5M&axMiAuS z7BmM!Bu-|FLyd*FWGzOJL(pPHK~O}6;ZP9N&{ir4K~Nao-A}sfJ3nple#`sreDC?a z-+Oo8dltgs9A2%HU$FLjh!H;Qqof(E)k{(T=~?iHb@^u5@_!?{NQcpl$Y(Q4bmQo} zLghrjVYrU_EKMCIiUWe3jql6;NQTt)U;q#5NX2zW@AU&vbF zP_Wa70acDwk;nGZf?jfFp6QY1OyCrJmCiI{pi!MBIY;ERVpVX2eKRKV1%4lBR|Bo) z9FbRVUkn|pn14Wx*+Nr{fy}0+3^aadGje%fW+MKW;k72(>B|5x?q~1#;IdPBuZY<0 z@1t@k$n*x?%r0r-Uw;NxA}3UOdR$bxBVI!WY(5tG#afBV-0NFQFQ6X-i6U!^@O9hg zUoS^KOJyvQ7IH3QE5A-tSg z%n8h#ay{G&D&X9!B8Pwd`hi9bAm<$TI!^L+cJZ#QKahJ()W-Y4wk8Z)r}^Nwl40J>CEtDH07YB$WE!vCrPxjP0r&Ol=b=$+o76#SWHO{QTpsHSCY zrsHo?Z*<_|6j9&l00000NkvXXu0mjfLuAm5r=*lIgZuy{!ry}WY5?}Guj8!D3PNO1 zzi*Pz?Q+?kJ^tHq1|9%fxbA-1`*eW-000011OAe;aI002ovPDHLkV1lsZFu?!- diff --git a/Projectiles/Ranged/AstralRound.cs b/Projectiles/Ranged/AstralRound.cs index dc5230a47c..a1446183d8 100644 --- a/Projectiles/Ranged/AstralRound.cs +++ b/Projectiles/Ranged/AstralRound.cs @@ -73,10 +73,5 @@ namespace CalamityMod.Projectiles.Ranged CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 200f, speed, 12f); return false; } - - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(ModContent.BuffType(), 800); - } } } diff --git a/Projectiles/Summon/EndoIceShard.cs b/Projectiles/Summon/EndoIceShard.cs index 9d87d5f665..4a476027fd 100644 --- a/Projectiles/Summon/EndoIceShard.cs +++ b/Projectiles/Summon/EndoIceShard.cs @@ -1,4 +1,5 @@ -using CalamityMod.Buffs.StatDebuffs; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -125,7 +126,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { target.AddBuff(ModContent.BuffType(), 60); - target.AddBuff(BuffID.Frostburn, 180); + target.AddBuff(ModContent.BuffType(), 180); } } } From b79fc3a514dd21e13629d7f1736acb777c9cbbcb Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Mon, 15 Jul 2024 18:25:36 -0700 Subject: [PATCH 4/9] Boss debuff changes --- NPCs/Providence/Providence.cs | 5 +++-- Projectiles/Boss/PhantomBlast.cs | 2 +- Projectiles/Boss/PhantomHookShot.cs | 2 +- Projectiles/Boss/PhantomMine.cs | 2 +- Projectiles/Boss/PhantomShot.cs | 2 +- Utilities/NPCDebuffs.cs | 4 ++-- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index 66c3a7bb2f..f0daefab03 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -2744,10 +2744,11 @@ namespace CalamityMod.NPCs.Providence BuffType = BuffID.CursedInferno; Multiplier = 0.75f; break; - case (int)Providence.BossMode.Blue: //Same as night - case (int)Providence.BossMode.Night: + case (int)Providence.BossMode.Blue: //Night Providence no longer inflicts a different debuff BuffType = ModContent.BuffType(); break; + case (int)Providence.BossMode.Night: //Same as Day, will inflict Holy Flames + break; case (int)Providence.BossMode.Violet: BuffType = ModContent.BuffType(); Multiplier = 0.60f; diff --git a/Projectiles/Boss/PhantomBlast.cs b/Projectiles/Boss/PhantomBlast.cs index fb76be00e3..8069efd309 100644 --- a/Projectiles/Boss/PhantomBlast.cs +++ b/Projectiles/Boss/PhantomBlast.cs @@ -117,7 +117,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); } } } diff --git a/Projectiles/Boss/PhantomHookShot.cs b/Projectiles/Boss/PhantomHookShot.cs index 133cb9ef32..32d119dd72 100644 --- a/Projectiles/Boss/PhantomHookShot.cs +++ b/Projectiles/Boss/PhantomHookShot.cs @@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 80); + target.AddBuff(ModContent.BuffType(), 80); } public override Color? GetAlpha(Color lightColor) diff --git a/Projectiles/Boss/PhantomMine.cs b/Projectiles/Boss/PhantomMine.cs index 31c1331385..fcadc0e03b 100644 --- a/Projectiles/Boss/PhantomMine.cs +++ b/Projectiles/Boss/PhantomMine.cs @@ -106,7 +106,7 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.velocity.Length() >= Projectile.ai[0]) { - target.AddBuff(ModContent.BuffType(), 120); + target.AddBuff(ModContent.BuffType(), 120); target.AddBuff(ModContent.BuffType(), 180); } } diff --git a/Projectiles/Boss/PhantomShot.cs b/Projectiles/Boss/PhantomShot.cs index 3d1d3021cf..0cc7f9eed7 100644 --- a/Projectiles/Boss/PhantomShot.cs +++ b/Projectiles/Boss/PhantomShot.cs @@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - target.AddBuff(ModContent.BuffType(), 80); + target.AddBuff(ModContent.BuffType(), 80); } } } diff --git a/Utilities/NPCDebuffs.cs b/Utilities/NPCDebuffs.cs index d147204c86..20785f2cac 100644 --- a/Utilities/NPCDebuffs.cs +++ b/Utilities/NPCDebuffs.cs @@ -146,7 +146,7 @@ namespace CalamityMod private static readonly int[] cragEnemyImmunities = new int[3] { BuffID.OnFire, BuffID.OnFire3, ModContent.BuffType() }; private static readonly int[] astralEnemyImmunities = new int[2] { BuffID.Poisoned, ModContent.BuffType() }; private static readonly int[] plagueEnemyImmunities = new int[3] { BuffID.Poisoned, BuffID.Venom, ModContent.BuffType() }; - private static readonly int[] holyEnemyImmunities = new int[4] { BuffID.OnFire, BuffID.OnFire3, ModContent.BuffType(), ModContent.BuffType() }; + private static readonly int[] holyEnemyImmunities = new int[4] { BuffID.OnFire, BuffID.OnFire3, ModContent.BuffType(), BuffID.Daybreak }; #endregion #region Load/Unload @@ -269,7 +269,7 @@ namespace CalamityMod { ModContent.NPCType(), immuneToEverything }, { ModContent.NPCType(), immuneToEverything }, - { ModContent.NPCType(), new(GeneralImmunityStatus.None, new int[] { ModContent.BuffType(), ModContent.BuffType() }) }, + { ModContent.NPCType(), new(GeneralImmunityStatus.None, new int[] { ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType() }) }, { ModContent.NPCType(), immuneToEverything }, { ModContent.NPCType(), immuneToEverything }, { ModContent.NPCType(), immuneToEverything }, From 777d032a442741cff5b07f127c74744c2f33f2fc Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Mon, 15 Jul 2024 19:43:14 -0700 Subject: [PATCH 5/9] Asgardian/Fearmonger give Voidrost immunity --- CalPlayer/CalamityPlayerOnHit.cs | 4 +--- Items/Accessories/AsgardianAegis.cs | 1 + Items/Armor/Fearmonger/FearmongerGreathelm.cs | 1 + Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 1312628870..8a4049f28b 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -1271,10 +1271,8 @@ namespace CalamityMod.CalPlayer if (profanedCrystalBuffs) { bool empowered = pscState == (int)ProfanedSoulCrystal.ProfanedSoulCrystalState.Empowered; - if (empowered || Main.dayTime) + if (empowered) target.AddBuff(BuffType(), 600); - if (empowered || !Main.dayTime) - target.AddBuff(BuffType(), 600); } if (divineBless) diff --git a/Items/Accessories/AsgardianAegis.cs b/Items/Accessories/AsgardianAegis.cs index bc60e6071f..7a80aadb2a 100644 --- a/Items/Accessories/AsgardianAegis.cs +++ b/Items/Accessories/AsgardianAegis.cs @@ -83,6 +83,7 @@ namespace CalamityMod.Items.Accessories player.buffImmune[BuffID.Daybreak] = true; player.buffImmune[ModContent.BuffType()] = true; player.buffImmune[ModContent.BuffType()] = true; + player.buffImmune[ModContent.BuffType()] = true; // Immune to God Slayer Inferno itself player.buffImmune[ModContent.BuffType()] = true; diff --git a/Items/Armor/Fearmonger/FearmongerGreathelm.cs b/Items/Armor/Fearmonger/FearmongerGreathelm.cs index 4454c1f4c7..ec7d8b167f 100644 --- a/Items/Armor/Fearmonger/FearmongerGreathelm.cs +++ b/Items/Armor/Fearmonger/FearmongerGreathelm.cs @@ -63,6 +63,7 @@ namespace CalamityMod.Items.Armor.Fearmonger ModContent.BuffType(), ModContent.BuffType(), ModContent.BuffType(), + ModContent.BuffType(), ModContent.BuffType(), BuffID.Chilled, BuffID.Frozen, diff --git a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson index 4fda6ed14d..e941acc05e 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Accessories.hjson @@ -245,7 +245,7 @@ AsgardianAegis: { Bleeding, Poisoned, Acid Venom, Sulphuric Poisoning, Slow, Confused, Silenced, Cursed, Darkness, Webbed, Mighty Wind, Stoned, Armor Crunch, Blackout, Brain Rot, Burning Blood, Cursed Inferno, Brimstone Flames, - Shadowflame, Daybroken, Nightwither, Holy Flames, God Slayer Inferno, Burning + Shadowflame, Daybroken, Nightwither, Holy Flames, Voidfrost, God Slayer Inferno, Burning ''' } From 2c44c71601379428098f376c82bda2204e1e6505 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Tue, 23 Jul 2024 16:17:58 -0700 Subject: [PATCH 6/9] Added Metarex's Nightwither icon --- Buffs/DamageOverTime/Nightwither.png | Bin 3284 -> 623 bytes Projectiles/Melee/OrderbringerRain.cs | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Buffs/DamageOverTime/Nightwither.png b/Buffs/DamageOverTime/Nightwither.png index 24bfff9d1e6a21369c0a7554127b95550be9d647..648834aa00640989abc0d462adf75d78dd9850dd 100644 GIT binary patch delta 564 zcmV-40?Yl>8Sey;B!2;OQb$4nuFf3k0006HNklvz@!Lu+JEF^V`gn(8_l|Lel2O>y{5YnX7LdX@KdWVRj2wI2)xz3BC z#qP^Gvp0IA@a9#sGqXGU-hAhMzmp(DO)`1KJ>sHROaMH%&woYBA@RS=8*1wS=;~}Y z`qQsp8PD0@>j3O+?*i~Ew`Gj`uYi~eV%*ZvTG0ai11SKWG@J8Zj86eRDUf;={AvA2 zpE2QJGuXTO{UQJ-YXxI`WNf&ig={4b_k-_NU4a@k#5^-F3BaSL{l>)8jVu5!=idX7 z65qf51R^CA?SFzRR-}YK3J5lHyZ^_hF8~aE{R}{9aSe!=yBIGmECX?$@J9hfyY|`@ z10PCx00uv%0Vss0qotv#>;j4r8~(+B&bjt>b!N_(DCSp>O=mo7P6mzh+ZVEPhBrPC z%LTS0Humk*r;UCo(vc1J{w^nUjr*^F;Hm+IN-HEmr@=o3#Ps-Y>DCvY z_jVi4`N9qm)dhB)Ac(n8bp>KR@NbVpMuM$~7~3)7Vs68~Y$)jF@-{sR+;B2W5f?5W z)&gjW7@)NybW8eS9UZc9vd* zf9@GXANa%eSALld0I;TIwb}ZIZD|z%UF!i*yZwjFU@riQvc7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HioC`C~iz<)2w;u#QS;8}!{ zfq{p3q9_dhB*kV>5@A6IF`*=7uzwjOq)-&0@GKT7%EF`+1}p|$!|UsHPWQT$IDXSR z-#zbqzs`C0d*AU`mIXkJFERAtmw3Lt_W*eQT)>->U;$L*7Jh31e`>Ze4&I#GJ|9|{ zQ{s~sK>&KQ{Fp7EC(t=M*ax5}P-+_&qPpt=D5RH^R9_mfEiCT5T$!2kdN diff --git a/Projectiles/Melee/OrderbringerRain.cs b/Projectiles/Melee/OrderbringerRain.cs index e581612610..193b334d26 100644 --- a/Projectiles/Melee/OrderbringerRain.cs +++ b/Projectiles/Melee/OrderbringerRain.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Melee } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { - target.AddBuff(ModContent.BuffType(), 800); + target.AddBuff(ModContent.BuffType(), 80); } } } From 7f1c8bd5ed1e8fc9d5e40d833a7b0fcf4b812704 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Wed, 24 Jul 2024 15:43:53 -0700 Subject: [PATCH 7/9] Profaned Soul Crystal fixes --- CalPlayer/CalamityPlayerMiscEffects.cs | 1 - CalPlayer/CalamityPlayerOnHit.cs | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 78d47cb55b..81e3237d2a 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3442,7 +3442,6 @@ namespace CalamityMod.CalPlayer Player.lavaImmune = true; Player.fireWalk = true; Player.buffImmune[ModContent.BuffType()] = Main.dayTime || empowered; - Player.buffImmune[ModContent.BuffType()] = !Main.dayTime || empowered; Player.buffImmune[BuffID.OnFire] = true; Player.buffImmune[BuffID.Burning] = true; Player.buffImmune[BuffID.Daybreak] = true; diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 99a4912340..535ad271a8 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -1265,11 +1265,9 @@ namespace CalamityMod.CalPlayer if (pSoulArtifact && !profanedCrystal) target.AddBuff(BuffType(), 300); - if (profanedCrystalBuffs) + if (profanedCrystal && (DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs)) { - bool empowered = pscState == (int)ProfanedSoulCrystal.ProfanedSoulCrystalState.Empowered; - if (empowered) - target.AddBuff(BuffType(), 600); + target.AddBuff(BuffType(), 600); } if (divineBless) From 0cc2406c46a590548e33dc66d070987fd7069e7e Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 30 Jul 2024 18:51:33 -0400 Subject: [PATCH 8/9] Improve Voidfrost buff flavor text --- Localization/en-US/Mods.CalamityMod.Buffs.hjson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.Buffs.hjson b/Localization/en-US/Mods.CalamityMod.Buffs.hjson index 70b4668f2e..f37881d4da 100644 --- a/Localization/en-US/Mods.CalamityMod.Buffs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Buffs.hjson @@ -1560,5 +1560,5 @@ AeolianEarthBuff: { Voidfrost: { DisplayName: Voidfrost - Description: Entropy ebbs at your being + Description: The emptiness of space devours all warmth and life } From 69e16b5a87201bf8ed0ccd1db6fd5afc51d0dcd8 Mon Sep 17 00:00:00 2001 From: mochi-angel Date: Tue, 30 Jul 2024 17:14:05 -0700 Subject: [PATCH 9/9] Astral Rounds fix --- Projectiles/Ranged/AstralRound.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Projectiles/Ranged/AstralRound.cs b/Projectiles/Ranged/AstralRound.cs index a1446183d8..16b047ceb3 100644 --- a/Projectiles/Ranged/AstralRound.cs +++ b/Projectiles/Ranged/AstralRound.cs @@ -73,5 +73,9 @@ namespace CalamityMod.Projectiles.Ranged CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 200f, speed, 12f); return false; } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) + { + target.AddBuff(ModContent.BuffType(), 120); + } } }