From 17d58623aa765ac3f9790efe328cd59ae36c123a Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Fri, 15 Nov 2019 23:16:25 -0600 Subject: [PATCH 01/10] Exo Tornado alpha decrease --- Projectiles/Ranged/ExoTornado.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Projectiles/Ranged/ExoTornado.cs b/Projectiles/Ranged/ExoTornado.cs index ddd7139b3b..b6bb82a4af 100644 --- a/Projectiles/Ranged/ExoTornado.cs +++ b/Projectiles/Ranged/ExoTornado.cs @@ -96,10 +96,11 @@ namespace CalamityMod.Projectiles.Ranged float num227 = 30f; //15 float num228 = 30f; //15 float num229 = projectile.ai[0]; - float scale5 = MathHelper.Clamp(num229 / 30f, 0f, 1f); + float maxAlpha = 0.3f; + float scale5 = MathHelper.Clamp(num229 / 30f, 0f, maxAlpha); //Fade in if (num229 > num226 - 60f) { - scale5 = MathHelper.Lerp(1f, 0f, (num229 - (num226 - 60f)) / 60f); + scale5 = MathHelper.Lerp(maxAlpha, 0f, (num229 - (num226 - 60f)) / 60f); //Fade out } Point point5 = projectile.Center.ToTileCoordinates(); int num230; From ced5a8182677679357fc50e21e1aea3d6a73b6db Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Sat, 16 Nov 2019 00:05:47 -0600 Subject: [PATCH 02/10] Please don't use Main.rand in SetDefaults --- NPCs/SunkenSea/GhostBellSmall.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/NPCs/SunkenSea/GhostBellSmall.cs b/NPCs/SunkenSea/GhostBellSmall.cs index 42a46fa807..75b989c9bd 100644 --- a/NPCs/SunkenSea/GhostBellSmall.cs +++ b/NPCs/SunkenSea/GhostBellSmall.cs @@ -34,7 +34,6 @@ namespace CalamityMod.NPCs.SunkenSea npc.alpha = 100; npc.HitSound = SoundID.NPCHit25; npc.DeathSound = SoundID.NPCDeath28; - npc.catchItem = (Main.rand.NextBool(20)) ? (short)ModContent.ItemType() : ItemID.None; banner = npc.type; bannerItem = ModContent.ItemType(); } @@ -53,7 +52,14 @@ namespace CalamityMod.NPCs.SunkenSea public override void AI() { - if (Main.rand.Next(8) < 1 && npc.catchItem == (short)ModContent.ItemType()) + if (npc.localAI[0] == 0f) + { + npc.catchItem = (Main.rand.NextBool(20)) ? (short)ModContent.ItemType() : ItemID.None; + npc.localAI[0] = 1f; + npc.velocity.Y = -3f; + npc.netUpdate = true; + } + if (Main.rand.Next(8) < 1 && npc.catchItem == (short)ModContent.ItemType()) { int dust = Dust.NewDust(npc.position - new Vector2(2f, 2f), npc.width + 4, npc.height + 4, 68, npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 200, default, 1f); Main.dust[dust].noGravity = true; @@ -67,12 +73,6 @@ namespace CalamityMod.NPCs.SunkenSea } } Lighting.AddLight(npc.Center, 0f, (255 - npc.alpha) * 1f / 255f, (255 - npc.alpha) * 1f / 255f); - if (npc.localAI[0] == 0f) - { - npc.localAI[0] = 1f; - npc.velocity.Y = -3f; - npc.netUpdate = true; - } if (npc.wet) { npc.noGravity = true; From b5a5bf8eb2e3a1d1b7b6dd2b3042b15aea8db0a9 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 16 Nov 2019 07:17:38 -0500 Subject: [PATCH 03/10] resprites --- Backgrounds/MapBackgrounds/SulphurBG.png | Bin 1534 -> 1887 bytes Items/Weapons/Melee/AnarchyBlade.cs | 4 ++-- Items/Weapons/Melee/AnarchyBlade.png | Bin 2313 -> 2869 bytes Items/Weapons/Melee/Waraxe.png | Bin 600 -> 842 bytes 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Backgrounds/MapBackgrounds/SulphurBG.png b/Backgrounds/MapBackgrounds/SulphurBG.png index 139bcb19d046741d356b405e5a3f2c35473b21ce..735d13d5cc188751a8e6332f5b7cc9b073e5a2b0 100644 GIT binary patch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G|6UBYy%PNkl{Tz@QS%KxtbbobI}9!o;w z3KX?df1EHDL2LZtA79tKp3=zUU4aiAI3`X7sLMwpMkux<^kU9r{!@T8?2M>A z-)-$-0 Date: Sat, 16 Nov 2019 09:12:46 -0500 Subject: [PATCH 04/10] hook values, dragon pow no longer uses oceanbeam --- Items/CalamityGlobalItem.cs | 288 ++++++++++++++++++ .../Fishing/SunkenSeaCatches/SerpentsBite.cs | 2 + Items/Tools/FlamebeakHampick.cs | 3 +- NPCs/AcidRain/Radiator.cs | 9 +- Projectiles/Melee/DragonPowFlail.cs | 2 +- Projectiles/Melee/Waterfall.cs | 101 ++++++ Projectiles/Melee/Waterfall.png | Bin 0 -> 136 bytes Projectiles/Typeless/DevourerofCodsBobber.cs | 5 +- Projectiles/Typeless/SerpentsBiteHook.cs | 2 +- 9 files changed, 404 insertions(+), 8 deletions(-) create mode 100644 Projectiles/Melee/Waterfall.cs create mode 100644 Projectiles/Melee/Waterfall.png diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index ca137374d5..5d4946c2d6 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1420,6 +1420,294 @@ Grants immunity to fire blocks, and temporary immunity to lava"; } } } + if (item.type == ItemID.GrapplingHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 18.75\n" + + "Velocity: 11.5"; + } + } + } + if (item.type == ItemID.AmethystHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 18.75\n" + + "Velocity: 10"; + } + } + } + if (item.type == ItemID.TopazHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 20.625\n" + + "Velocity: 10.5"; + } + } + } + if (item.type == ItemID.SapphireHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 22.5\n" + + "Velocity: 11"; + } + } + } + if (item.type == ItemID.EmeraldHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 24.375\n" + + "Velocity: 11.5"; + } + } + } + if (item.type == ItemID.RubyHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 26.25\n" + + "Velocity: 12"; + } + } + } + if (item.type == ItemID.DiamondHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 28.125\n" + + "Velocity: 12.5"; + } + } + } + if (item.type == ItemID.WebSlinger) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 15.625\n" + + "Velocity: 10"; + } + } + } + if (item.type == ItemID.SkeletronHand) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 21.875\n" + + "Velocity: 15"; + } + } + } + if (item.type == ItemID.SlimeHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 18.75\n" + + "Velocity: 13"; + } + } + } + if (item.type == ItemID.FishHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 25\n" + + "Velocity: 13"; + } + } + } + if (item.type == ItemID.IvyWhip) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 25\n" + + "Velocity: 13"; + } + } + } + if (item.type == ItemID.BatHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 31.25\n" + + "Velocity: 15.5"; + } + } + } + if (item.type == ItemID.CandyCaneHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 25\n" + + "Velocity: 11.5"; + } + } + } + if (item.type == ItemID.DualHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 27.5\n" + + "Velocity: 14"; + } + } + } + if (item.type == ItemID.ThornHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 30\n" + + "Velocity: 15"; + } + } + } + if (item.type == ItemID.WormHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 30\n" + + "Velocity: 15"; + } + } + } + if (item.type == ItemID.TendonHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 30\n" + + "Velocity: 15"; + } + } + } + if (item.type == ItemID.IlluminantHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 30\n" + + "Velocity: 15"; + } + } + } + if (item.type == ItemID.AntiGravityHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 31.25\n" + + "Velocity: 14"; + } + } + } + if (item.type == ItemID.SpookyHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 34.375\n" + + "Velocity: 15.5"; + } + } + } + if (item.type == ItemID.ChristmasHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 34.375\n" + + "Velocity: 15.5"; + } + } + } + if (item.type == ItemID.LunarHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 34.375\n" + + "Velocity: 16"; + } + } + } + if (item.type == ItemID.StaticHook) + { + foreach (TooltipLine line2 in tooltips) + { + if (line2.mod == "Terraria" && line2.Name == "Equipable") + { + line2.text = "Equipable\n" + + "Reach: 37.5\n" + + "Velocity: 16"; + } + } + } if (item.accessory) { if (item.prefix == 67) diff --git a/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs b/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs index c125400388..ea872320a7 100644 --- a/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs +++ b/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs @@ -13,6 +13,8 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches public override void SetStaticDefaults() { DisplayName.SetDefault("Serpent's Bite"); + Tooltip.SetDefault(@"Reach: 28.125 +Velocity: 18"); } public override void SetDefaults() diff --git a/Items/Tools/FlamebeakHampick.cs b/Items/Tools/FlamebeakHampick.cs index f64ac004f2..0d91bf7e99 100644 --- a/Items/Tools/FlamebeakHampick.cs +++ b/Items/Tools/FlamebeakHampick.cs @@ -14,7 +14,8 @@ namespace CalamityMod.Items.Tools { DisplayName.SetDefault("Flamebeak Hampick"); Tooltip.SetDefault(@"Capable of mining Lihzahrd Bricks -Right click to use as hammer"); +Left click to use as a pickaxe +Right click to use as a hammer"); } public override void SetDefaults() diff --git a/NPCs/AcidRain/Radiator.cs b/NPCs/AcidRain/Radiator.cs index d6ac82be08..f3be422bee 100644 --- a/NPCs/AcidRain/Radiator.cs +++ b/NPCs/AcidRain/Radiator.cs @@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.AcidRain npc.noTileCollide = false; npc.HitSound = SoundID.NPCHit1; npc.DeathSound = SoundID.NPCDeath1; - //npc.catchItem = (Main.rand.NextBool(20)) ? (short)ModContent.ItemType() : ItemID.None; aiType = NPCID.GlowingSnail; animationType = NPCID.GlowingSnail; //banner = npc.type; @@ -45,6 +44,14 @@ namespace CalamityMod.NPCs.AcidRain public override void AI() { + /*if (npc.localAI[0] == 0f) + { + npc.catchItem = (Main.rand.NextBool(20)) ? (short)ModContent.ItemType() : ItemID.None; + npc.localAI[0] = 1f; + npc.velocity.Y = -3f; + npc.netUpdate = true; + }*/ + Lighting.AddLight(npc.Center, 0.3f, 1.5f, 0.3f); int auraSize = 200; //roughly 12 blocks (half the size of Wither Beast aura) diff --git a/Projectiles/Melee/DragonPowFlail.cs b/Projectiles/Melee/DragonPowFlail.cs index ed62cae7be..ee211c95a5 100644 --- a/Projectiles/Melee/DragonPowFlail.cs +++ b/Projectiles/Melee/DragonPowFlail.cs @@ -195,7 +195,7 @@ namespace CalamityMod.Projectiles.Melee private void Waterfalls(NPC target, int damage, float knockback, bool crit) { - int type = ModContent.ProjectileType(); + int type = ModContent.ProjectileType(); int numWaterfalls = 12; int waterfallDamage = DragonPow.BaseDamage / 6; float waterfallKB = 0f; diff --git a/Projectiles/Melee/Waterfall.cs b/Projectiles/Melee/Waterfall.cs new file mode 100644 index 0000000000..e7f91edc7b --- /dev/null +++ b/Projectiles/Melee/Waterfall.cs @@ -0,0 +1,101 @@ +using System; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Melee +{ + public class Waterfall : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Beam"); + } + + public override void SetDefaults() + { + projectile.width = 8; + projectile.height = 8; + projectile.friendly = true; + projectile.alpha = 255; + projectile.extraUpdates = 2; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 8; + projectile.penetrate = 3; + projectile.timeLeft /= 2; + projectile.melee = true; + projectile.tileCollide = false; + } + + public override void AI() + { + for (int num92 = 0; num92 < 2; num92++) + { + float num93 = projectile.velocity.X / 3f * (float)num92; + float num94 = projectile.velocity.Y / 3f * (float)num92; + int num95 = 4; + int num96 = Dust.NewDust(new Vector2(projectile.position.X + (float)num95, projectile.position.Y + (float)num95), projectile.width - num95 * 2, projectile.height - num95 * 2, 56, 0f, 0f, 100, default, 1.2f); + Main.dust[num96].noGravity = true; + Main.dust[num96].velocity *= 0.25f; + Main.dust[num96].velocity += projectile.velocity * 0.1f; + Dust expr_47FA_cp_0 = Main.dust[num96]; + expr_47FA_cp_0.position.X -= num93; + Dust expr_4815_cp_0 = Main.dust[num96]; + expr_4815_cp_0.position.Y -= num94; + } + for (int num105 = 0; num105 < 2; num105++) + { + float num99 = projectile.velocity.X / 3f * (float)num105; + float num100 = projectile.velocity.Y / 3f * (float)num105; + int num101 = 4; + int num102 = Dust.NewDust(new Vector2(projectile.position.X + (float)num101, projectile.position.Y + (float)num101), projectile.width - num101 * 2, projectile.height - num101 * 2, 245, 0f, 0f, 100, default, 1.2f); + Main.dust[num102].noGravity = true; + Main.dust[num102].velocity *= 0.1f; + Main.dust[num102].velocity += projectile.velocity * 0.25f; + Dust expr_47FA_cp_0 = Main.dust[num102]; + expr_47FA_cp_0.position.X -= num99; + Dust expr_4815_cp_0 = Main.dust[num102]; + expr_4815_cp_0.position.Y -= num100; + } + + projectile.ai[1] += 1f; + if (projectile.ai[1] >= 60f) + projectile.tileCollide = true; + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + projectile.penetrate--; + if (projectile.penetrate <= 0) + { + projectile.Kill(); + } + else + { + projectile.ai[0] += 0.1f; + if (projectile.velocity.X != oldVelocity.X) + { + projectile.velocity.X = -oldVelocity.X; + } + if (projectile.velocity.Y != oldVelocity.Y) + { + projectile.velocity.Y = -oldVelocity.Y; + } + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 10); + } + return false; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(2, (int)projectile.position.X, (int)projectile.position.Y, 27); + for (int k = 0; k < 3; k++) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 56, projectile.oldVelocity.X * 0.25f, projectile.oldVelocity.Y * 0.25f); + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 245, projectile.oldVelocity.X * 0.25f, projectile.oldVelocity.Y * 0.25f); + } + } + } +} diff --git a/Projectiles/Melee/Waterfall.png b/Projectiles/Melee/Waterfall.png new file mode 100644 index 0000000000000000000000000000000000000000..0056fc1e2479e11bd6391fc4ccd1fe54fa0d671f GIT binary patch literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqY)RhkE)4%caKYZ?lYt_f1s;*b z3=DjSL74G){)!Z!AbW|YuPgflb|yv^-kZzH%z;9po-U3d5|@+z{QqyyY Date: Sat, 16 Nov 2019 09:30:57 -0500 Subject: [PATCH 05/10] dust --- Projectiles/Melee/Feather.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Melee/Feather.cs b/Projectiles/Melee/Feather.cs index 12e2e374e5..4e7731e1f7 100644 --- a/Projectiles/Melee/Feather.cs +++ b/Projectiles/Melee/Feather.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Melee int num3; for (int num611 = 0; num611 < 10; num611 = num3 + 1) { - Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 42, projectile.velocity.X * 0.1f, projectile.velocity.Y * 0.1f, 0, default, 1f); + Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 64, projectile.velocity.X * 0.1f, projectile.velocity.Y * 0.1f, 0, default, 1f); num3 = num611; } } From 6e2b3900c78a49470728b76072ab37c4428b9aa2 Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Sat, 16 Nov 2019 10:07:30 -0600 Subject: [PATCH 06/10] Fixed fishing rod drawing method --- Projectiles/Typeless/ChaoticSpreadBobber.cs | 2 +- Projectiles/Typeless/NavyBobber.cs | 2 +- Utilities/CalamityUtils.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Projectiles/Typeless/ChaoticSpreadBobber.cs b/Projectiles/Typeless/ChaoticSpreadBobber.cs index ce82bdc548..a48e45fb6b 100644 --- a/Projectiles/Typeless/ChaoticSpreadBobber.cs +++ b/Projectiles/Typeless/ChaoticSpreadBobber.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Typeless public override bool PreDrawExtras(SpriteBatch spriteBatch) { Lighting.AddLight(projectile.Center, 0.4f, 0f, 0f); - CalamityUtils.DrawFishingLine(projectile, ModContent.ItemType(), new Color(138, 50, 73, 100)); + CalamityUtils.DrawFishingLine(projectile, ModContent.ItemType(), new Color(138, 50, 73, 100), 30f); return false; } } diff --git a/Projectiles/Typeless/NavyBobber.cs b/Projectiles/Typeless/NavyBobber.cs index 319e2a5472..fe50d1a54f 100644 --- a/Projectiles/Typeless/NavyBobber.cs +++ b/Projectiles/Typeless/NavyBobber.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Projectiles.Typeless public override bool PreDrawExtras(SpriteBatch spriteBatch) { Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0f / 255f, (255 - projectile.alpha) * 0.25f / 255f, (255 - projectile.alpha) * 0.25f / 255f); - CalamityUtils.DrawFishingLine(projectile, ModContent.ItemType(), new Color(36, 61, 111, 100)); + CalamityUtils.DrawFishingLine(projectile, ModContent.ItemType(), new Color(36, 61, 111, 100), 33f); return false; } } diff --git a/Utilities/CalamityUtils.cs b/Utilities/CalamityUtils.cs index 746000bf8c..e743dc763d 100644 --- a/Utilities/CalamityUtils.cs +++ b/Utilities/CalamityUtils.cs @@ -1258,7 +1258,7 @@ namespace CalamityMod new Rectangle?(frame), Color.White, rotation, center, 1f, SpriteEffects.None, 0f); } - public static void DrawFishingLine(this Projectile projectile, int fishingRodType, Color poleColor) + public static void DrawFishingLine(this Projectile projectile, int fishingRodType, Color poleColor, float yPositionAdditive = 35f) { Lighting.AddLight(projectile.Center, 0.4f, 0f, 0.4f); @@ -1278,7 +1278,7 @@ namespace CalamityMod { pPosX -= 13f; } - pPosY -= 35f * gravDir; + pPosY -= yPositionAdditive * gravDir; } if (gravDir == -1f) From 1b204d51b6e656086e878bbba0a660d9e0704faa Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Sat, 16 Nov 2019 10:14:03 -0600 Subject: [PATCH 07/10] Gael's Greatsword (Unobtainable) Please let me know if I missed/misinterpreted anything. --- CalPlayer/CalamityPlayer.cs | 146 +++++++++- Items/Weapons/Melee/GaelsGreatsword.cs | 265 ++++++++++++++++++ Items/Weapons/Melee/GaelsGreatsword.png | Bin 0 -> 1667 bytes NPCs/Crags/Scryllar.cs | 2 + NPCs/Crags/ScryllarRage.cs | 2 + Projectiles/Melee/GaelSkull.cs | 182 ++++++++++++ Projectiles/Melee/GaelSkull.png | Bin 0 -> 2474 bytes Projectiles/Melee/GaelSpark.cs | 40 +++ Projectiles/Melee/GaelSpark.png | Bin 0 -> 130 bytes .../Rogue/CelestialReaperProjectile.cs | 2 +- 10 files changed, 636 insertions(+), 3 deletions(-) create mode 100644 Items/Weapons/Melee/GaelsGreatsword.cs create mode 100644 Items/Weapons/Melee/GaelsGreatsword.png create mode 100644 Projectiles/Melee/GaelSkull.cs create mode 100644 Projectiles/Melee/GaelSkull.png create mode 100644 Projectiles/Melee/GaelSpark.cs create mode 100644 Projectiles/Melee/GaelSpark.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index e9eea590d2..95c754d281 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -87,6 +87,8 @@ namespace CalamityMod.CalPlayer public int dashTimeMod; public int hInfernoBoost = 0; public int pissWaterBoost = 0; + public int gaelRageCooldown = 0; + public int gaelBloodShotCooldown = 0; public int packetTimer = 0; public int bloodflareHeartTimer = 180; public int bloodflareManaTimer = 180; @@ -1186,7 +1188,7 @@ namespace CalamityMod.CalPlayer polarisBoostThree = false; bloodfinBoost = false; - killSpikyBalls = false; + killSpikyBalls = false; vodka = false; redWine = false; @@ -1293,6 +1295,8 @@ namespace CalamityMod.CalPlayer { #region Debuffs //distanceFromBoss = -1; + gaelRageCooldown = 0; + gaelBloodShotCooldown = 0; stress = 0; adrenaline = 0; adrenalineMaxTimer = 300; @@ -1306,6 +1310,7 @@ namespace CalamityMod.CalPlayer bossRushImmunityFrameCurseTimer = 0; aBulwarkRareMeleeBoostTimer = 0; theBeeDamage = 0; + reforges = 0; polarisBoostCounter = 0; killSpikyBalls = false; @@ -1968,6 +1973,67 @@ namespace CalamityMod.CalPlayer } if (CalamityMod.RageHotKey.JustPressed) { + if (gaelRageCooldown == 0 && player.HeldItem.type == ModContent.ItemType() && + stress > 0) + { + Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaDispel"), (int)player.position.X, (int)player.position.Y); + for (int i = 0; i < 3; i++) + { + Dust.NewDust(player.position, 120, 120, 218, 0f, 0f, 100, default, 1.5f); + } + for (int i = 0; i < 30; i++) + { + float angle = MathHelper.TwoPi * i / 30f; + int dustIndex = Dust.NewDust(player.position, 120, 120, 218, 0f, 0f, 0, default, 2f); + Main.dust[dustIndex].noGravity = true; + Main.dust[dustIndex].velocity *= 4f; + dustIndex = Dust.NewDust(player.position, 120, 120, 218, 0f, 0f, 100, default, 1f); + Main.dust[dustIndex].velocity *= 2.25f; + Main.dust[dustIndex].noGravity = true; + Dust.NewDust(player.Center + angle.ToRotationVector2() * 160f, 0, 0, 218, 0f, 0f, 100, default, 1f); + } + gaelRageCooldown = 60 * GaelsGreatsword.SkullsplosionCooldownSeconds; + int damage2 = 15; + if (CalamityWorld.downedYharon) + { + damage2 = GaelsGreatsword.PostYharonDamage; + } + else if (NPC.downedMoonlord) + { + damage2 = GaelsGreatsword.PostMoonLordDamage; + } + else if (Main.hardMode) + { + damage2 = GaelsGreatsword.HardmodeDamage; + } + float rageRatio = (float)stress / stressMax; + int damage = (int)((stress == stressMax ? GaelsGreatsword.MaxRageBoost : rageRatio * GaelsGreatsword.RageBoostMultiplier) * damage2); + float skullCount = 5f; + float skullSpeed = 5f; + if (CalamityWorld.downedYharon) + { + skullCount = 20f; + skullSpeed = 16f; + } + else if (NPC.downedMoonlord) + { + skullCount = 13f; + skullSpeed = 13f; + } + else if (Main.hardMode) + { + skullCount = 9f; + skullSpeed = 8.75f; + } + for (float i = 0; i < skullCount; i += 1f) + { + float angle = MathHelper.TwoPi * i / skullCount; + Vector2 initialVelocity = angle.ToRotationVector2() * skullSpeed; + int projectileIndex = Projectile.NewProjectile(player.Center + initialVelocity * 3f, initialVelocity, ModContent.ProjectileType(), damage, 2f, player.whoAmI); + Main.projectile[projectileIndex].tileCollide = false; + } + stress = 0; + } if (stress == stressMax && !rageMode) { Main.PlaySound(29, (int)player.position.X, (int)player.position.Y, 104); @@ -3212,6 +3278,10 @@ namespace CalamityMod.CalPlayer aBulwarkRareMeleeBoostTimer--; if (bossRushImmunityFrameCurseTimer > 0) bossRushImmunityFrameCurseTimer--; + if (gaelBloodShotCooldown > 0) + gaelBloodShotCooldown--; + if (gaelRageCooldown > 0) + gaelRageCooldown--; if (silvaCountdown > 0 && hasSilvaEffect && silvaSet) { @@ -5437,6 +5507,21 @@ namespace CalamityMod.CalPlayer add += damageAdd; } + if (item.type == ModContent.ItemType()) + { + if (CalamityWorld.downedYharon) + { + add += GaelsGreatsword.PostYharonDamage / (float)GaelsGreatsword.BaseDamage - 1f; + } + else if (NPC.downedMoonlord) + { + add += GaelsGreatsword.PostMoonLordDamage / (float)GaelsGreatsword.BaseDamage - 1f; + } + else if (Main.hardMode) + { + add += GaelsGreatsword.HardmodeDamage / (float)GaelsGreatsword.BaseDamage - 1f; + } + } if (flamethrowerBoost && item.ranged && (item.useAmmo == 23 || item.type == ModContent.ItemType())) { add += 0.25f; @@ -5481,7 +5566,6 @@ namespace CalamityMod.CalPlayer theBeeDamage = 0; } } - public override void GetWeaponKnockback(Item item, ref float knockback) { if (auricBoost) @@ -6986,6 +7070,33 @@ namespace CalamityMod.CalPlayer #region Modify Hit By NPC public override void ModifyHitByNPC(NPC npc, ref int damage, ref bool crit) { + if (player.HeldItem.type == ModContent.ItemType() + && npc.active && npc.CanBeChasedBy() && player.altFunctionUse == 2 && Main.rand.NextBool(2)) + { + int direction = -1; + if (npc.Center.X < player.Center.X) + { + direction = 1; + } + int damage2 = 15; + if (CalamityWorld.downedYharon) + { + damage2 = GaelsGreatsword.PostYharonDamage; + } + else if (NPC.downedMoonlord) + { + damage2 = GaelsGreatsword.PostMoonLordDamage; + } + else if (Main.hardMode) + { + damage2 = GaelsGreatsword.HardmodeDamage; + } + player.ApplyDamageToNPC(npc, damage2 * 5, 5, -direction, false); + player.immune = true; + player.immuneNoBlink = true; + player.immuneTime = 4; + damage = 0; + } int bossRushDamage = (Main.expertMode ? 500 : 300) + (CalamityWorld.bossRushStage * 2); if (CalamityWorld.bossRushActive) { @@ -7056,6 +7167,37 @@ namespace CalamityMod.CalPlayer #region Modify Hit By Proj public override void ModifyHitByProjectile(Projectile proj, ref int damage, ref bool crit) { + if (player.HeldItem.type == ModContent.ItemType() + && proj.active && proj.hostile && player.altFunctionUse == 2 && Main.rand.NextBool(2)) + { + for (int j = 0; j < 3; j++) + { + int dustIndex = Dust.NewDust(proj.position, proj.width, proj.height, 31, 0f, 0f, 0, default(Color), 1f); + Main.dust[dustIndex].velocity *= 0.3f; + } + int damage2 = 15; + if (CalamityWorld.downedYharon) + { + damage2 = GaelsGreatsword.PostYharonDamage; + } + else if (NPC.downedMoonlord) + { + damage2 = GaelsGreatsword.PostMoonLordDamage; + } + else if (Main.hardMode) + { + damage2 = GaelsGreatsword.HardmodeDamage; + } + proj.hostile = false; + proj.friendly = true; + proj.velocity *= -1f; + proj.damage = damage2 * 5; + proj.penetrate = 1; + player.immune = true; + player.immuneNoBlink = true; + player.immuneTime = 4; + damage = 0; + } int bossRushDamage = (Main.expertMode ? 125 : 150) + (CalamityWorld.bossRushStage / 2); if (CalamityWorld.bossRushActive) { diff --git a/Items/Weapons/Melee/GaelsGreatsword.cs b/Items/Weapons/Melee/GaelsGreatsword.cs new file mode 100644 index 0000000000..baa49a9851 --- /dev/null +++ b/Items/Weapons/Melee/GaelsGreatsword.cs @@ -0,0 +1,265 @@ +using CalamityMod.Projectiles.Melee; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.GameInput; +using Terraria.Graphics.Capture; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.Melee +{ + public class GaelsGreatsword : ModItem + { + //Help, they're forcing me to slave away at Calamity until I die! - Dominic + + public int SwingType; + + //Weapon attribute constants + + public static readonly int BaseDamage = 8; + + public static readonly int HardmodeDamage = 24; + + public static readonly int PostMoonLordDamage = 270; + + public static readonly int PostYharonDamage = 10000; + + public static readonly float TrueMeleeBoostPreHardmode = 1.75f; + + public static readonly float TrueMeleeBoostHardmode = 2.5f; + + //Weapon projectile attribute constants + + public static readonly int BaseSearchDistance = 400; + + public static readonly int HardmodeSearchDistance = 660; + + public static readonly int PostMoonLordSearchDistance = 940; + + public static readonly int PostYharonSearchDistance = 1450; + + public static readonly int BaseImmunityFrames = 11; + + public static readonly int HardmodeImmunityFrames = 7; + + public static readonly int PostMoonLordImmunityFrames = 4; + + public static readonly int PostYharonImmunityFrames = 2; + + public static readonly int SkullsplosionCooldownSeconds = 10; + + public static readonly int PreMoonlordPenetrate = 3; //Infinite after Moon lord is dead + + //Skull ring attribute constants + + public static readonly float MaxRageBoost = 2.5f; + + public static readonly float RageBoostMultiplier = 1.5f; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Gael's Greatsword"); + Tooltip.SetDefault("Raises the player's damage reduction by 10% when wielding this sword\n" + + "There are three random attacks that can occur when the blade is swung\n" + + "The first attack releases two blood-skulls that home in\n" + + "The second attack releases an enormous slow-moving skull\n" + + "This slow-moving skull becomes weaker with time and lasts for around 4 seconds seconds\n" + + "The second attack causes a true melee strike with increased damage\n" + + "If you're below 50% life, swings release blood droplets\n" + + "Pressing the Rage Key while holding this weapon resets Rage to 0 and releases a circle of\n" + + "Slow-moving blood skulls. If Rage is full, the skulls do way more damage. Otherwise, the skull's damage is\n" + + "related to the amount of rage sacrificed\n" + + "This effect has a " + SkullsplosionCooldownSeconds + " second cooldown.\n" + + "The user can right click with the sword to deflect projectiles and enemy attacks 50% of the time"); + } + //NOTE: GetWeaponDamage is in the CalamityPlayer file + public override void SetDefaults() + { + item.width = 88; + item.height = 84; + item.damage = BaseDamage; + item.melee = true; + item.useAnimation = 16; + item.useTime = 16; + item.useTurn = true; + item.knockBack = 9; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.value = Item.buyPrice(5, 0, 0, 0); + item.rare = 10; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 15f; + item.Calamity().postMoonLordRarity = 16; + item.useStyle = ItemUseStyleID.SwingThrow; + } + public override void HoldItem(Player player) + { + player.endurance += 0.1f; //10% DR boost + } + public override bool AltFunctionUse(Player player) => true; + public override Vector2? HoldoutOffset() => new Vector2(12, 12); + public override bool CanUseItem(Player player) + { + if (player.altFunctionUse == 2) + { + item.useAnimation = 46; + item.useTime = 46; + } + else + { + item.useAnimation = 12; + item.useTime = 12; + } + return true; + } + public override void MeleeEffects(Player player, Rectangle hitbox) + { + SwingType = Main.rand.Next(3); + + //Almost entirely Ultimus Cleaver code. Feel free to clean it up if you wish. + if (player.whoAmI == Main.myPlayer && + player.statLife < player.statLifeMax * 0.5 && + player.Calamity().gaelBloodShotCooldown == 0) + { + float velocityY = 0f; + float velocityX = 0f; + float spawnAdditiveY = 0f; + float spawnAdditiveX = 0f; + if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.8)) + { + velocityY = -7f; + } + if (player.direction == -1) + { + if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.9)) + { + spawnAdditiveX -= 8f; + } + if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.7)) + { + spawnAdditiveX -= 6f; + } + } + if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.7)) + { + spawnAdditiveX = 26f; + } + if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.6)) + { + velocityY = -6f; + velocityX = 2f; + } + if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.4)) + { + velocityY = -4f; + velocityX = 4f; + } + if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.3)) + { + spawnAdditiveX -= 4f; + spawnAdditiveY -= 20f; + } + if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.2)) + { + velocityY = -2f; + velocityX = 6f; + } + if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.1)) + { + velocityX = 7f; + } + if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.1)) + { + spawnAdditiveY += 6f; + } + velocityY *= 1.35f; + velocityX *= 1.35f; + spawnAdditiveX *= (float)player.direction * Main.rand.NextFloat(0.9f, 1.1f); + spawnAdditiveY *= player.gravDir; + Projectile.NewProjectile((float)(hitbox.X + hitbox.Width / 2) + spawnAdditiveX, (float)(hitbox.Y + hitbox.Height / 2) + spawnAdditiveY, + (float)player.direction * velocityX, velocityY * player.gravDir, ModContent.ProjectileType(), (int)((float)item.damage * 0.35f * player.meleeDamage), 0f, player.whoAmI, 0f, 0f); + + if (player.itemAnimation == (int)((double)player.itemAnimationMax * 0.9)) + { + player.Calamity().gaelBloodShotCooldown = 30; + } + } + } + public override void OnHitNPC(Player player, NPC target, int damage, float knockBack, bool crit) + { + //True melee boost + if (SwingType == 2) + { + damage = (int)((Main.hardMode ? TrueMeleeBoostHardmode : TrueMeleeBoostPreHardmode) * damage); + } + } + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + //This is mostly from a function in Player.cs which handles the Brand of the Inferno alt click effect + //attackCD = The attack countdown. Can reflect attacks from projectiles and hostile npcs while > 0 + //shield_parry_cooldown = A simple count down variable for effects. + if (player.altFunctionUse == 2) + { + bool shieldRaised = false; + if (player.selectedItem != 58 && player.controlUseTile && !player.tileInteractionHappened && player.releaseUseItem && !player.controlUseItem && !player.mouseInterface && !CaptureManager.Instance.Active && !Main.HoveringOverAnNPC && !Main.SmartInteractShowingGenuine + && player.inventory[player.selectedItem].type == ModContent.ItemType() && !player.mount.Active && (player.itemAnimation == 0 || PlayerInput.Triggers.JustPressed.MouseRight)) + { + shieldRaised = true; + } + if (player.shield_parry_cooldown > 0) + { + player.shield_parry_cooldown--; + if (player.shield_parry_cooldown == 1) + { + Main.PlaySound(25, -1, -1, 1, 1f, 0f); + for (int i = 0; i < 10; i++) + { + int dustIndex = Dust.NewDust(player.Center + new Vector2((float)(player.direction * 6 + ((player.direction == -1) ? -10 : 0)), -14f), 10, 16, 45, 0f, 0f, 255, new Color(255, 100, 0, 127), (float)Main.rand.NextFloat(1f, 1.6f)); + Main.dust[dustIndex].noLight = true; + Main.dust[dustIndex].noGravity = true; + Main.dust[dustIndex].velocity *= 0.5f; + } + } + } + if (shieldRaised != player.shieldRaised) + { + player.shieldRaised = shieldRaised; + if (player.shieldRaised) + { + player.itemAnimation = 0; + player.itemTime = 0; + player.reuseDelay = 0; + } + else + { + player.shield_parry_cooldown = 15; + if (player.attackCD < 30) + { + player.attackCD = 30; + } + } + } + return false; + } + switch (SwingType) + { + //Two small, quick skulls + case 0: + int numProj = 2; + float rotation = MathHelper.ToRadians(10f); + for (int i = 0; i < numProj; i++) + { + Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (numProj - 1))); + Projectile.NewProjectile(position, perturbedSpeed, type, damage, knockBack, player.whoAmI); + } + break; + //Giant, slow, fading skull + case 1: + int projectileIndex = Projectile.NewProjectile(position, new Vector2(speedX,speedY) * 0.5f, type, damage * 2, knockBack, player.whoAmI, ai1:1f); + Main.projectile[projectileIndex].scale = 1.75f; + break; + } + return false; + } + } +} diff --git a/Items/Weapons/Melee/GaelsGreatsword.png b/Items/Weapons/Melee/GaelsGreatsword.png new file mode 100644 index 0000000000000000000000000000000000000000..6465fac47e186a6d48447836c5105bf41b258818 GIT binary patch literal 1667 zcmXYyeN@s}8pkibpqXfsYh#k;*7%mC5(*m9nbOL9ZOlRi%Yz=B5OwsozB?TzRvk@E zo2?amDP=^>WD!$AG-INCNw8T()C{$h@&(OYY;AH_qW$CE=bY!<`+2_Sx!>p9qH`f< z5GK|p006{Uf4?wojL@!dW4LyQ6W)bt0}Ki~a}sc*`xdn+{8_&f;aSzH>OgAv1uI$~ zF{QB1JRq>8(_?@bmgrw@AnGr$DzUCdIXvYbtjJHDd&J0POjm0 zR7%OuPMtnsO%EDI!`P-Zzon-t8}W@$PC`Mgl)jO~%zdMf4$ccT+asDgx%$QP6`XWH z>PdSzaX#@TXEPaOINSu))lxrzjKaa1Tt@k;$ZKilccZ?7{)xrt|A5Bth2_26bO&pv zmKxP?oWrNNM=$^{&=}5&XAXkA^{vM2Q2tCTS28VI?gGzWu#Ug^?;RR;!h25KKcmOh zxT!NQZ?{juc-xVi36H9T^{qCv4p~SgZHRcSp^=}pS>l9D8%Cf zu5(R8KWE=)W4vg8y%!w!$~2=XqI*G4`So5T@;A^UlJ58;c^Q{1Z-9AuWY?QMcHaMl zi9^+M@=%1gp$M3JM*EI;aGc}5;J1Bkg6QRcP*y_)d0mSvb6CXogc+z^%X0@_$2?54 z=rtB*ZXENyu&MYD$NQOMD9CuuX4aD=l`Zo6b0pLGVSq9ig zHG|Hu3CWM$i-$n&RiW9ibWBV_k906T(=2Z1f`$W1%!4Lx&6v2<_-;p{Js2GGGbkTO z3Pm{4UsPQPvPq|Y;XjE%Wl9dEuSa)dEMWIvcJH7OHBAaKyTg$7Og{nkHezxgC@E>N zogxaciJHtdiDi$dtl65Lq4>Sw-*fyE<@BiInR-q%gPdFzT1tKW2$Ofr2EW#fam7|@pV34LtX7{mli6>In{eHP($HnVsc&S-_oB< zOBV#!pOIIon|C?10QBe64jB%P>hR_$bz{K+T3qGxAWXCQt+o?cMwKa?7*A}Wgfy7x z@};@?JY!X_(NX#ml4v-bVLGh2WoiN9;>VcWf?sn!l6bHaIp2SMl`z7PF$LGK6R2^k zX(rVK@X$+RO<~VhNg8cu@!N|XlSr;VVJNM}o z`3lI_t+tbs#ZlU+)5o1Wv55A8)p-@|<8BV;v zTo)CrP_XV@*BUlLIP|h~scV1G%RBo=|MU*#wwF10x1YKO8io6|aOhmsFN zxSK!aF!8Lys8K$Dtq47dTp0{}E>rZ*Mqi>J*aF_r(V8QwD>Wxupe(KGRCx?h^6f=@ zKyB{7l+20vVyK^QHFMroJBB;DI9JTIBiNidwW44XgyQM$ZgD-cs<1daIR~|_b>Ah^ zJy1iyMVHKtv^hk^aE}lF!(Y|4ZKDK7iLe{XH_$@1_P?qn9=7oQZeIJVfU~DU{5U6L GuKf>dB{0_j literal 0 HcmV?d00001 diff --git a/NPCs/Crags/Scryllar.cs b/NPCs/Crags/Scryllar.cs index 3e6a021a3c..089d7d5475 100644 --- a/NPCs/Crags/Scryllar.cs +++ b/NPCs/Crags/Scryllar.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Weapons.Melee; using CalamityMod.World; using Terraria; using Terraria.ID; @@ -268,6 +269,7 @@ namespace CalamityMod.NPCs.Crags { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } + //DropHelper.DropItemChance(npc, ModContent.ItemType(), CalamityWorld.defiled ? 0.05f : 0.02f); } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/Crags/ScryllarRage.cs b/NPCs/Crags/ScryllarRage.cs index d0494a6f04..9f553390ae 100644 --- a/NPCs/Crags/ScryllarRage.cs +++ b/NPCs/Crags/ScryllarRage.cs @@ -1,6 +1,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Weapons.Melee; using CalamityMod.World; using Terraria; using Terraria.ID; @@ -268,6 +269,7 @@ namespace CalamityMod.NPCs.Crags { Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType()); } + //DropHelper.DropItemChance(npc, ModContent.ItemType(), CalamityWorld.defiled ? 0.05f : 0.02f); } public override void HitEffect(int hitDirection, double damage) diff --git a/Projectiles/Melee/GaelSkull.cs b/Projectiles/Melee/GaelSkull.cs new file mode 100644 index 0000000000..1f2f97675a --- /dev/null +++ b/Projectiles/Melee/GaelSkull.cs @@ -0,0 +1,182 @@ +using CalamityMod.Items.Weapons.Melee; +using CalamityMod.World; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Projectiles.Melee +{ + public class GaelSkull : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Skull"); + ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; + ProjectileID.Sets.TrailingMode[projectile.type] = 0; + Main.projFrames[projectile.type] = 5; + } + + public override void SetDefaults() + { + projectile.width = 16; + projectile.height = 16; + projectile.friendly = true; + projectile.melee = true; + projectile.ignoreWater = true; + projectile.penetrate = 2; + projectile.timeLeft = 600; + projectile.light = 1f; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = GaelsGreatsword.BaseImmunityFrames; + + if (CalamityWorld.downedYharon) + { + projectile.localNPCHitCooldown = GaelsGreatsword.PostYharonImmunityFrames; + } + else if (NPC.downedMoonlord) + { + projectile.localNPCHitCooldown = GaelsGreatsword.PostMoonLordImmunityFrames; + } + else if (Main.hardMode) + { + projectile.localNPCHitCooldown = GaelsGreatsword.HardmodeImmunityFrames; + } + } + + public override void AI() + { + float checkingDistance = GaelsGreatsword.BaseSearchDistance; + if (CalamityWorld.downedYharon) + { + checkingDistance = GaelsGreatsword.PostYharonSearchDistance; + } + else if (NPC.downedMoonlord) + { + checkingDistance = GaelsGreatsword.PostMoonLordSearchDistance; + } + else if (Main.hardMode) + { + checkingDistance = GaelsGreatsword.HardmodeSearchDistance; + } + + //Targeting + + NPC target = projectile.Center.ClosestNPCAt(checkingDistance); + projectile.tileCollide = target != null; //Go through walls if we're hunting an NPC + if (target != null) + { + float velocityMagnitude = projectile.velocity.Length(); + Vector2 distanceNorm = projectile.DirectionTo(target.Center) * velocityMagnitude * (projectile.Distance(target.Center) < 220f ? 1.3f : 1f); + float inverseTurnSpeed = (projectile.Distance(target.Center) < 240f ? 4f : 13f); + projectile.velocity = (projectile.velocity * inverseTurnSpeed + distanceNorm) / (inverseTurnSpeed + 0.4f); + projectile.velocity.Normalize(); + projectile.velocity *= velocityMagnitude; + } + + //Rotation + + if (projectile.velocity.X < 0f) + { + projectile.spriteDirection = -1; + projectile.rotation = (-projectile.velocity).ToRotation(); + } + else + { + projectile.spriteDirection = 1; + projectile.rotation = projectile.velocity.ToRotation(); + } + + //Dust circle + + projectile.ai[0] += 1f; + if (projectile.ai[0] % 20 == 0f) + { + for (int l = 0; l < 24; l++) + { + Vector2 spawnPositionAdditive = Vector2.UnitX * (float)-(float)projectile.width / 2f; + spawnPositionAdditive += -Vector2.UnitY.RotatedBy((double)((float)l * MathHelper.TwoPi / 24f), default) * new Vector2(8f, 16f) * projectile.scale; + spawnPositionAdditive = spawnPositionAdditive.RotatedBy((double)(projectile.rotation), default); + int dustIndex = Dust.NewDust(projectile.Center, 0, 0, 218, 0f, 0f, 0, default, 1.5f); + Main.dust[dustIndex].noGravity = true; + Main.dust[dustIndex].position = projectile.Center + spawnPositionAdditive; + Main.dust[dustIndex].velocity = projectile.velocity * 0.1f; + Main.dust[dustIndex].velocity = Vector2.Normalize(projectile.Center - projectile.velocity * 3f - Main.dust[dustIndex].position) * 1.25f; + } + } + + //Frame logic + + projectile.frameCounter++; + if (projectile.frameCounter % 5 == 0) + { + projectile.frame++; + } + if (projectile.frame >= Main.projFrames[projectile.type]) + { + projectile.frame = 0; + } + + //Fat skull logic + if (projectile.ai[1] == 1f) + { + if (projectile.localAI[0] == 0f && !NPC.downedMoonlord) + { + projectile.penetrate = GaelsGreatsword.PreMoonlordPenetrate; + projectile.localAI[0] = 1f; + } + else if (NPC.downedMoonlord) + { + projectile.penetrate = 5; + } + projectile.alpha += 1; + projectile.damage = (int)Math.Ceiling(projectile.damage * 0.992); //Exponentially decays to a factor of 0.12896 of the original damage + if (projectile.alpha >= 255) + { + projectile.Kill(); + } + } + else if (projectile.alpha > 0) + { + projectile.alpha -= 15; + if (projectile.alpha < 0) + { + projectile.alpha = 0; + } + } + } + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; + } + + public override void Kill(int timeLeft) + { + projectile.position = projectile.Center; + projectile.width = projectile.height = 240; + projectile.position.X = projectile.position.X - (float)(projectile.width / 2); + projectile.position.Y = projectile.position.Y - (float)(projectile.height / 2); + projectile.maxPenetrate = -1; + projectile.penetrate = -1; + projectile.Damage(); + Main.PlaySound((int)SoundType.NPCKilled, (int)projectile.Center.X, (int)projectile.Center.Y, 52, 0.4f); + for (int i = 0; i < 3; i++) + { + Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 218, 0f, 0f, 100, default, 1.5f); + } + for (int i = 0; i < 30; i++) + { + float angle = MathHelper.TwoPi * i / 30f; + int dustIndex = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 218, 0f, 0f, 0, default, 2.5f); + Main.dust[dustIndex].noGravity = true; + Main.dust[dustIndex].velocity *= 3f; + dustIndex = Dust.NewDust(new Vector2(projectile.position.X, projectile.position.Y), projectile.width, projectile.height, 218, 0f, 0f, 100, default, 1.5f); + Main.dust[dustIndex].velocity *= 2f; + Main.dust[dustIndex].noGravity = true; + Dust.NewDust(projectile.Center + angle.ToRotationVector2() * 160f, 0, 0, 218, 0f, 0f, 100, default, 1.5f); + } + } + } +} diff --git a/Projectiles/Melee/GaelSkull.png b/Projectiles/Melee/GaelSkull.png new file mode 100644 index 0000000000000000000000000000000000000000..706be9b2d82f793442671a32cd24c20ba22d68b2 GIT binary patch literal 2474 zcmV;b303xqP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!TieDU^D{wD~-JB5)+MHEqMCVbhUe^}M#GZMZb5Tkrq% zRJu3gjeXD5BiH;lw_TC$%{ctdr8{_t-!6$n4*KcDmOLW!i=#lv$t*~7`3p9F19IfI**7D+wgy+d z|6RH_d}UCQAU}_AWSQEUw?HyzW&+Q^$75D1)h(;--ZFq@ro(eD3e>G;PLNg zCeHh*9@hT6WHy3(|JvAnm1!7$>yKF%pX^F&@Hbo;h1K;Ox@A{=%Vp<>2kTqaz0tuJ z;TrC{h5>3BUHO%BH?EK#yL@}Pw-KIy6+6B&)Ms74G#rs8K9>53GTz^9~#j?U(98&2cO5UtEq?E)KK6}Yy6G7BbW*cfAsF~*c)>1%0~GUe}& zOW{vTrI~-86`4Y$OF`c$QyVS~4CiJKL0>7;$r)amH+<=sub98UntX&VTDSyU@wQ$ zr2(N~Wvpqgi4AkQg;A+epfZOrul7$*&oIn1HHPO$&jV2nbE*{ZK4^d)vuv7=h{>l* zJJ)bq!!U|H(40W4lA;xnVHgDK_fA*Xa2h+))HEArqEsomF8-Q4L?qP5{%qVCPL8yR-Gv>}5VR!MJ_F$7MRW>Va6 z#Qba`Wf(YB3Y;!&$Y>1%%%=dg$=I-9G=@QL)(|T!bZgAd{5jc%(>NNqrj_ZY8x z%nUXUa}tHWnJ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i;?ltsMBsh`O~h%;s_vYUl;- z(rN6SuJbcchI12YHk`(#gCl@VcTK1PHVbSxqOW-w@UB?34?0Sy!8CAgDKWTVFhBQ{ znQ1_+tNfC4ONn0W^ogqJ=u88jp+NQlz_bmI6|Qj@SLdEk>zrS*;jzOt4tTc@u;DbW oJj(p!=V4=vF~%5EhPAbS0d|evt~xS4LjV8(07*qoM6N<$f?in4p#T5? literal 0 HcmV?d00001 diff --git a/Projectiles/Melee/GaelSpark.cs b/Projectiles/Melee/GaelSpark.cs new file mode 100644 index 0000000000..8e6dc66b51 --- /dev/null +++ b/Projectiles/Melee/GaelSpark.cs @@ -0,0 +1,40 @@ +using CalamityMod.Buffs.DamageOverTime; +using Microsoft.Xna.Framework; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +namespace CalamityMod.Projectiles.Melee +{ + public class GaelSpark : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Spark"); + } + + public override void SetDefaults() + { + projectile.width = 6; + projectile.height = 6; + projectile.friendly = true; + projectile.melee = true; + projectile.ignoreWater = true; + projectile.penetrate = 1; + projectile.timeLeft = 180; + projectile.alpha = 255; + } + public override bool OnTileCollide(Vector2 oldVelocity) + { + projectile.velocity.X = 0f; + return false; + } + public override void AI() + { + Lighting.AddLight(projectile.Center, 0.7f, 0f, 0f); + projectile.velocity.Y += 0.3f; + int dustIndex = Dust.NewDust(projectile.Center, 0, 0, DustID.Blood, 0f, 0f, 0, default, 1.4f); + Main.dust[dustIndex].noGravity = true; + } + } +} diff --git a/Projectiles/Melee/GaelSpark.png b/Projectiles/Melee/GaelSpark.png new file mode 100644 index 0000000000000000000000000000000000000000..1740dec81a5591a5aa7301dc6eceb8652d5a4658 GIT binary patch literal 130 zcmeAS@N?(olHy`uVBq!ia0vp^EFjFm1|(O0oL2{=7>k44ofy`glX(e}Nq6*hWMJ6X z&;2Kn70Bl-@Q5sCVBk9h!i=ICUJXD&aZeY=5Q*^QKmY&RGaDr|T`F+!XlP_)IM&C^ UI_W^pPgg&ebxsLQ082+9WdHyG literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/CelestialReaperProjectile.cs b/Projectiles/Rogue/CelestialReaperProjectile.cs index 43baec3b27..2cfc9b10b5 100644 --- a/Projectiles/Rogue/CelestialReaperProjectile.cs +++ b/Projectiles/Rogue/CelestialReaperProjectile.cs @@ -53,7 +53,7 @@ namespace CalamityMod.Projectiles.Rogue } } public override bool? CanHitNPC(NPC target) => HomingCooldown == 0 && !target.townNPC - && target.type != NPCID.DD2EterniaCrystal && target.CanBeChasedBy(); + && target.type != NPCID.DD2EterniaCrystal && !target.immortal && !target.dontTakeDamage; public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { HomingCooldown = 25; From af0ce8e1702410e98318773702eca881710a47b3 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 16 Nov 2019 13:22:18 -0500 Subject: [PATCH 08/10] hook velocity stuff --- Items/CalamityGlobalItem.cs | 72 ++++++++++++------- .../Fishing/SunkenSeaCatches/SerpentsBite.cs | 3 +- 2 files changed, 50 insertions(+), 25 deletions(-) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 5d4946c2d6..5e3c9d672b 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1428,7 +1428,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 18.75\n" + - "Velocity: 11.5"; + "Launch Velocity: 11.5\n" + + "Pull Velocity: 11"; } } } @@ -1440,7 +1441,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 18.75\n" + - "Velocity: 10"; + "Launch Velocity: 10\n" + + "Pull Velocity: 11"; } } } @@ -1452,7 +1454,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 20.625\n" + - "Velocity: 10.5"; + "Launch Velocity: 10.5\n" + + "Pull Velocity: 11"; } } } @@ -1464,7 +1467,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 22.5\n" + - "Velocity: 11"; + "Launch Velocity: 11\n" + + "Pull Velocity: 11"; } } } @@ -1476,7 +1480,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 24.375\n" + - "Velocity: 11.5"; + "Launch Velocity: 11.5\n" + + "Pull Velocity: 11"; } } } @@ -1488,7 +1493,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 26.25\n" + - "Velocity: 12"; + "Launch Velocity: 12\n" + + "Pull Velocity: 11"; } } } @@ -1500,7 +1506,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 28.125\n" + - "Velocity: 12.5"; + "Launch Velocity: 12.5\n" + + "Pull Velocity: 11"; } } } @@ -1512,7 +1519,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 15.625\n" + - "Velocity: 10"; + "Launch Velocity: 10\n" + + "Pull Velocity: 11"; } } } @@ -1524,7 +1532,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 21.875\n" + - "Velocity: 15"; + "Launch Velocity: 15\n" + + "Pull Velocity: 11"; } } } @@ -1536,7 +1545,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 18.75\n" + - "Velocity: 13"; + "Launch Velocity: 13\n" + + "Pull Velocity: 11"; } } } @@ -1548,7 +1558,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 25\n" + - "Velocity: 13"; + "Launch Velocity: 13\n" + + "Pull Velocity: 11"; } } } @@ -1560,7 +1571,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 25\n" + - "Velocity: 13"; + "Launch Velocity: 13\n" + + "Pull Velocity: 15"; } } } @@ -1572,7 +1584,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 31.25\n" + - "Velocity: 15.5"; + "Launch Velocity: 15.5\n" + + "Pull Velocity: 20"; } } } @@ -1584,7 +1597,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 25\n" + - "Velocity: 11.5"; + "Launch Velocity: 11.5\n" + + "Pull Velocity: 11"; } } } @@ -1596,7 +1610,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 27.5\n" + - "Velocity: 14"; + "Launch Velocity: 14\n" + + "Pull Velocity: 17"; } } } @@ -1608,7 +1623,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 30\n" + - "Velocity: 15"; + "Launch Velocity: 15\n" + + "Pull Velocity: 18"; } } } @@ -1620,7 +1636,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 30\n" + - "Velocity: 15"; + "Launch Velocity: 15\n" + + "Pull Velocity: 18"; } } } @@ -1632,7 +1649,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 30\n" + - "Velocity: 15"; + "Launch Velocity: 15\n" + + "Pull Velocity: 18"; } } } @@ -1644,7 +1662,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 30\n" + - "Velocity: 15"; + "Launch Velocity: 15\n" + + "Pull Velocity: 18"; } } } @@ -1656,7 +1675,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 31.25\n" + - "Velocity: 14"; + "Launch Velocity: 14\n" + + "Pull Velocity: 20"; } } } @@ -1668,7 +1688,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 34.375\n" + - "Velocity: 15.5"; + "Launch Velocity: 15.5\n" + + "Pull Velocity: 22"; } } } @@ -1680,7 +1701,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 34.375\n" + - "Velocity: 15.5"; + "Launch Velocity: 15.5\n" + + "Pull Velocity: 11"; } } } @@ -1692,7 +1714,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 34.375\n" + - "Velocity: 16"; + "Launch Velocity: 16\n" + + "Pull Velocity: 11"; } } } @@ -1704,7 +1727,8 @@ Grants immunity to fire blocks, and temporary immunity to lava"; { line2.text = "Equipable\n" + "Reach: 37.5\n" + - "Velocity: 16"; + "Launch Velocity: 16\n" + + "Pull Velocity: 11"; } } } diff --git a/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs b/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs index ea872320a7..debc71e67d 100644 --- a/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs +++ b/Items/Fishing/SunkenSeaCatches/SerpentsBite.cs @@ -14,7 +14,8 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches { DisplayName.SetDefault("Serpent's Bite"); Tooltip.SetDefault(@"Reach: 28.125 -Velocity: 18"); +Launch Velocity: 18 +Pull Velocity: 14"); } public override void SetDefaults() From dd207d683ecf64ac47e77d562d895adee6d21302 Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Sat, 16 Nov 2019 12:39:18 -0600 Subject: [PATCH 09/10] Bear's Eye sell fix --- NPCs/TownNPCs/THIEF.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/TownNPCs/THIEF.cs b/NPCs/TownNPCs/THIEF.cs index c5026273a3..05b3a1bdf5 100644 --- a/NPCs/TownNPCs/THIEF.cs +++ b/NPCs/TownNPCs/THIEF.cs @@ -287,7 +287,7 @@ namespace CalamityMod.NPCs.TownNPCs nextSlot++; } //:BearWatchingYou: - if (npc.GivenOrTypeName == "Laura") + if (npc.modNPC.TownNPCName() == "Laura") { shop.item[nextSlot].SetDefaults(ModContent.ItemType()); nextSlot++; From 022ceeb16a2e07e729bc956a1ca4d0c41520d19f Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sat, 16 Nov 2019 14:12:40 -0500 Subject: [PATCH 10/10] some balancing to dragoon drizzlefish/sparkling empress --- Items/CalamityGlobalItem.cs | 16 ++++++++-------- .../BrimstoneCragCatches/DragoonDrizzlefish.cs | 6 +++--- NPCs/CalamityGlobalNPC.cs | 4 ++++ Projectiles/Magic/SparklingBeam.cs | 6 +++--- Projectiles/Ranged/DrizzlefishFire.cs | 4 ++-- Projectiles/Ranged/DrizzlefishFireSplit.cs | 4 ++-- Projectiles/Ranged/DrizzlefishFireball.cs | 2 +- 7 files changed, 23 insertions(+), 19 deletions(-) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 5e3c9d672b..d972ef78ad 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1455,7 +1455,7 @@ Grants immunity to fire blocks, and temporary immunity to lava"; line2.text = "Equipable\n" + "Reach: 20.625\n" + "Launch Velocity: 10.5\n" + - "Pull Velocity: 11"; + "Pull Velocity: 11.75"; } } } @@ -1468,7 +1468,7 @@ Grants immunity to fire blocks, and temporary immunity to lava"; line2.text = "Equipable\n" + "Reach: 22.5\n" + "Launch Velocity: 11\n" + - "Pull Velocity: 11"; + "Pull Velocity: 12.5"; } } } @@ -1481,7 +1481,7 @@ Grants immunity to fire blocks, and temporary immunity to lava"; line2.text = "Equipable\n" + "Reach: 24.375\n" + "Launch Velocity: 11.5\n" + - "Pull Velocity: 11"; + "Pull Velocity: 13.25"; } } } @@ -1494,7 +1494,7 @@ Grants immunity to fire blocks, and temporary immunity to lava"; line2.text = "Equipable\n" + "Reach: 26.25\n" + "Launch Velocity: 12\n" + - "Pull Velocity: 11"; + "Pull Velocity: 14"; } } } @@ -1507,7 +1507,7 @@ Grants immunity to fire blocks, and temporary immunity to lava"; line2.text = "Equipable\n" + "Reach: 28.125\n" + "Launch Velocity: 12.5\n" + - "Pull Velocity: 11"; + "Pull Velocity: 14.75"; } } } @@ -1702,7 +1702,7 @@ Grants immunity to fire blocks, and temporary immunity to lava"; line2.text = "Equipable\n" + "Reach: 34.375\n" + "Launch Velocity: 15.5\n" + - "Pull Velocity: 11"; + "Pull Velocity: 17"; } } } @@ -1715,7 +1715,7 @@ Grants immunity to fire blocks, and temporary immunity to lava"; line2.text = "Equipable\n" + "Reach: 34.375\n" + "Launch Velocity: 16\n" + - "Pull Velocity: 11"; + "Pull Velocity: 24"; } } } @@ -1728,7 +1728,7 @@ Grants immunity to fire blocks, and temporary immunity to lava"; line2.text = "Equipable\n" + "Reach: 37.5\n" + "Launch Velocity: 16\n" + - "Pull Velocity: 11"; + "Pull Velocity: 24"; } } } diff --git a/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs b/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs index b70ddcbeed..7bbc9dc760 100644 --- a/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs +++ b/Items/Fishing/BrimstoneCragCatches/DragoonDrizzlefish.cs @@ -20,12 +20,12 @@ Revenge is a dish best served flaming hot"); public override void SetDefaults() { - item.damage = 30; + item.damage = 20; item.ranged = true; item.width = 36; item.height = 30; - item.useTime = 15; - item.useAnimation = 15; + item.useTime = 20; + item.useAnimation = 20; item.useStyle = 5; item.noMelee = true; item.knockBack = 2f; diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 111a44568d..2a9e22e8c1 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -2443,6 +2443,10 @@ namespace CalamityMod.NPCs { damage = (int)(damage * 0.6); } + if (projectile.type == ModContent.ProjectileType()) + { + damage = (int)(damage * 0.7); + } } if (Main.player[projectile.owner].Calamity().eGauntlet) diff --git a/Projectiles/Magic/SparklingBeam.cs b/Projectiles/Magic/SparklingBeam.cs index 17a32335b4..b78ed9bfee 100644 --- a/Projectiles/Magic/SparklingBeam.cs +++ b/Projectiles/Magic/SparklingBeam.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Projectiles.Magic public bool IsAtMaxCharge => Charge == MAX_CHARGE; private bool playedSound = false; - private int manaDrain = 0; + //private int manaDrain = 0; public override void SetDefaults() { @@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Magic projectile.magic = true; projectile.hide = true; projectile.usesIDStaticNPCImmunity = true; - projectile.idStaticNPCHitCooldown = 10; + projectile.idStaticNPCHitCooldown = 15; } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) @@ -106,7 +106,7 @@ namespace CalamityMod.Projectiles.Magic { if (target.life <= 0) { - int shardDamage = SparklingEmpress.BaseDamage / 2; + int shardDamage = SparklingEmpress.BaseDamage / 4; int num251 = Main.rand.Next(2, 4); if (projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Ranged/DrizzlefishFire.cs b/Projectiles/Ranged/DrizzlefishFire.cs index bdb32a7baf..89ee770617 100644 --- a/Projectiles/Ranged/DrizzlefishFire.cs +++ b/Projectiles/Ranged/DrizzlefishFire.cs @@ -22,11 +22,11 @@ namespace CalamityMod.Projectiles.Ranged projectile.friendly = true; projectile.ignoreWater = true; projectile.ranged = true; - projectile.penetrate = -1; + projectile.penetrate = 5; projectile.extraUpdates = 1; projectile.timeLeft = 90; projectile.usesIDStaticNPCImmunity = true; - projectile.idStaticNPCHitCooldown = 5; + projectile.idStaticNPCHitCooldown = 10; } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Ranged/DrizzlefishFireSplit.cs b/Projectiles/Ranged/DrizzlefishFireSplit.cs index effcdc1b2d..2900b68c6b 100644 --- a/Projectiles/Ranged/DrizzlefishFireSplit.cs +++ b/Projectiles/Ranged/DrizzlefishFireSplit.cs @@ -20,10 +20,10 @@ namespace CalamityMod.Projectiles.Ranged projectile.friendly = true; projectile.ignoreWater = true; projectile.ranged = true; - projectile.penetrate = -1; + projectile.penetrate = 5; projectile.timeLeft = 90; projectile.usesIDStaticNPCImmunity = true; - projectile.idStaticNPCHitCooldown = 8; + projectile.idStaticNPCHitCooldown = 15; } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Ranged/DrizzlefishFireball.cs b/Projectiles/Ranged/DrizzlefishFireball.cs index 326b0b5e6b..91762385a8 100644 --- a/Projectiles/Ranged/DrizzlefishFireball.cs +++ b/Projectiles/Ranged/DrizzlefishFireball.cs @@ -19,7 +19,7 @@ namespace CalamityMod.Projectiles.Ranged projectile.height = 10; projectile.friendly = true; projectile.ranged = true; - projectile.penetrate = 6; + projectile.penetrate = 5; projectile.aiStyle = 14; projectile.timeLeft = 300; projectile.usesIDStaticNPCImmunity = true;