From 2e32f60d01f4f9d0ef397cade92aec7a87ddcc83 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Mon, 21 Oct 2019 22:26:06 -0400 Subject: [PATCH] Scourge of the Seas rework and Abyss no water death message --- Buffs/DamageOverTime/MaxVenom.cs | 23 ++ Buffs/DamageOverTime/MaxVenom.png | Bin 0 -> 543 bytes CalPlayer/CalamityPlayer.cs | 4 + Items/Weapons/Rogue/ScourgeoftheSeas.cs | 16 +- NPCs/AstrumAureus/AstrumAureus.cs | 1 + NPCs/BrimstoneElemental/BrimstoneElemental.cs | 1 + NPCs/Calamitas/Calamitas.cs | 1 + NPCs/Calamitas/CalamitasRun.cs | 1 + NPCs/Calamitas/CalamitasRun2.cs | 1 + NPCs/Calamitas/CalamitasRun3.cs | 1 + NPCs/CalamityGlobalNPC.cs | 34 ++- NPCs/Cryogen/Cryogen.cs | 1 + NPCs/Leviathan/Leviathan.cs | 1 + NPCs/Leviathan/Siren.cs | 1 + Projectiles/Rogue/ScourgeVenomCloud.cs | 5 + .../Rogue/ScourgeoftheSeasProjectile.cs | 41 +++- Projectiles/Rogue/ScourgeoftheSeasStealth.cs | 223 ------------------ Projectiles/Rogue/ScourgeoftheSeasStealth.png | Bin 2187 -> 0 bytes 18 files changed, 103 insertions(+), 252 deletions(-) create mode 100644 Buffs/DamageOverTime/MaxVenom.cs create mode 100644 Buffs/DamageOverTime/MaxVenom.png delete mode 100644 Projectiles/Rogue/ScourgeoftheSeasStealth.cs delete mode 100644 Projectiles/Rogue/ScourgeoftheSeasStealth.png diff --git a/Buffs/DamageOverTime/MaxVenom.cs b/Buffs/DamageOverTime/MaxVenom.cs new file mode 100644 index 0000000000..1ef4d0fc48 --- /dev/null +++ b/Buffs/DamageOverTime/MaxVenom.cs @@ -0,0 +1,23 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Buffs.DamageOverTime +{ + public class MaxVenom : ModBuff + { + public override void SetDefaults() + { + DisplayName.SetDefault("Vile Toxins"); + Description.SetDefault("The illness has spread"); //nope, not an AHiT reference, definitely not + Main.debuff[Type] = true; + Main.pvpBuff[Type] = true; + Main.buffNoSave[Type] = true; + longerExpertDebuff = false; + } + + public override void Update(NPC npc, ref int buffIndex) + { + npc.Calamity().maxVenom = true; + } + } +} diff --git a/Buffs/DamageOverTime/MaxVenom.png b/Buffs/DamageOverTime/MaxVenom.png new file mode 100644 index 0000000000000000000000000000000000000000..6ef126b72de3474d44ba775651e554544ec47006 GIT binary patch literal 543 zcmV+)0^t3LP)Y5PgBzik$&bLC{Vx+#j&Bv#>CTb$UNQO(8)nqJo;T2e^lh`N<)G zh#~5)0Dy3NRrD7pH%z-;l{1ge3wiA9n|0oQ;tfa(i3X72L*+{Lm(~FM^@LH-t8_N#45Nwx6E}+koiaZQz|lxRK4)W1FllpXeSaGS-32*IDRgR zw#x#W|85=Y34c7m%Eo97>V^sTd?r5)04UvViV1X<&|}&YdL6(!4=8lyc~g#8md|7L z#->IA0L8Y-mc`k@3>X#?PeWY^_1=EHeFFd*YC`rW!vE7yo$I~ofM&c@m;(Sb9$ThE z#g4u?`Qrfxdy@%m?PfjDU@Wjs5M<7J;i5m`hUB3Kh_1?L&ImHTXjaAF!S1^_!z30nFujA8cm;s` 3 && damage == 10.0 && hitDirection == 0 && damageSource.SourceOtherIndex == 8) { if (Main.rand.Next(2) == 0) diff --git a/Items/Weapons/Rogue/ScourgeoftheSeas.cs b/Items/Weapons/Rogue/ScourgeoftheSeas.cs index 98e6e3e05d..a892b31758 100644 --- a/Items/Weapons/Rogue/ScourgeoftheSeas.cs +++ b/Items/Weapons/Rogue/ScourgeoftheSeas.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Rogue; +using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -11,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Rogue { DisplayName.SetDefault("Scourge of the Seas"); Tooltip.SetDefault("Snaps apart into a venomous cloud upon striking an enemy\n" + - "Stealth strikes stick to enemies and apply a powerful venom"); + "Stealth strikes are coated with vile toxins, afflicting enemies with a powerful debuff"); } public override void SafeSetDefaults() @@ -36,16 +37,13 @@ namespace CalamityMod.Items.Weapons.Rogue public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { - if (player.Calamity().StealthStrikeAvailable()) + if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike { - int p = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 0f); - Main.projectile[p].Calamity().stealthStrike = true; + int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI, 0f, 1f); + Main.projectile[stealth].Calamity().stealthStrike = true; + return false; } - else - { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f); - } - return false; + return true; } } } diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index 23db637ffb..33a569f0b7 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -62,6 +62,7 @@ namespace CalamityMod.NPCs.AstrumAureus npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; npc.DeathSound = SoundID.NPCDeath14; Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index fba70e419a..5098a8d794 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -68,6 +68,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/Calamitas/Calamitas.cs b/NPCs/Calamitas/Calamitas.cs index 742098b63d..d3e08d3a9e 100644 --- a/NPCs/Calamitas/Calamitas.cs +++ b/NPCs/Calamitas/Calamitas.cs @@ -61,6 +61,7 @@ namespace CalamityMod.NPCs.Calamitas npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/Calamitas/CalamitasRun.cs b/NPCs/Calamitas/CalamitasRun.cs index 938f839849..fd795198dc 100644 --- a/NPCs/Calamitas/CalamitasRun.cs +++ b/NPCs/Calamitas/CalamitasRun.cs @@ -64,6 +64,7 @@ namespace CalamityMod.NPCs.Calamitas npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit4; diff --git a/NPCs/Calamitas/CalamitasRun2.cs b/NPCs/Calamitas/CalamitasRun2.cs index d261d3b1cc..b7491872be 100644 --- a/NPCs/Calamitas/CalamitasRun2.cs +++ b/NPCs/Calamitas/CalamitasRun2.cs @@ -66,6 +66,7 @@ namespace CalamityMod.NPCs.Calamitas npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.HitSound = SoundID.NPCHit4; npc.DeathSound = SoundID.NPCDeath14; Mod calamityModMusic = ModLoader.GetMod("CalamityModMusic"); diff --git a/NPCs/Calamitas/CalamitasRun3.cs b/NPCs/Calamitas/CalamitasRun3.cs index c4fb228e53..42fe77c89f 100644 --- a/NPCs/Calamitas/CalamitasRun3.cs +++ b/NPCs/Calamitas/CalamitasRun3.cs @@ -77,6 +77,7 @@ namespace CalamityMod.NPCs.Calamitas npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 5731f12201..37c9462f25 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -112,6 +112,7 @@ namespace CalamityMod.NPCs public bool pearlAura = false; public bool shellfishVore = false; public bool clamDebuff = false; + public bool maxVenom = false; // whoAmI Variables public static int bobbitWormBottom = -1; @@ -314,6 +315,7 @@ namespace CalamityMod.NPCs pearlAura = false; shellfishVore = false; clamDebuff = false; + maxVenom = false; } #endregion @@ -379,15 +381,6 @@ namespace CalamityMod.NPCs projectileCount++; } } - for (int j = 0; j < 1000; j++) - { - if (Main.projectile[j].active && - (Main.projectile[j].type == ModContent.ProjectileType()) && - Main.projectile[j].ai[0] == 1f && Main.projectile[j].ai[1] == npc.whoAmI) - { - projectileCount += 6; - } - } if (projectileCount > 0) { @@ -520,6 +513,7 @@ namespace CalamityMod.NPCs ApplyDPSDebuff(nightwither, 200, 40, ref npc.lifeRegen, ref damage); ApplyDPSDebuff(dFlames, 2500, 500, ref npc.lifeRegen, ref damage); ApplyDPSDebuff(bBlood, 50, 10, ref npc.lifeRegen, ref damage); + ApplyDPSDebuff(maxVenom, 180, 36, ref npc.lifeRegen, ref damage); } public void ApplyDPSDebuff(bool debuff, int lifeRegenValue, int damageValue, ref int lifeRegen, ref int damage) @@ -605,6 +599,11 @@ namespace CalamityMod.NPCs } } } + + if (npc.buffImmune[BuffID.Venom] == false) + { + npc.buffImmune[ModContent.BuffType()] = false; + } npc.buffImmune[ModContent.BuffType()] = false; @@ -2940,13 +2939,28 @@ namespace CalamityMod.NPCs } Lighting.AddLight(npc.position, 0.1f, 0f, 0.135f); } + if (maxVenom) + { + if (Main.rand.Next(5) < 4) + { + int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, 171, npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default, 1.5f); + Main.dust[dust].noGravity = true; + Main.dust[dust].velocity *= 1.1f; + Main.dust[dust].velocity.Y += 0.25f; + if (Main.rand.NextBool(2)) + { + Main.dust[dust].noGravity = false; + Main.dust[dust].scale *= 0.5f; + } + } + } if (gState || eFreeze) { drawColor = Color.Cyan; } - if (marked) + if (marked || maxVenom) { drawColor = Color.Fuchsia; } diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index 0c75e7a26a..f7bf2d924a 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -73,6 +73,7 @@ namespace CalamityMod.NPCs.Cryogen npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.boss = true; npc.noGravity = true; npc.noTileCollide = true; diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index 903da10481..2498665638 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -64,6 +64,7 @@ namespace CalamityMod.NPCs.Leviathan npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.HitSound = SoundID.NPCHit56; npc.DeathSound = SoundID.NPCDeath60; npc.noTileCollide = true; diff --git a/NPCs/Leviathan/Siren.cs b/NPCs/Leviathan/Siren.cs index d6c9f3048b..05a37e3a5d 100644 --- a/NPCs/Leviathan/Siren.cs +++ b/NPCs/Leviathan/Siren.cs @@ -60,6 +60,7 @@ namespace CalamityMod.NPCs.Leviathan npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; npc.buffImmune[ModContent.BuffType()] = false; + npc.buffImmune[ModContent.BuffType()] = false; npc.noGravity = true; npc.noTileCollide = true; npc.HitSound = SoundID.NPCHit1; diff --git a/Projectiles/Rogue/ScourgeVenomCloud.cs b/Projectiles/Rogue/ScourgeVenomCloud.cs index 73e59b73ea..11fc27f8ae 100644 --- a/Projectiles/Rogue/ScourgeVenomCloud.cs +++ b/Projectiles/Rogue/ScourgeVenomCloud.cs @@ -1,6 +1,7 @@ using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Buffs.DamageOverTime; namespace CalamityMod.Projectiles.Rogue { @@ -69,6 +70,10 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Venom, 240); + if (projectile.ai[1] == 1f && projectile.owner == Main.myPlayer) //stealth strike attack + { + target.AddBuff(ModContent.BuffType(), 240); + } } } } diff --git a/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs b/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs index ed15dcd73c..32b1c20125 100644 --- a/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs +++ b/Projectiles/Rogue/ScourgeoftheSeasProjectile.cs @@ -4,6 +4,7 @@ using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; +using CalamityMod.Buffs.DamageOverTime; namespace CalamityMod.Projectiles.Rogue { @@ -51,6 +52,10 @@ namespace CalamityMod.Projectiles.Rogue public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(BuffID.Venom, 600); + if (projectile.Calamity().stealthStrike == true) //stealth strike attack + { + target.AddBuff(ModContent.BuffType(), 600); + } } public override void Kill(int timeLeft) @@ -63,16 +68,32 @@ namespace CalamityMod.Projectiles.Rogue } if (projectile.owner == Main.myPlayer) { - int num320 = Main.rand.Next(2, 6); - int num3; - for (int num321 = 0; num321 < num320; num321 = num3 + 1) - { - Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - vector15.Normalize(); - vector15 *= (float)Main.rand.Next(10, 201) * 0.01f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); - num3 = num321; - } + if (projectile.Calamity().stealthStrike == true) + { + int num320 = Main.rand.Next(2, 6); + int num3; + for (int num321 = 0; num321 < num320; num321 = num3 + 1) + { + Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + vector15.Normalize(); + vector15 *= (float)Main.rand.Next(10, 201) * 0.01f; + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), 1f, projectile.owner, 0f, 1f); + num3 = num321; + } + } + else + { + int num320 = Main.rand.Next(2, 6); + int num3; + for (int num321 = 0; num321 < num320; num321 = num3 + 1) + { + Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + vector15.Normalize(); + vector15 *= (float)Main.rand.Next(10, 201) * 0.01f; + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.25), 1f, projectile.owner, 0f, 0f); + num3 = num321; + } + } } } diff --git a/Projectiles/Rogue/ScourgeoftheSeasStealth.cs b/Projectiles/Rogue/ScourgeoftheSeasStealth.cs deleted file mode 100644 index 5f1ef6de14..0000000000 --- a/Projectiles/Rogue/ScourgeoftheSeasStealth.cs +++ /dev/null @@ -1,223 +0,0 @@ -using CalamityMod.NPCs.Abyss; -using CalamityMod.NPCs.BrimstoneElemental; -using CalamityMod.NPCs.Cryogen; -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using System; -using Terraria; -using Terraria.ID; -using Terraria.ModLoader; -namespace CalamityMod.Projectiles.Rogue -{ - public class ScourgeoftheSeasStealth : ModProjectile - { - public override void SetStaticDefaults() - { - DisplayName.SetDefault("Stealthy Scourge"); - ProjectileID.Sets.TrailCacheLength[projectile.type] = 6; - ProjectileID.Sets.TrailingMode[projectile.type] = 0; - } - - public override void SetDefaults() - { - projectile.width = 26; - projectile.height = 26; - projectile.friendly = true; - projectile.aiStyle = 113; - aiType = 598; - projectile.penetrate = -1; - projectile.extraUpdates = 1; - projectile.timeLeft = 1200; - projectile.Calamity().rogue = true; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 60; - } - - public override void AI() - { - if (Main.rand.Next(5) == 0 && projectile.ai[0] != 1f) - { - Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 85, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); - } - projectile.rotation = (float)Math.Atan2((double)projectile.velocity.Y, (double)projectile.velocity.X) + 0.785f; - if (projectile.ai[0] != 1f) - { - projectile.velocity.X *= 1.015f; - projectile.velocity.Y *= 1.015f; - } - if (projectile.velocity.X > 16f) - { - projectile.velocity.X = 16f; - } - if (projectile.velocity.Y > 16f) - { - projectile.velocity.Y = 16f; - } - if (projectile.ai[0] == 1f) - { - projectile.tileCollide = false; - int num988 = 15; - bool flag54 = false; - bool flag55 = false; - float[] var_2_2CB4E_cp_0 = projectile.localAI; - int var_2_2CB4E_cp_1 = 0; - float num73 = var_2_2CB4E_cp_0[var_2_2CB4E_cp_1]; - var_2_2CB4E_cp_0[var_2_2CB4E_cp_1] = num73 + 1f; - if (projectile.localAI[0] % 30f == 0f) - { - flag55 = true; - } - int num989 = (int)projectile.ai[1]; - if (projectile.localAI[0] >= (float)(60 * num988)) - { - flag54 = true; - } - else if (num989 < 0 || num989 >= 200) - { - flag54 = true; - } - else if (Main.npc[num989].active && !Main.npc[num989].dontTakeDamage) - { - projectile.Center = Main.npc[num989].Center - projectile.velocity * 2f; - projectile.gfxOffY = Main.npc[num989].gfxOffY; - if (flag55) - { - Main.npc[num989].HitEffect(0, 1.0); - } - } - else - { - flag54 = true; - } - if (flag54) - { - projectile.Kill(); - } - } - } - - public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) - { - Rectangle myRect = new Rectangle((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height); - if (projectile.owner == Main.myPlayer) - { - for (int i = 0; i < 200; i++) - { - if (Main.npc[i].active && !Main.npc[i].dontTakeDamage && - ((projectile.friendly && (!Main.npc[i].friendly || projectile.type == 318 || (Main.npc[i].type == 22 && projectile.owner < 255 && Main.player[projectile.owner].killGuide) || (Main.npc[i].type == 54 && projectile.owner < 255 && Main.player[projectile.owner].killClothier))) || - (projectile.hostile && Main.npc[i].friendly && !Main.npc[i].dontTakeDamageFromHostiles)) && (projectile.owner < 0 || Main.npc[i].immune[projectile.owner] == 0 || projectile.maxPenetrate == 1)) - { - if (Main.npc[i].noTileCollide || !projectile.ownerHitCheck || projectile.CanHit(Main.npc[i])) - { - bool flag3; - if (Main.npc[i].type == 414) - { - Rectangle rect = Main.npc[i].getRect(); - int num5 = 8; - rect.X -= num5; - rect.Y -= num5; - rect.Width += num5 * 2; - rect.Height += num5 * 2; - flag3 = projectile.Colliding(myRect, rect); - } - else - { - flag3 = projectile.Colliding(myRect, Main.npc[i].getRect()); - } - if (flag3) - { - if (Main.npc[i].reflectingProjectiles && projectile.CanReflect()) - { - Main.npc[i].ReflectProjectile(projectile.whoAmI); - return; - } - projectile.ai[0] = 1f; - projectile.ai[1] = (float)i; - projectile.velocity = (Main.npc[i].Center - projectile.Center) * 0.75f; - projectile.netUpdate = true; - projectile.StatusNPC(i); - int num28 = 1; - Point[] array2 = new Point[num28]; - int num29 = 0; - for (int l = 0; l < 1000; l++) - { - if (l != projectile.whoAmI && Main.projectile[l].active && Main.projectile[l].owner == Main.myPlayer && Main.projectile[l].type == projectile.type && Main.projectile[l].ai[0] == 1f && Main.projectile[l].ai[1] == (float)i) - { - array2[num29++] = new Point(l, Main.projectile[l].timeLeft); - if (num29 >= array2.Length) - { - break; - } - } - } - if (num29 >= array2.Length) - { - int num30 = 0; - for (int m = 1; m < array2.Length; m++) - { - if (array2[m].Y < array2[num30].Y) - { - num30 = m; - } - } - Main.projectile[array2[num30].X].Kill(); - } - } - } - } - } - } - } - - public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) - { - if (targetHitbox.Width > 8 && targetHitbox.Height > 8) - { - targetHitbox.Inflate(-targetHitbox.Width / 8, -targetHitbox.Height / 8); - } - return null; - } - - public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) - { - if (target.type == ModContent.NPCType() || target.type == ModContent.NPCType() || target.type == NPCID.SkeletronPrime) - { - target.buffImmune[BuffID.Venom] = false; - } - else if (target.buffImmune[BuffID.Venom] && !target.boss && target.aiStyle != 6 && target.type != ModContent.NPCType()) - { - target.buffImmune[BuffID.Venom] = false; - } - target.AddBuff(BuffID.Venom, 600); - } - - public override void Kill(int timeLeft) - { - Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 14); - for (int num621 = 0; num621 < 8; num621++) - { - int num622 = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 85, 0f, 0f, 100, default, 1f); - Main.dust[num622].velocity *= 1f; - } - if (projectile.owner == Main.myPlayer) - { - int num320 = Main.rand.Next(2, 6); - int num3; - for (int num321 = 0; num321 < num320; num321 = num3 + 1) - { - Vector2 vector15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - vector15.Normalize(); - vector15 *= (float)Main.rand.Next(10, 201) * 0.01f; - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector15.X, vector15.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.50), 1f, projectile.owner, 0f, (float)Main.rand.Next(-45, 1)); - num3 = num321; - } - } - } - - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) - { - CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); - return false; - } - } -} diff --git a/Projectiles/Rogue/ScourgeoftheSeasStealth.png b/Projectiles/Rogue/ScourgeoftheSeasStealth.png deleted file mode 100644 index 9c8d0581863031d594b9d68c082456a3c5f66f4a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2187 zcmW+%2{_c-8~#~SS^i;i<+_Bl*a{hSZFOfD$u@}WF%n@clQDLcG(yIfOmUOl-x3)z zGq&v8SQEpLWDPOKKHQ(4bIxl6hP(MSUVK>#9t9-A)9jvpTe@a%TJWM`w~=&ZNwSrk zYT}t^2qb#{D^+*1w|-|cTso`Sk0BNbKY8-F-r+)HMb;~^^J8;~qVD=KT!r7Br&N<1 zZBRb7?9;2klDdJ5#Tf^utAq;=#bvaG#SsEx20DAwSy6FXEm47#+DFQXgbPWj{TGru znA5`;daXnx0_A&^pHQM?e7xa*jEiy1}oql@Oh zV`?Y#e~>|4tCAzuFxi88`m$eRaR-TOfRMja9w#5*A}tWp(8E(fql>e@aNCb4|WL>li|mJzr(9e zw^Kf;LX2#W_`RmHv_BUM;~j{zj_`uONgnpJ=8(KJk_Mn36Z0Z*v?gBZhq&fWJBtxC zCFBb1qq=&4kL)=qKv8EwCod#f*NI`fSJ0PUe^C`FQ%R&9C#(G7Xg65kMSoTwgcnupI$)((v_dCsb*(I%(sN zgd;~1Y8K`WYDC(nX+08u;yNQ!h%aCrNd>_LIi6-9y1d({D*hJX^y_W-kre#T9f!Be$MseluC3NA z<`LTUPB^|4eOKZ^HA8Evyf=3+gZM~5$GTgRaO?9vP!l!j(WZAID~~}2K^R znhPS7{I5>VHg#fVdakBnv`o|b{IX6yJ+B59jI(OQ*iW0;f?_mQmZY*#wwG%r)LJkT z>O|%r;wma1DW6`6F1&Pfko??j!N+kbScdIx60&Dui6fyph`L+7%ILb_ix1a|_0yUQ zSC9qPzi}c)Gqmh*YjI0ol*0CpWB=W9kba?JHJ5B{Wq(n^)B5_?3k{i4`Qi>EqF}+S zrIJv1(I}B!+QO~pA}UnAnUDZ0yqAxUnsi5Li@8)-ZGhKB5JEDEkk;&pj3y@r?g-|~ zX{gxDBW_baAuN7SnmT#WnbR3PS`VG*eCT=Do6}j zn4gD-oXXXrYYu`rkDMs(UtdgY8=@8uv{VY?1MF0cj$Wi_p?0()9toz4ym1b~zRrsS zFi6O{NdEf<$ylQ@1LNR0(YHw}sm}BUX)c`YmVXJ`dnj9VC;L44{1uu!eO1^S^`!U` z0Vii8{E+>F77X#kdOtXNlETer%rC#%yT07YF4D&prF|X=VPh1);0#L~8j!6?_y4N2 z+S(%>F)pG?M55ul)Z%ITKl`IFLe6si79gUGWpsGz;&Tsl?jBEde%ai2Wo(O4a`9}a z(-D_B@2TXUy(MpB-eO5)&e{D3aL!+>dm~N>8UsfZo-6alKH1D&%btMz&rq=p)PAa0 zPU`Y&7^lJ!h)ICtI^mK&-gp80_JuKU8?YPdUpMvlaPz_3!+4;5fGbaJey)OEzz}W% JE4}Ib_&+`7H+%p9