From 843b7364c2fa56a7f522032f231f4c2647b6f144 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Sat, 29 Jul 2023 13:53:52 -0600 Subject: [PATCH 01/20] huh thought we had more of these holdout projectiles, well this fixes jank interactions with UI --- Projectiles/Ranged/HeavenlyGaleProj.cs | 2 +- Projectiles/Summon/AtlasMunitionsAutocannonHeld.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Ranged/HeavenlyGaleProj.cs b/Projectiles/Ranged/HeavenlyGaleProj.cs index e17f65073a..39abac9f76 100644 --- a/Projectiles/Ranged/HeavenlyGaleProj.cs +++ b/Projectiles/Ranged/HeavenlyGaleProj.cs @@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Ranged Vector2 tipPosition = armPosition + Projectile.velocity * Projectile.width * 0.45f; // Activate shot behavior if the owner stops channeling or otherwise cannot use the weapon. - bool activatingShoot = ShootDelay <= 0 && Main.mouseLeft && !Main.mapFullscreen && !Main.blockMouse; + bool activatingShoot = ShootDelay <= 0 && Main.mouseLeft && !Main.mapFullscreen && !Owner.mouseInterface; if (Main.myPlayer == Projectile.owner && OwnerCanShoot && activatingShoot) { SoundEngine.PlaySound(HeavenlyGale.FireSound, Projectile.Center); diff --git a/Projectiles/Summon/AtlasMunitionsAutocannonHeld.cs b/Projectiles/Summon/AtlasMunitionsAutocannonHeld.cs index 6f978ef544..d236f09954 100644 --- a/Projectiles/Summon/AtlasMunitionsAutocannonHeld.cs +++ b/Projectiles/Summon/AtlasMunitionsAutocannonHeld.cs @@ -235,7 +235,7 @@ namespace CalamityMod.Projectiles.Summon // Determine whether the cannon is being fired based on the left mouse state. bool wasFiring = IsFiring; - IsFiring = Main.mouseLeft && !Main.blockMouse; + IsFiring = Main.mouseLeft && !Owner.mouseInterface; // Notify other clients and the server if the cannon's firing state has changed. This sync cannot be blocked by the net spam threshold. if (wasFiring != IsFiring) From be9554696215d66bbbb892155f1cd8553a761b46 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sat, 29 Jul 2023 16:42:59 -0500 Subject: [PATCH 02/20] Flat --- CalPlayer/CalamityPlayer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 96b713afde..24a228cbee 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -4642,7 +4642,7 @@ namespace CalamityMod.CalPlayer if (auralisAuroraCounter >= 300) { - modifiers.SourceDamage -= 100; + modifiers.SourceDamage.Flat -= 100; auralisAuroraCounter = 0; auralisAuroraCooldown = CalamityUtils.SecondsToFrames(30f); @@ -5664,7 +5664,7 @@ namespace CalamityMod.CalPlayer // Resilient Candle makes defense 5% more effective, aka 5% of defense is subtracted from all incoming damage. if (purpleCandle) - modifiers.SourceDamage -= (int)(Player.statDefense * 0.05); + modifiers.SourceDamage.Flat -= (int)(Player.statDefense * 0.05); } #endregion From 46ef65551bc5db27ef01b654d8f97c6e74221dbc Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sat, 29 Jul 2023 17:00:15 -0500 Subject: [PATCH 03/20] Fixed Cirrus' BH5 text during rematches. --- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 26 ++++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 2e8d7ba476..549fcdf17a 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -1237,7 +1237,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (!bossRush) { - if (DownedBossSystem.downedCalamitas) + if (DownedBossSystem.downedCalamitas && !cirrus) key += "Rematch"; CalamityUtils.DisplayLocalizedText(key, cirrus ? cirrusTextColor : textColor); @@ -1261,9 +1261,12 @@ namespace CalamityMod.NPCs.SupremeCalamitas Vector2 circleOffset = player.Center + (Vector2.UnitY * 640f).RotatedBy(MathHelper.ToRadians(blasterTimer * 3f)); NPC.Center = circleOffset; - int blasterDivisor = (int)Math.Floor(5 / uDieLul); + int blasterDivisor = 5; if (blasterTimer % blasterDivisor == 0) - Projectile.NewProjectile(NPC.GetSource_FromAI(), circleOffset, player.Center, ModContent.ProjectileType(), 500, 0f, Main.myPlayer); + { + if (Main.netMode != NetmodeID.MultiplayerClient) + Projectile.NewProjectile(NPC.GetSource_FromAI(), circleOffset, player.Center, ModContent.ProjectileType(), 500, 0f, Main.myPlayer); + } int beamDivisor = 60; if (blasterTimer % beamDivisor == 0) @@ -1272,15 +1275,18 @@ namespace CalamityMod.NPCs.SupremeCalamitas float radians = MathHelper.TwoPi / totalProjectiles; float velocity = 12f * uDieLul; Vector2 spinningPoint = new Vector2(0f, -velocity); - for (int k = 0; k < totalProjectiles; k++) + if (Main.netMode != NetmodeID.MultiplayerClient) { - Vector2 rayVelocity = spinningPoint.RotatedBy(radians * k); - int proj = Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + Vector2.Normalize(rayVelocity) * 16f, rayVelocity, ModContent.ProjectileType(), 350, 0f, Main.myPlayer); - if (proj.WithinBounds(Main.maxProjectiles)) + for (int k = 0; k < totalProjectiles; k++) { - Main.projectile[proj].DamageType = DamageClass.Default; - Main.projectile[proj].friendly = false; - Main.projectile[proj].hostile = true; + Vector2 rayVelocity = spinningPoint.RotatedBy(radians * k); + int proj = Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + Vector2.Normalize(rayVelocity) * 16f, rayVelocity, ModContent.ProjectileType(), 350, 0f, Main.myPlayer); + if (proj.WithinBounds(Main.maxProjectiles)) + { + Main.projectile[proj].DamageType = DamageClass.Default; + Main.projectile[proj].friendly = false; + Main.projectile[proj].hostile = true; + } } } } From 33e3961a8d98915eeab49b34e34f0ef7ed849c9b Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sat, 29 Jul 2023 17:04:44 -0500 Subject: [PATCH 04/20] Cirrus uses Shimmered sprite in phase 2. --- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 549fcdf17a..65096f15e5 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -3152,11 +3152,10 @@ namespace CalamityMod.NPCs.SupremeCalamitas Texture2D texture2D15 = DownedBossSystem.downedCalamitas && !BossRushEvent.BossRushActive ? TextureAssets.Npc[NPC.type].Value : ModContent.Request("CalamityMod/NPCs/SupremeCalamitas/SupremeCalamitasHooded").Value; Texture2D pony = ModContent.Request("CalamityMod/Items/Mounts/AlicornMount_Front").Value; + bool inPhase2 = NPC.ai[0] >= 3f && (NPC.life > NPC.lifeMax * 0.01 || cirrus); if (cirrus) - { - texture2D15 = ModContent.Request("CalamityMod/NPCs/SupremeCalamitas/SupremeCirrus").Value; - } + texture2D15 = inPhase2 ? ModContent.Request("CalamityMod/NPCs/SupremeCalamitas/SupremeCirrus_Shimmered").Value : ModContent.Request("CalamityMod/NPCs/SupremeCalamitas/SupremeCirrus").Value; Vector2 vector11 = new Vector2(texture2D15.Width / 2f, texture2D15.Height / Main.npcFrameCount[NPC.type] / 2f); Vector2 ponyOrigin = new Vector2(pony.Width / 2f, pony.Height / 30f); @@ -3185,7 +3184,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas } } - bool inPhase2 = NPC.ai[0] >= 3f && NPC.life > NPC.lifeMax * 0.01; Vector2 vector43 = NPC.Center - screenPos; vector43 -= new Vector2(texture2D15.Width / 2f, texture2D15.Height / Main.npcFrameCount[NPC.type]) * NPC.scale / 2f; vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); From 684aef144f4ddda290e4961515f1a7bdf7824562 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sat, 29 Jul 2023 17:14:37 -0500 Subject: [PATCH 05/20] Cirrus' Photon Ripper teeth issue fixed. --- Projectiles/Boss/CirrusPhotonRipperPrismTooth.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projectiles/Boss/CirrusPhotonRipperPrismTooth.cs b/Projectiles/Boss/CirrusPhotonRipperPrismTooth.cs index 7b9e246965..1c5aa96e60 100644 --- a/Projectiles/Boss/CirrusPhotonRipperPrismTooth.cs +++ b/Projectiles/Boss/CirrusPhotonRipperPrismTooth.cs @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Boss // Die if Cirrus shouldn't be using it. int cirrusBulletHellCounter = Cirrus.ModNPC().bulletHellCounter2; - if (!(cirrusBulletHellCounter > SupremeCalamitas.SecondBulletHellEndValue && cirrusBulletHellCounter < SupremeCalamitas.SecondBulletHellEndValue) && + if (!(cirrusBulletHellCounter > SupremeCalamitas.SecondBulletHellEndValue && cirrusBulletHellCounter < SupremeCalamitas.ThirdBulletHellEndValue) && !(cirrusBulletHellCounter > SupremeCalamitas.FourthBulletHellEndValue && cirrusBulletHellCounter < SupremeCalamitas.FifthBulletHellEndValue)) { Projectile.Kill(); From a510731af351a338bc52f3a810531b2ada104e58 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sat, 29 Jul 2023 17:15:39 -0500 Subject: [PATCH 06/20] Cirrus moves a bit slower while holding Photon Ripper. --- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 65096f15e5..e2d5ad16cb 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -64,9 +64,9 @@ namespace CalamityMod.NPCs.SupremeCalamitas public const int FourthBulletHellEndValue = BulletHellDuration * 4; public const int FifthBulletHellEndValue = BulletHellDuration * 5; public const int CirrusPhotonRipperDamage = 3725; - private const float CirrusPhotonRipperDashVelocity = 8f; + private const float CirrusPhotonRipperDashVelocity = 6f; private const float CirrusPhotonRipperMinDistanceFromTarget = 64f; - private const float CirrusPhotonRipperDashAcceleration = 0.4f; + private const float CirrusPhotonRipperDashAcceleration = 0.3f; public float bossLife; public float uDieLul = 1f; From 3091dbe71c2f967428c5743d0c480a4cca2206c1 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sat, 29 Jul 2023 17:38:02 -0500 Subject: [PATCH 07/20] Crabulon mushroom fixes. --- Projectiles/Boss/MushBomb.cs | 10 +++++----- Projectiles/Boss/MushBombFall.cs | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Projectiles/Boss/MushBomb.cs b/Projectiles/Boss/MushBomb.cs index 7ef3a21af4..3c5a358042 100644 --- a/Projectiles/Boss/MushBomb.cs +++ b/Projectiles/Boss/MushBomb.cs @@ -23,7 +23,7 @@ namespace CalamityMod.Projectiles.Boss Projectile.height = 14; Projectile.hostile = true; Projectile.tileCollide = false; - Projectile.Opacity = 0f; + Projectile.Opacity = 0.25f; Projectile.penetrate = 1; Projectile.timeLeft = 600; Projectile.aiStyle = ProjAIStyleID.Arrow; @@ -34,10 +34,10 @@ namespace CalamityMod.Projectiles.Boss { if (Projectile.velocity.Y > 0f) { - if (Projectile.Opacity == 0f) + if (Projectile.Opacity < 1f) { Projectile.Opacity = 1f; - SoundEngine.PlaySound(SoundID.Item44, Projectile.Center); + SoundEngine.PlaySound(SoundID.Item21, Projectile.Center); int dustAmount = 36; for (int i = 0; i < dustAmount; i++) { @@ -85,7 +85,7 @@ namespace CalamityMod.Projectiles.Boss int height = texture.Height / Main.projFrames[Projectile.type]; int drawStart = height * Projectile.frame; Vector2 origin = Projectile.Size / 2; - Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White * Projectile.Opacity, Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); return false; } @@ -99,7 +99,7 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.spriteDirection == -1) spriteEffects = SpriteEffects.FlipHorizontally; - Main.EntitySpriteDraw(ModContent.Request("CalamityMod/Projectiles/Boss/MushBombGlow").Value, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, spriteEffects, 0); + Main.EntitySpriteDraw(ModContent.Request("CalamityMod/Projectiles/Boss/MushBombGlow").Value, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White * Projectile.Opacity, Projectile.rotation, origin, Projectile.scale, spriteEffects, 0); } public override void Kill(int timeLeft) diff --git a/Projectiles/Boss/MushBombFall.cs b/Projectiles/Boss/MushBombFall.cs index bd394334b7..f6435549f2 100644 --- a/Projectiles/Boss/MushBombFall.cs +++ b/Projectiles/Boss/MushBombFall.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Boss Projectile.height = 14; Projectile.hostile = true; Projectile.tileCollide = false; - Projectile.Opacity = 0f; + Projectile.Opacity = 0.25f; Projectile.penetrate = 1; Projectile.timeLeft = 600; } @@ -34,10 +34,10 @@ namespace CalamityMod.Projectiles.Boss { if (Projectile.velocity.Y > 0f) { - if (Projectile.Opacity == 0f) + if (Projectile.Opacity < 1f) { Projectile.Opacity = 1f; - SoundEngine.PlaySound(SoundID.Item44, Projectile.Center); + SoundEngine.PlaySound(SoundID.Item21, Projectile.Center); int dustAmount = 36; for (int i = 0; i < dustAmount; i++) { @@ -97,7 +97,7 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.spriteDirection == -1) spriteEffects = SpriteEffects.FlipHorizontally; - Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, spriteEffects, 0); + Main.EntitySpriteDraw(texture, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White * Projectile.Opacity, Projectile.rotation, origin, Projectile.scale, spriteEffects, 0); return false; } @@ -107,7 +107,7 @@ namespace CalamityMod.Projectiles.Boss int height = texture.Height / Main.projFrames[Projectile.type]; int drawStart = height * Projectile.frame; Vector2 origin = Projectile.Size / 2; - Main.EntitySpriteDraw(ModContent.Request("CalamityMod/Projectiles/Boss/MushBombGlow").Value, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White, Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); + Main.EntitySpriteDraw(ModContent.Request("CalamityMod/Projectiles/Boss/MushBombGlow").Value, Projectile.Center - Main.screenPosition, new Microsoft.Xna.Framework.Rectangle?(new Rectangle(0, drawStart, texture.Width, height)), Color.White * Projectile.Opacity, Projectile.rotation, origin, Projectile.scale, SpriteEffects.None, 0); } public override void Kill(int timeLeft) From e6c583cc25e5cdfc7530e0a5062f9cb0faeb61b8 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sat, 29 Jul 2023 17:51:44 -0500 Subject: [PATCH 08/20] Fixed Cirrus' final attack crash. --- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index e2d5ad16cb..95f4e221fe 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -1265,7 +1265,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (blasterTimer % blasterDivisor == 0) { if (Main.netMode != NetmodeID.MultiplayerClient) - Projectile.NewProjectile(NPC.GetSource_FromAI(), circleOffset, player.Center, ModContent.ProjectileType(), 500, 0f, Main.myPlayer); + Projectile.NewProjectile(NPC.GetSource_FromAI(), circleOffset, player.Center, ModContent.ProjectileType(), 500, 0f, Main.myPlayer, 0f, 1f); } int beamDivisor = 60; From b2bd5c68e3c70963923d55d9c0b32e3ed7842fe0 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sat, 29 Jul 2023 18:14:27 -0500 Subject: [PATCH 09/20] Tried to fix HAGE moon on hit crash. --- CalPlayer/CalamityPlayer.cs | 8 ++++---- Projectiles/Boss/BrimstoneMonster.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 0428412f97..6ed06de0ff 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3383,25 +3383,24 @@ namespace CalamityMod.CalPlayer if (cooldowns.TryGetValue(PotionSickness.ID, out CooldownInstance cd)) { if (Player.potionDelay != cd.timeLeft && cd.timeLeft > 0) - { cd.timeLeft = Player.potionDelay; - } if (cd.timeLeft > cd.duration) cd.duration = cd.timeLeft; // If the new cooldown is larger than the full duration, update, else keep it the same. } - - + // Add a cooldown display for chaos state if the player has the vanilla counter ticking // This will make the cooldown look like vanilla Rod of Discord, as it wasn't applied by either Normality Relocator or Spectral Veil if (Player.chaosState && !Player.HasCooldown(ChaosState.ID)) { for (int l = 0; l < Player.MaxBuffs; l++) + { if (Player.buffType[l] == BuffID.ChaosState) { Player.AddCooldown(ChaosState.ID, Player.buffTime[l], false); break; } + } } } @@ -3413,6 +3412,7 @@ namespace CalamityMod.CalPlayer float lifeStealNerf = BossRushEvent.BossRushActive ? 0.3f : CalamityWorld.death ? 0.25f : CalamityWorld.revenge ? 0.2f : Main.expertMode ? 0.15f : 0.1f; duration /= baseCooldown - lifeStealNerf; duration *= -1f; + if (!Player.HasCooldown(LifeSteal.ID) || (cooldowns[LifeSteal.ID].duration < (int)duration)) Player.AddCooldown(LifeSteal.ID, (int)duration); } diff --git a/Projectiles/Boss/BrimstoneMonster.cs b/Projectiles/Boss/BrimstoneMonster.cs index e14e5945f5..c71343f440 100644 --- a/Projectiles/Boss/BrimstoneMonster.cs +++ b/Projectiles/Boss/BrimstoneMonster.cs @@ -204,7 +204,7 @@ namespace CalamityMod.Projectiles.Boss for (int l = 0; l < Player.MaxBuffs; l++) { int buffType = target.buffType[l]; - if (!CalamityLists.debuffList.Contains(buffType)) + if (target.buffTime[l] > 0 && CalamityLists.amalgamBuffList.Contains(buffType)) { target.DelBuff(l); l--; From 1dace3327cb40946ea774668186bd4d10b07449f Mon Sep 17 00:00:00 2001 From: Xyk Date: Sat, 29 Jul 2023 21:37:40 -0700 Subject: [PATCH 10/20] Vanilla Armor melee speed balancing Gi - 10% MS replaced with 10% jump speed Cobalt Set Bonus - Reduced to 10% MS Adamantite Set Bonus - reduced MS to 15% Titanium Helm - Buffed MS to 14% Beetle Armor - Removed melee speed from the stacking beetles buff entirely --- Buffs/CalamityGlobalBuff.cs | 16 +++++++++-- CalPlayer/CalamityPlayer.cs | 2 +- Items/CalamityGlobalItem.cs | 9 ++++++ Items/CalamityGlobalItemTooltip.cs | 28 +++++++++++++------ .../AdamantiteArmorSetChange.cs | 2 ++ .../CobaltArmorSetChange.cs | 2 ++ 6 files changed, 48 insertions(+), 11 deletions(-) diff --git a/Buffs/CalamityGlobalBuff.cs b/Buffs/CalamityGlobalBuff.cs index f36f450428..c85fc50ea3 100644 --- a/Buffs/CalamityGlobalBuff.cs +++ b/Buffs/CalamityGlobalBuff.cs @@ -81,6 +81,18 @@ namespace CalamityMod.Buffs { player.GetDamage() -= 0.2f; } + else if (type == BuffID.BeetleMight1) + { + player.GetAttackSpeed() -= 0.1f; + } + else if (type == BuffID.BeetleMight2) + { + player.GetAttackSpeed() -= 0.2f; + } + else if (type == BuffID.BeetleMight3) + { + player.GetAttackSpeed() -= 0.3f; + } } public override void Update(int type, NPC npc, ref int buffIndex) @@ -157,7 +169,7 @@ namespace CalamityMod.Buffs tip = "22.5% increased damage"; break; - /*case BuffID.BeetleMight1: + case BuffID.BeetleMight1: tip = "Melee damage increased by 10%"; break; @@ -167,7 +179,7 @@ namespace CalamityMod.Buffs case BuffID.BeetleMight3: tip = "Melee damage increased by 30%"; - break;*/ + break; case BuffID.BeetleEndurance1: tip = "Damage taken reduced by 10%"; diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 200d40d815..bba1dc1e39 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -3203,7 +3203,7 @@ namespace CalamityMod.CalPlayer // Nerfs the effectiveness of Beetle Scale Mail. if (Player.beetleOffense && Player.beetleOrbs > 0) - meleeSpeedMult -= 0.1f * Player.beetleOrbs; + Player.GetAttackSpeed() -= 0.1f * Player.beetleOrbs; if (GemTechSet && GemTechState.IsYellowGemActive) meleeSpeedMult += GemTechHeadgear.MeleeSpeedBoost; diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index e2f64d663e..30ba5a652a 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1021,6 +1021,15 @@ namespace CalamityMod.Items player.GetCritChance() -= 1; break; + case ItemID.Gi: + player.GetAttackSpeed() -= 0.1f; + player.jumpSpeedBoost += 0.5f; + break; + + case ItemID.TitaniumMask: + player.GetAttackSpeed() += 0.05f; + break; + case ItemID.SquireGreatHelm: player.lifeRegen -= 3; break; diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 4ace5a4bdb..10da4fb617 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -344,7 +344,7 @@ namespace CalamityMod.Items // Aerial Bane is no longer the real bane of aerial enemies (50% dmg bonus removed) if (item.type == ItemID.DD2BetsyBow) EditTooltipByNum(0, (line) => line.Text = "Shoots splitting arrows"); - + // Modify item speed tooltips to use a new scale designed to more accurately reflect practical distributions of item speeds. // Due to the higher complexity of the action, the actual logic is delegated to its own method. // I think this fits the miscellaneous category? Not seeing anything like this elsewhere. - Tomat @@ -393,7 +393,7 @@ namespace CalamityMod.Items { EditTooltipByNum(0, (line) => line.Text += " to summon the Golem\n"); EditTooltipByNum(0, (line) => line.Text += "Enrages outside the Jungle Temple"); - + } if (item.type == ItemID.MechanicalEye || item.type == ItemID.MechanicalSkull || item.type == ItemID.MechanicalWorm || item.type == ItemID.SuspiciousLookingEye) @@ -672,24 +672,24 @@ namespace CalamityMod.Items // Feral Claws line melee speed and true melee damage changes if (item.type == ItemID.FeralClaws) EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("12%", "10%")); - + if (item.type == ItemID.TitanGlove) EditTooltipByNum(0, (line) => line.Text += "\n10% increased true melee damage"); - + if (item.type == ItemID.PowerGlove) { EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("12%", "10%")); EditTooltipByNum(0, (line) => line.Text += "\n10% increased true melee damage"); } - + if (item.type == ItemID.BerserkerGlove) { EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("12% increased melee speed", "10% increased true melee damage")); } if (item.type == ItemID.MechanicalGlove) - EditTooltipByNum(0, (line) => line.Text += "\n10% increased true melee damage"); - + EditTooltipByNum(0, (line) => line.Text += "\n10% increased true melee damage"); + if (item.type == ItemID.FireGauntlet) { EditTooltipByNum(0, (line) => line.Text = line.Text.Replace("fire damage", "Hellfire")); @@ -718,6 +718,10 @@ namespace CalamityMod.Items // Falcon Blade +20% move speed while holding if (item.type == ItemID.FalconBlade) EditTooltipByName("Knockback", (line) => line.Text += "\nHolding this item grants +20% increased movement speed"); + + //Gi 10% melee speed into 10% jump speed replacement + if (item.type == ItemID.Gi) + EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("melee", "jump")); #endregion // Pre-Hardmode ore armor tooltip edits @@ -816,6 +820,10 @@ namespace CalamityMod.Items // Adamantite if (item.type == ItemID.AdamantiteHeadgear) EditTooltipByNum(0, (line) => line.Text = $"Increases maximum mana by {AdamantiteArmorSetChange.MaxManaBoost + 80}"); + + // Titanium + if (item.type == ItemID.TitaniumMask) + EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("9", "14")); #endregion // DD2 armor tooltip edits @@ -878,7 +886,7 @@ namespace CalamityMod.Items if (item.type == ItemID.SlimeCrown || item.type == ItemID.SuspiciousLookingEye || item.type == ItemID.BloodMoonStarter || item.type == ItemID.GoblinBattleStandard || item.type == ItemID.WormFood || item.type == ItemID.BloodySpine || item.type == ItemID.Abeemination || item.type == ItemID.DeerThing || item.type == ItemID.QueenSlimeCrystal || item.type == ItemID.PirateMap || item.type == ItemID.SnowGlobe || item.type == ItemID.MechanicalEye || item.type == ItemID.MechanicalWorm || item.type == ItemID.MechanicalSkull || - item.type == ItemID.NaughtyPresent ||item.type == ItemID.PumpkinMoonMedallion || item.type == ItemID.SolarTablet ||item.type == ItemID.SolarTablet || item.type == ItemID.CelestialSigil) + item.type == ItemID.NaughtyPresent || item.type == ItemID.PumpkinMoonMedallion || item.type == ItemID.SolarTablet || item.type == ItemID.SolarTablet || item.type == ItemID.CelestialSigil) EditTooltipByNum(0, (line) => line.Text += "\nNot consumable"); #endregion @@ -913,6 +921,10 @@ namespace CalamityMod.Items if ((item.type == ItemID.AncientBattleArmorHat || item.type == ItemID.AncientBattleArmorShirt || item.type == ItemID.AncientBattleArmorPants) && !Main.LocalPlayer.Calamity().forbiddenCirclet) EditTooltipByName("SetBonus", (line) => line.Text += "\nMinions no longer deal less damage while wielding magic weapons"); + + //Beetle Armor melee speed removal + if (item.type == ItemID.BeetleHelmet || item.type == ItemID.BeetleScaleMail || item.type == ItemID.BeetleLeggings) + EditTooltipByName("SetBonus", (line) => line.Text = line.Text.Replace("and speed", "by 10% per beetle")); #endregion // Provide the full stats of every vanilla set of wings diff --git a/Items/VanillaArmorChanges/AdamantiteArmorSetChange.cs b/Items/VanillaArmorChanges/AdamantiteArmorSetChange.cs index cd726e457a..0cfc87bd60 100644 --- a/Items/VanillaArmorChanges/AdamantiteArmorSetChange.cs +++ b/Items/VanillaArmorChanges/AdamantiteArmorSetChange.cs @@ -30,6 +30,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void UpdateSetBonusText(ref string setBonusText) { + setBonusText = setBonusText.Replace("20% increased melee and movement speed", "15% increased melee speed and 20% increased movement speed"); setBonusText += "\nHalf of your current DR is added to your critical strike chance\n" + $"Continuously doing damage makes you gradually gain more and more defense, up to a maximum of {DefenseBoostMax}\n" + "When not doing damage, this bonus gradually decays\n" + @@ -46,6 +47,7 @@ namespace CalamityMod.Items.VanillaArmorChanges break; case ItemID.AdamantiteHelmet: player.GetCritChance() += critBoost; + player.GetAttackSpeed() -= 0.05f; break; case ItemID.AdamantiteMask: player.GetCritChance() += critBoost; diff --git a/Items/VanillaArmorChanges/CobaltArmorSetChange.cs b/Items/VanillaArmorChanges/CobaltArmorSetChange.cs index 87bf0c8f78..786170ac37 100644 --- a/Items/VanillaArmorChanges/CobaltArmorSetChange.cs +++ b/Items/VanillaArmorChanges/CobaltArmorSetChange.cs @@ -30,6 +30,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void UpdateSetBonusText(ref string setBonusText) { + setBonusText = setBonusText.Replace("15", "10"); setBonusText += $"\n{SpeedBoostSetBonusPercentage}% increased max speed and acceleration\n" + $"You gain a damage and critical strike chance boost relative to your current movement speed, up to {SpeedBoostSetBonusPercentage}%"; } @@ -51,6 +52,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override void ApplyArmorSetBonus(Player player) { + player.GetAttackSpeed() -= 0.05f; player.Calamity().CobaltSet = true; } } From 496d6e3c2d0657801aaa9d5493063cd127141707 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sun, 30 Jul 2023 01:09:27 -0500 Subject: [PATCH 11/20] 1 - Made Rev+ Plantera free tentacles and homing gas bulbs easier to see. 2 - Made Rev+ Plantera charge gas have a higher starting velocity and made her unleash a spread of spores at the start of each charge. --- NPCs/NormalNPCs/PlanterasFreeTentacle.cs | 5 +++- NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs | 27 +++++++++++++++++-- Projectiles/Boss/HomingGasBulb.cs | 2 ++ 3 files changed, 31 insertions(+), 3 deletions(-) diff --git a/NPCs/NormalNPCs/PlanterasFreeTentacle.cs b/NPCs/NormalNPCs/PlanterasFreeTentacle.cs index be364e7e1c..5a78f9e7c1 100644 --- a/NPCs/NormalNPCs/PlanterasFreeTentacle.cs +++ b/NPCs/NormalNPCs/PlanterasFreeTentacle.cs @@ -63,10 +63,13 @@ namespace CalamityMod.NPCs.NormalNPCs { NPC.TargetClosest(); + // Emit light + Lighting.AddLight((int)((NPC.position.X + (NPC.width / 2)) / 16f), (int)((NPC.position.Y + (NPC.height / 2)) / 16f), 0.2f, 0.4f, 0.1f); + // Spore dust if (Main.rand.NextBool(10)) { - Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, 44, 0f, 0f, 250, default, 0.2f); + Dust dust = Dust.NewDustDirect(NPC.position, NPC.width, NPC.height, 44, 0f, 0f, 250, default, 0.4f); dust.fadeIn = 0.7f; } diff --git a/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs b/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs index cb8190ad98..1700f4f3fc 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/PlanteraAI.cs @@ -327,14 +327,14 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses // Emit spore gas in phase 3 else if (npc.ai[3] <= BeginChargeGateValue) { - float sporeGasDashGateValue = death ? 6f : 8f; + float sporeGasDashGateValue = death ? 4f : 6f; if (phase3 && npc.ai[3] % sporeGasDashGateValue == 0f) { if (Main.netMode != NetmodeID.MultiplayerClient) { int projectileType = ModContent.ProjectileType(); int damage = npc.GetProjectileDamage(projectileType); - Vector2 projectileVelocity = npc.velocity * Main.rand.NextVector2CircularEdge(0.05f, 0.05f); + Vector2 projectileVelocity = npc.velocity * Main.rand.NextVector2CircularEdge(0.2f, 0.2f); float ai0 = Main.rand.Next(3); Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + Vector2.Normalize(projectileVelocity) * 30f, projectileVelocity, projectileType, damage, 0f, Main.myPlayer, ai0); } @@ -380,6 +380,23 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses Dust dust = Dust.NewDustDirect(npc.Center, npc.width, npc.height, 44, dustVelocity.X, dustVelocity.Y, 250, default, 0.8f); dust.fadeIn = 0.7f; } + + // Vomit spread of spore gas + if (Main.netMode != NetmodeID.MultiplayerClient) + { + int totalProjectiles = 12; + float radians = MathHelper.TwoPi / totalProjectiles; + int type = ModContent.ProjectileType(); + int damage = npc.GetProjectileDamage(type); + float velocity2 = CalamityWorld.LegendaryMode ? 10f : 5f; + Vector2 spinningPoint = new Vector2(0f, -velocity2); + for (int k = 0; k < totalProjectiles; k++) + { + Vector2 projectileVelocity = spinningPoint.RotatedBy(radians * k); + float ai0 = Main.rand.Next(3); + Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + Vector2.Normalize(projectileVelocity) * 50f, projectileVelocity * Main.rand.NextFloat(0.8f, 1.2f), type, damage, 0f, Main.myPlayer, ai0); + } + } } // Rotation @@ -500,6 +517,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses // Phase 2 else { + // Emit light + Lighting.AddLight((int)((npc.position.X + (npc.width / 2)) / 16f), (int)((npc.position.Y + (npc.height / 2)) / 16f), 0.4f, 0.8f, 0.2f); + // Spore dust if (Main.rand.NextBool(10)) { @@ -847,6 +867,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses // Percent life remaining float lifeRatio = npc.life / (float)npc.lifeMax; + // Emit light + Lighting.AddLight((int)((npc.position.X + (npc.width / 2)) / 16f), (int)((npc.position.Y + (npc.height / 2)) / 16f), 0.2f, 0.4f, 0.1f); + // Spore dust if (Main.rand.NextBool(10)) { diff --git a/Projectiles/Boss/HomingGasBulb.cs b/Projectiles/Boss/HomingGasBulb.cs index 9494d1a359..ad209e16d8 100644 --- a/Projectiles/Boss/HomingGasBulb.cs +++ b/Projectiles/Boss/HomingGasBulb.cs @@ -74,6 +74,8 @@ namespace CalamityMod.Projectiles.Boss } } + public override Color? GetAlpha(Color lightColor) => new Color(255, 255, 255, Projectile.alpha); + public override void Kill(int timeLeft) { SoundEngine.PlaySound(SoundID.NPCDeath1, Projectile.Center); From f99da838a8100a7b8f053ab6858af350d1084f9b Mon Sep 17 00:00:00 2001 From: GinYuH <> Date: Sun, 30 Jul 2023 00:20:50 -0700 Subject: [PATCH 12/20] LORDE GORE and map icon --- .../Mods.CalamityMod.Projectiles.Boss.hjson | 1 + NPCs/Other/THELORDE.cs | 13 +++++ NPCs/Other/THELORDE_Head_Boss.png | Bin 0 -> 1113 bytes Projectiles/Boss/GooglyEye.cs | 54 ++++++++++++++++++ Projectiles/Boss/GooglyEye.png | Bin 0 -> 371 bytes 5 files changed, 68 insertions(+) create mode 100644 NPCs/Other/THELORDE_Head_Boss.png create mode 100644 Projectiles/Boss/GooglyEye.cs create mode 100644 Projectiles/Boss/GooglyEye.png diff --git a/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson b/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson index d21af97bf1..b140027d3e 100644 --- a/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson +++ b/Localization/en-US/Mods.CalamityMod.Projectiles.Boss.hjson @@ -63,6 +63,7 @@ FlareDust.DisplayName: Flare Dust FlareDust2.DisplayName: Flare Bomb Flarenado.DisplayName: Flarenado FrostMist.DisplayName: Frost Mist +GooglyEye.DisplayName: Googly Eye GreatSandBlast.DisplayName: Great Sand Blast HealOrbProv.DisplayName: Heal HellfireExplosion.DisplayName: Brimstone Hellfire Explosion diff --git a/NPCs/Other/THELORDE.cs b/NPCs/Other/THELORDE.cs index 043e3bdc70..3532bd056d 100644 --- a/NPCs/Other/THELORDE.cs +++ b/NPCs/Other/THELORDE.cs @@ -16,6 +16,7 @@ using CalamityMod.Balancing; namespace CalamityMod.NPCs.Other { + [AutoloadBossHead] // I would like to say first and foremost, that 95% of this is directly ported from his code when he got removed in early 2018 public class THELORDE : ModNPC { @@ -555,6 +556,18 @@ namespace CalamityMod.NPCs.Other return false; } + public override void OnKill() + { + if (Main.netMode != NetmodeID.MultiplayerClient) + { + for (int i = 0; i < 2; i++) + { + Vector2 speed = new Vector2(Main.rand.NextFloat(-10, 10), Main.rand.NextFloat(-10, 10)); + Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, speed, ModContent.ProjectileType(), 0, 0f, Main.myPlayer); + } + } + } + public override void ApplyDifficultyAndPlayerScaling(int numPlayers, float bossLifeScale, float anotherthing) { NPC.lifeMax = (int)(NPC.lifeMax * 0.5f * bossLifeScale); diff --git a/NPCs/Other/THELORDE_Head_Boss.png b/NPCs/Other/THELORDE_Head_Boss.png new file mode 100644 index 0000000000000000000000000000000000000000..bb98ae47977b21de216a5c208f48ffaec41585ae GIT binary patch literal 1113 zcmV-f1g86mP)Px&`AI}UR9J=8*l%dnRUF6h*VSd3gOW6t5kjqSHbdvF)Qp-Xr9Oyd5Q>TY(J(C{ zEr=#XL7|vE$Uiju13vIUsL>M}_-9}>O}7+Gjhw0BrlzqbrXspu4}SMFes}lIjUIIO zd2;UWobx@u!~1^E_xt^w)V3#H29MUR))S@cA~39BJ7`Hyis0SfSAl7>zXa{+g~22R z4=kUPbG?SjRL=fBJ=)d(prXsy|Is6ZKyK78KY{%ja!<~k0Hz(jj1F>p%9~QKZ`jk| z%C4W|7mq8C;Q8-XreOD{^FdT|Kj_=|9C`!6>&A?Ue|@tdF%U@Q)BX_^5iDK00Muvt zmp^<*3chG=ieOILQP6Vt+W3WUtcu|88P#C^$=Zm{z8X~c1dGOuPIO$@6rbuHH!cI! zZEr^K;ogr^(C}Lc*f@O#sBhW})}NmQX0~jPU}o_NaG3}O{~E6!e6{*y(pQabj>$FN zme^0>6C615adh}x-TBWz<*~gH?5RqF_QeY$=riPdaAoc%iG^ksZ%;fgS{D2E&YJi+ zke*PQ@p(UXYlDSPFuUWO;uj;RY+aDkAe%&Z4hrO?Ux?e9&vVYNzpEdpKD-jNr{jOf zV{zQPD$Ya&PcRj7@sdRg zMRX7er*6ZnZ@XML+b;VwXRDJh_Lfszbm67l;F-zea!z>bqZMHIy_3NY>+SFuaF$wRz@+(>(IlkWrGkx$p@de{U36JEAf% z5HiBKS6&67+FP>kDe%6o?ZUd}&Lqe4DZ8EwDtv-BD@nmE<-3x(_;hmO_<3>LD9*h{ z>oXZ-=&r=P>`am!|Ni}U$q>6%d@Oi^sRN5E!10zC;Dx@IB02~Ja(R`hoHxHcE9dZ% zEwRt$^Rb|ORZYPYEV^fTTsg0KB#uXCPsH_G+4xY`b?+2rYx=qyKvlXFtY|xxg5y_P zz_yDOneXR3WP43L7=D~R(H|V?e|rknZ;5ZMrdGA)G|Zen(R< zaPnYqa8WTRn-|vx;g+lS5M0u<6O@%q$~`lD=Vre0x~+^ah5NpsLz(ugHTewVf!;$f zTdz%tePr|3@g2?7Krpl!h4|OW_cAvGwwC^<4Hi7Xe*oETZPwj%Oo;#h01jnXNoGw= f04e|g00;m8000000Mb*F00000NkvXXu0mjfju|5q literal 0 HcmV?d00001 diff --git a/Projectiles/Boss/GooglyEye.cs b/Projectiles/Boss/GooglyEye.cs new file mode 100644 index 0000000000..35366b51c8 --- /dev/null +++ b/Projectiles/Boss/GooglyEye.cs @@ -0,0 +1,54 @@ +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Projectiles.Boss +{ + public class GooglyEye : ModProjectile, ILocalizedModType + { + public new string LocalizationCategory => "Projectiles.Boss"; + public ref float Time => ref Projectile.ai[0]; + + public override void SetDefaults() + { + Projectile.width = Projectile.height = 26; + Projectile.ignoreWater = true; + Projectile.tileCollide = true; + Projectile.penetrate = -1; + Projectile.timeLeft = 480; + } + + public override void AI() + { + if (Time < 5f) + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; + else + Projectile.rotation += (Projectile.velocity.X > 0f).ToDirectionInt() * Projectile.velocity.Length() * 0.018f; + + if (Projectile.timeLeft < 90) + Projectile.Opacity = Projectile.timeLeft / 90f; + Projectile.velocity.Y = MathHelper.Clamp(Projectile.velocity.Y + 0.325f, -25f, 25f); + + Time++; + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + // Stop bouncing after a certain degree of slowness has been reached. + if (Projectile.velocity.Length() < 3f) + { + Projectile.velocity = Vector2.Zero; + return false; + } + + if (Projectile.velocity.X != oldVelocity.X) + Projectile.velocity.X = -oldVelocity.X; + + if (Projectile.velocity.Y != oldVelocity.Y) + Projectile.velocity.Y = -oldVelocity.Y * 0.75f; + Projectile.velocity *= 0.8f; + + return false; + } + } +} diff --git a/Projectiles/Boss/GooglyEye.png b/Projectiles/Boss/GooglyEye.png new file mode 100644 index 0000000000000000000000000000000000000000..72a6ed8b8dbb6264fb4ef95db137ecccbf8f940c GIT binary patch literal 371 zcmeAS@N?(olHy`uVBq!ia0vp^QXtI11|(N{`J4k%jKx9jP7LeL$-D%zg*{yyLp(a) zPTSaZ$U&fOzvWxo9G33GPSJva9~gZKzbe`_`ad;}i2lK`Y{Hgj4>kzom^5A2jC#>! z80otxPwKzc=G`}M_TT*}De1qR!9+Xq&=q-}@6!v{X0@(keqyxa-h1co*Eg$no%k%q z@aOED6)fhVXSx~AOh5kijNnTCQt?7gsi!^q+wRWQ4@-I0dF=Arf7cFGUz%vD9eLQL ze^QLMds@$nxgG1SF3R4z<@2`P+*g7Yxp=C2$||nAw0p6erSOW@=_*xInc|i&=B)M% zoYHlj(V)<6-}UbrH;+ipEpBjJRJ=Oq*Q!%5Rn*P>!@|3s7>5fm Date: Sun, 30 Jul 2023 14:42:31 +0700 Subject: [PATCH 13/20] archerfish line tweaks again --- Items/Weapons/Ranged/Archerfish.cs | 30 ++++--- Items/Weapons/Ranged/Megalodon.cs | 27 +++--- Items/Weapons/Ranged/Seadragon.cs | 27 +++--- Projectiles/Ranged/ArcherfishRing.cs | 69 +++++++++------ Projectiles/Ranged/ArcherfishRing.png | Bin 3257 -> 0 bytes Projectiles/Ranged/ArcherfishShot.cs | 116 +++++--------------------- Sounds/Custom/BubblyPop.ogg | Bin 0 -> 4670 bytes Utilities/CollisionUtils.cs | 8 +- 8 files changed, 111 insertions(+), 166 deletions(-) delete mode 100644 Projectiles/Ranged/ArcherfishRing.png create mode 100644 Sounds/Custom/BubblyPop.ogg diff --git a/Items/Weapons/Ranged/Archerfish.cs b/Items/Weapons/Ranged/Archerfish.cs index 485e954365..76b7140b78 100644 --- a/Items/Weapons/Ranged/Archerfish.cs +++ b/Items/Weapons/Ranged/Archerfish.cs @@ -1,7 +1,8 @@ -using Terraria.DataStructures; -using CalamityMod.Projectiles.Ranged; +using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; +using System; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -23,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged Item.knockBack = 2f; Item.value = CalamityGlobalItem.Rarity3BuyPrice; Item.rare = ItemRarityID.Orange; - Item.UseSound = SoundID.Item11; + Item.UseSound = SoundID.Item85; Item.autoReuse = true; Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 11f; @@ -31,23 +32,32 @@ namespace CalamityMod.Items.Weapons.Ranged Item.Calamity().canFirePointBlankShots = true; } - public override Vector2? HoldoutOffset() - { - return new Vector2(-10, -5); - } + public override Vector2? HoldoutOffset() => new Vector2(-10, -5); public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { + // Reposition to the gun's tip + Vector2 newPos = position + new Vector2(60f, player.direction * (Math.Abs(velocity.SafeNormalize(Vector2.Zero).X) < 0.02f ? -2f : -8f)).RotatedBy(velocity.ToRotation()); + + // Fires a spread of harmless bubbles + for (int i = 0; i < 4; i++) + { + Gore bubble = Gore.NewGorePerfect(source, newPos, velocity.RotatedByRandom(MathHelper.ToRadians(30f)) * 0.5f, 411); + bubble.timeLeft = 6 + Main.rand.Next(4); + bubble.scale = Main.rand.NextFloat(0.6f, 0.8f); + bubble.type = Main.rand.NextBool(3) ? 412 : 411; + } + // Replaces standard bullets with water jets. if (type == ProjectileID.Bullet) - Projectile.NewProjectile(source, position, velocity, ModContent.ProjectileType(), damage, knockback, player.whoAmI); + Projectile.NewProjectile(source, newPos, velocity, Item.shoot, damage, knockback, player.whoAmI); else - Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI); + Projectile.NewProjectile(source, newPos, velocity, type, damage, knockback, player.whoAmI); // Always fires a close range water blast. int waterRingDamage = (int)(damage * 0.5f); float boostedKB = knockback + 5f; - Projectile.NewProjectile(source, position, velocity * 0.5f, ModContent.ProjectileType(), waterRingDamage, boostedKB, player.whoAmI); + Projectile.NewProjectile(source, newPos, velocity * 0.5f, ModContent.ProjectileType(), waterRingDamage, boostedKB, player.whoAmI); return false; } diff --git a/Items/Weapons/Ranged/Megalodon.cs b/Items/Weapons/Ranged/Megalodon.cs index 6a62fcfbc2..fd6681b690 100644 --- a/Items/Weapons/Ranged/Megalodon.cs +++ b/Items/Weapons/Ranged/Megalodon.cs @@ -1,9 +1,10 @@ -using Terraria.DataStructures; -using CalamityMod.Projectiles.Ranged; -using CalamityMod.Items.Materials; +using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; +using CalamityMod.Projectiles.Ranged; using Microsoft.Xna.Framework; +using System; using Terraria; +using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -29,33 +30,29 @@ namespace CalamityMod.Items.Weapons.Ranged Item.rare = ItemRarityID.Lime; Item.UseSound = SoundID.Item11; Item.autoReuse = true; - Item.shoot = ProjectileID.PurificationPowder; + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; Item.useAmmo = AmmoID.Bullet; Item.Calamity().canFirePointBlankShots = true; } - public override Vector2? HoldoutOffset() - { - return new Vector2(-5, 0); - } + public override Vector2? HoldoutOffset() => new Vector2(-5, 0); public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - // Both bullets and water jets have very slight inaccuracy - float SpeedX = velocity.X + Main.rand.Next(-10, 11) * 0.05f; - float SpeedY = velocity.Y + Main.rand.Next(-10, 11) * 0.05f; + // Reposition to the gun's tip + add some inaccuracy + Vector2 newPos = position + new Vector2(64f, player.direction * (Math.Abs(velocity.SafeNormalize(Vector2.Zero).X) < 0.02f ? -2f : -8f)).RotatedBy(velocity.ToRotation()); + Vector2 newVel = velocity.RotatedByRandom(MathHelper.ToRadians(5f)); // Fire either the bullet or the water jet, depending on cadence. - int projectileToFire = fireWater ? ModContent.ProjectileType() : type; - Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, projectileToFire, damage, knockback, player.whoAmI, 0.0f, 0.0f); + int projectileToFire = fireWater ? Item.shoot : type; + Projectile.NewProjectile(source, newPos, newVel, projectileToFire, damage, knockback, player.whoAmI); // Always fires a close range water blast. // It goes in the same direction as the main shot but has a minor velocity variation to be less monotonous. - Vector2 waterRingVec = new Vector2(SpeedX, SpeedY) * Main.rand.NextFloat(0.5f, 0.6f); int waterRingDamage = (int)(damage * 0.5f); float boostedKB = knockback + 7f; // Stronger guaranteed KB than Archerfish for mid-late Hardmode - Projectile.NewProjectile(source, position, waterRingVec, ModContent.ProjectileType(), waterRingDamage, boostedKB, player.whoAmI); + Projectile.NewProjectile(source, newPos, newVel * Main.rand.NextFloat(0.5f, 0.6f), ModContent.ProjectileType(), waterRingDamage, boostedKB, player.whoAmI); // Swap between firing bullets and water jets each shot. fireWater = !fireWater; diff --git a/Items/Weapons/Ranged/Seadragon.cs b/Items/Weapons/Ranged/Seadragon.cs index 5e382de81d..05672055dd 100644 --- a/Items/Weapons/Ranged/Seadragon.cs +++ b/Items/Weapons/Ranged/Seadragon.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Placeables; using CalamityMod.Projectiles.Ranged; using CalamityMod.Rarities; using Microsoft.Xna.Framework; +using System; using Terraria; using Terraria.Audio; using Terraria.DataStructures; @@ -34,34 +35,30 @@ namespace CalamityMod.Items.Weapons.Ranged Item.rare = ModContent.RarityType(); Item.UseSound = SoundID.Item11; Item.autoReuse = true; - Item.shoot = ProjectileID.PurificationPowder; + Item.shoot = ModContent.ProjectileType(); Item.shootSpeed = 16f; Item.useAmmo = AmmoID.Bullet; Item.Calamity().canFirePointBlankShots = true; } - public override Vector2? HoldoutOffset() - { - return new Vector2(-10, 0); - } + public override Vector2? HoldoutOffset() => new Vector2(-10, 0); public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - // Both bullets and water jets have very slight inaccuracy - float SpeedX = velocity.X + Main.rand.Next(-10, 11) * 0.05f; - float SpeedY = velocity.Y + Main.rand.Next(-10, 11) * 0.05f; + // Reposition to the gun's tip + add some inaccuracy + Vector2 newPos = position + new Vector2(74f, player.direction * (Math.Abs(velocity.SafeNormalize(Vector2.Zero).X) < 0.02f ? -2f : -8f)).RotatedBy(velocity.ToRotation()); + Vector2 newVel = velocity.RotatedByRandom(MathHelper.ToRadians(5f)); // Fire either the bullet or the water jet, depending on cadence. bool fireWater = shotCounter % 2 == 0; - int projectileToFire = fireWater ? ModContent.ProjectileType() : type; - Projectile.NewProjectile(source, position.X, position.Y, SpeedX, SpeedY, projectileToFire, damage, knockback, player.whoAmI, 0.0f, 0.0f); + int projectileToFire = fireWater ? Item.shoot : type; + Projectile.NewProjectile(source, newPos, newVel, projectileToFire, damage, knockback, player.whoAmI); // Always fires a close range water blast. // It goes in the same direction as the main shot but has a minor velocity variation to be less monotonous. - Vector2 waterRingVec = new Vector2(SpeedX, SpeedY) * Main.rand.NextFloat(0.45f, 0.65f); int waterRingDamage = (int)(damage * 0.5f); float boostedKB = knockback + 7f; // Same KB bonus as Megalodon. The muzzle blast will annihilate nearby enemies and send their gibs flying. - Projectile.NewProjectile(source, position, waterRingVec, ModContent.ProjectileType(), waterRingDamage, boostedKB, player.whoAmI); + Projectile.NewProjectile(source, newPos, newVel * Main.rand.NextFloat(0.45f, 0.65f), ModContent.ProjectileType(), waterRingDamage, boostedKB, player.whoAmI); // Check cadence position to determine which bonus projectile to add, if any. bool fireRocket = shotCounter == 9; @@ -70,19 +67,17 @@ namespace CalamityMod.Items.Weapons.Ranged // Rockets have their own more chaotic spread than bullets. if (fireRocket) { - Vector2 rocketVec = velocity.SafeNormalize(Vector2.Zero).RotatedBy(Main.rand.NextFloat(-0.25f, 0.25f)) * 25f; int rocketDamage = damage * 5; - Projectile.NewProjectile(source, position, rocketVec, ModContent.ProjectileType(), rocketDamage, knockback, player.whoAmI); + Projectile.NewProjectile(source, newPos, newVel * 1.2f, ModContent.ProjectileType(), rocketDamage, knockback, player.whoAmI); SoundEngine.PlaySound(SoundID.Item109, player.Center); } // Muzzle blasts are always directly in line with the gun's muzzle. if (muzzleBlast) { - Vector2 muzzleBlastVec = velocity.SafeNormalize(Vector2.Zero) * 18f; int muzzleBlastDamage = damage * 25; // This might be too much but it's every 18th shot... float muzzleBlastKB = knockback + 12f; - Projectile.NewProjectile(source, position+player.DirectionTo(Main.MouseWorld)*48f, muzzleBlastVec, ModContent.ProjectileType(), muzzleBlastDamage, muzzleBlastKB, player.whoAmI); + Projectile.NewProjectile(source, newPos, velocity, ModContent.ProjectileType(), muzzleBlastDamage, muzzleBlastKB, player.whoAmI); // Play additional sound for muzzle blasts SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode, position); diff --git a/Projectiles/Ranged/ArcherfishRing.cs b/Projectiles/Ranged/ArcherfishRing.cs index ac4526b716..9bb8d81d44 100644 --- a/Projectiles/Ranged/ArcherfishRing.cs +++ b/Projectiles/Ranged/ArcherfishRing.cs @@ -3,16 +3,17 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.ID; -using Terraria.DataStructures; using Terraria.ModLoader; using Terraria.Audio; - namespace CalamityMod.Projectiles.Ranged { public class ArcherfishRing : ModProjectile, ILocalizedModType { public new string LocalizationCategory => "Projectiles.Ranged"; + public override string Texture => "CalamityMod/Particles/HollowCircleHardEdge"; + + public static readonly SoundStyle PopSound = new("CalamityMod/Sounds/Custom/BubblyPop") { PitchVariance = 0.5f, Volume = 0.66f }; public override void SetDefaults() { @@ -23,7 +24,7 @@ namespace CalamityMod.Projectiles.Ranged Projectile.ignoreWater = true; Projectile.penetrate = 2; Projectile.tileCollide = false; - Projectile.alpha = 115; + Projectile.alpha = 15; Projectile.timeLeft = 300; Projectile.MaxUpdates = 3; Projectile.usesLocalNPCImmunity = true; @@ -31,44 +32,62 @@ namespace CalamityMod.Projectiles.Ranged Projectile.Calamity().pointBlankShotDuration = CalamityGlobalProjectile.DefaultPointBlankDuration; } + public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => Projectile.RotatingHitboxCollision(targetHitbox.TopLeft(), targetHitbox.Size(), scale: Projectile.scale); + public override void AI() { //The ring expanding slowing while increasing opacity until it disappears at max size - - if (Projectile.ai[0] == 0) + if (Projectile.ai[0] == 0f) { - Projectile.scale = 0.2f; - Projectile.ai[0]++; + Projectile.scale = 0.5f; + Projectile.ai[0]++; } if (Projectile.scale <= 1.5f) - { - Projectile.scale *= 1.035f; - } - if (Projectile.velocity.X > -0.8f && Projectile.velocity.X < 0.8f & - Projectile.velocity.Y > -0.8f && Projectile.velocity.Y < 0.8f) - { - Projectile.alpha += 10; - } - if (Projectile.alpha >= 255) - { - Projectile.Kill(); - } + Projectile.scale *= 1.015f; else - { - Projectile.velocity *= 0.95f; - } - Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; + Projectile.scale = 1.5f; + if (Projectile.velocity.Length() < 0.08f) + Projectile.alpha += 15; + + if (Projectile.alpha >= 255) + Projectile.Kill(); + else + Projectile.velocity *= 0.95f; + + Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2; } public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) { //Audio feedback for hitting the ring - Player user = Main.player[Projectile.owner]; - SoundEngine.PlaySound(SoundID.Item21, Projectile.position); + SoundEngine.PlaySound(PopSound, Projectile.Center); target.AddBuff(BuffID.Wet, 240); } + + public override bool PreDraw(ref Color lightColor) + { + Texture2D tex = ModContent.Request(Texture).Value; + Vector2 ringScale = Projectile.Size / tex.Size() * Projectile.scale; + Color ringColor = Color.Lerp(Color.DodgerBlue, Color.Blue, Projectile.Opacity) * Projectile.Opacity * 1.2f; + + Main.spriteBatch.EnterShaderRegion(BlendState.Additive); + Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, ringColor, Projectile.rotation, tex.Size() / 2f, ringScale, SpriteEffects.None); + Main.spriteBatch.ExitShaderRegion(); + return false; + } + + public override void Kill(int timeLeft) + { + float totalDusts = 18f; + for (float i = 0f; i < totalDusts; i++) + { + Vector2 ringSpeed = new Vector2((float)Math.Cos(i / totalDusts * MathHelper.TwoPi), (float)Math.Sin(i / totalDusts * MathHelper.TwoPi) * 0.5f).RotatedBy(Projectile.rotation) * 4f * Projectile.scale; + Dust droplets = Dust.NewDustPerfect(Projectile.Center, 211, ringSpeed, 100); + droplets.noGravity = true; + } + } } } diff --git a/Projectiles/Ranged/ArcherfishRing.png b/Projectiles/Ranged/ArcherfishRing.png deleted file mode 100644 index bd321597a96b614644329f9752eb4708c26e1a8e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3257 zcmV;q3`X;bP)f6 zXi@@54ZTQ_E-Enz5K6$103tR-RB%L5k){YTD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UN;cVTj607GSLb9r+hQ*?D?X>TA@Z*OeDr{R1600G5GL_t(&f$f<;OT$1Iho6Ar z;G%=j8V99*1Hr|wkxJ)IA{10QbPM!)|ry3IyZw{h}XVKq@*lB-LL0Bp>EnfzaBp1v0Vc>VZ{{9H|5 zSAaO-zN9Y62@(!AwTXv>C0Vaha{=z&et=lCT1i}zV+Q}6UjFJ^WO_J^B^Zm^mZl!jVai zNH~NfZy*c=gtzui2EHhhfa!EUE_BPMI>|mS)X681sY5}Z@R00000NkvXXu0mjfEm9n2 diff --git a/Projectiles/Ranged/ArcherfishShot.cs b/Projectiles/Ranged/ArcherfishShot.cs index e6b3587336..7084312299 100644 --- a/Projectiles/Ranged/ArcherfishShot.cs +++ b/Projectiles/Ranged/ArcherfishShot.cs @@ -29,112 +29,36 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { - if (Projectile.localAI[0] < 5f) + // Bubbles + if (Main.rand.NextBool(2)) { - Projectile.localAI[0] += 1f; - return; + Gore bubble = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity * 0.2f + Main.rand.NextVector2Circular(1f, 1f), 411); + bubble.timeLeft = 9 + Main.rand.Next(7); + bubble.scale = Main.rand.NextFloat(0.6f, 1f); + bubble.type = Main.rand.NextBool(3) ? 412 : 411; } - int num3; - for (int num586 = 0; num586 < 1; num586 = num3 + 1) + + // Water trail + for (int i = 0; i < 6; i++) { - for (int num587 = 0; num587 < 6; num587 = num3 + 1) - { - float num588 = Projectile.velocity.X / 6f * (float)num587; - float num589 = Projectile.velocity.Y / 6f * (float)num587; - int num590 = 6; - int num591 = Dust.NewDust(new Vector2(Projectile.position.X + (float)num590, Projectile.position.Y + (float)num590), Projectile.width - num590 * 2, Projectile.height - num590 * 2, 211, 0f, 0f, (int)CalamityDusts.SulfurousSeaAcid, default, 1.2f); - Dust dust; - if (Main.rand.NextBool(2)) - { - dust = Main.dust[num591]; - dust.alpha += 25; - } - if (Main.rand.NextBool(2)) - { - dust = Main.dust[num591]; - dust.alpha += 25; - } - if (Main.rand.NextBool(2)) - { - dust = Main.dust[num591]; - dust.alpha += 25; - } - Main.dust[num591].noGravity = true; - dust = Main.dust[num591]; - dust.velocity *= 0.3f; - dust = Main.dust[num591]; - dust.velocity += Projectile.velocity * 0.5f; - Main.dust[num591].position = Projectile.Center; - Dust var_2_18F52_cp_0_cp_0 = Main.dust[num591]; - var_2_18F52_cp_0_cp_0.position.X -= num588; - Dust var_2_18F74_cp_0_cp_0 = Main.dust[num591]; - var_2_18F74_cp_0_cp_0.position.Y -= num589; - dust = Main.dust[num591]; - dust.velocity *= 0.2f; - num3 = num587; - } - if (Main.rand.NextBool(4)) - { - int num592 = 6; - int num593 = Dust.NewDust(new Vector2(Projectile.position.X + (float)num592, Projectile.position.Y + (float)num592), Projectile.width - num592 * 2, Projectile.height - num592 * 2, 211, 0f, 0f, (int)CalamityDusts.SulfurousSeaAcid, default, 0.65f); - Dust dust = Main.dust[num593]; - dust.velocity *= 0.5f; - dust = Main.dust[num593]; - dust.velocity += Projectile.velocity * 0.5f; - } - num3 = num586; + Dust water = Dust.NewDustDirect(Projectile.position, Projectile.width, Projectile.height, 211, 0f, 0f, 100); + water.noGravity = true; + water.velocity = Projectile.velocity * 0.5f; } } public override void Kill(int timeLeft) { - Projectile.velocity = Projectile.oldVelocity * 0.2f; - int num3; - for (int num362 = 0; num362 < 100; num362 = num3 + 1) + // Bubbles + for (int i = 0; i < 10; i++) { - int num363 = Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 211, 0f, 0f, (int)CalamityDusts.SulfurousSeaAcid, default, 1.2f); - Dust dust; - if (Main.rand.NextBool(2)) - { - dust = Main.dust[num363]; - dust.alpha += 25; - } - if (Main.rand.NextBool(2)) - { - dust = Main.dust[num363]; - dust.alpha += 25; - } - if (Main.rand.NextBool(2)) - { - dust = Main.dust[num363]; - dust.alpha += 25; - } - if (Main.rand.NextBool(2)) - { - Main.dust[num363].scale = 0.6f; - } - else - { - Main.dust[num363].noGravity = true; - } - dust = Main.dust[num363]; - dust.velocity *= 0.3f; - dust = Main.dust[num363]; - dust.velocity += Projectile.velocity; - dust = Main.dust[num363]; - dust.velocity *= 1f + (float)Main.rand.Next(-100, 101) * 0.01f; - Dust expr_C6F7_cp_0_cp_0 = Main.dust[num363]; - expr_C6F7_cp_0_cp_0.velocity.X += (float)Main.rand.Next(-50, 51) * 0.015f; - Dust expr_C726_cp_0_cp_0 = Main.dust[num363]; - expr_C726_cp_0_cp_0.velocity.Y += (float)Main.rand.Next(-50, 51) * 0.015f; - Main.dust[num363].position = Projectile.Center; - num3 = num362; + Gore bubble = Gore.NewGorePerfect(Projectile.GetSource_FromAI(), Projectile.position, Projectile.velocity.RotatedByRandom(MathHelper.ToRadians(60f)) * 0.3f, 411); + bubble.timeLeft = 9 + Main.rand.Next(7); + bubble.scale = Main.rand.NextFloat(0.6f, 1f); + bubble.type = Main.rand.NextBool(3) ? 412 : 411; } } - public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) - { - target.AddBuff(BuffID.Wet, 240); - } + public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone) => target.AddBuff(BuffID.Wet, 240); } -} +} \ No newline at end of file diff --git a/Sounds/Custom/BubblyPop.ogg b/Sounds/Custom/BubblyPop.ogg new file mode 100644 index 0000000000000000000000000000000000000000..a819506cd252c40479aeba5e3ae153bd08c2b609 GIT binary patch literal 4670 zcmeHKdstIP7N3Lw0RaI64K!#X;Sm*=@UW0#ivbD*2ql0>EV?A1^3sxsEwyw*MZ}0P zhKLv`g+KzthAn9DvF(eV5Hjm7AVv=)w*uoJ@n5 zlf)>8)^(nm`}$vh**Yy|^w>wbr z>G?UL88L$8%$>oFSV=(P2vNC?i!6;|1*g}AQR$|w=bmBpcyNapjm(G&PIqt*RUCah zOU~^p9a5$uOrVLD_NFA(Z@gC8NKHFiI6;TmZTkANg*IL=Q-qGIBntKn)j`6-_)00! z^1@~+%$jI0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b8KAN%>F53K?$M?PNuKE6Y+-J@9n`(C{s;a8aojP*hY?g3rOvv5k zn)@}ib&066B`Yia!Q z?Uum*s{d%pFgtL6=&5e%%{!M56s1R-vv&stdU)L%sB7+d_ti6x4+nRQw2007*O2Fa z|A)ikp>Hp}bmzw(=5U^Js4*py`gyi_f%1;!lHVH)ya$mLx{$p`7JePSz*|!| zp^UFgE-$Q9>>bG8B5mEhHenU~oM^lgUNOJ(Q*`3N=(_>?{U0819>2o4v9N5-#hAI1 zb*me{N#HNtuTtkVR#RLK=4+~_cD#{#WX)f`oY)`vSqh7=rf;&SWlvdgf^ zi5@-S&b6t+)KsqA^40m*QwVuy-KAQyDY#^v&%&xkr>gdjr{CBX9^Z4(&{>`roR-!1 zfo19VgUco5q57g%ye_LZIuOp^Ry=E~D?B1sPP%LV$O$vDt=3S9sIEq1)$m0D?Us*T zzhYw3%hpc^(^FIT4IGK}@$ufFzbT_?HcLbS2RQtf6BP3T-2xqK*Y?S)zwr2}M6pMl z{Z`W#bIKVpnJEP&u`33)esF1nO{VW+o0?2hm5W)k(hw&(6LbAj-|srE5wD~zB92*a z7%H4x>_T{C5i}99ym>qzb)R`UrYDQ$-F%kn=DkQ$n04uvn!md*{+=?kKIcrJ{b=w0 z&f_}exzE?ye?0o|nt#UPk_C>*9JPDE`R9*+oaDSOXiE6A&UEMe*-DW7&ia_ literal 0 HcmV?d00001 diff --git a/Utilities/CollisionUtils.cs b/Utilities/CollisionUtils.cs index d13693c649..f8b02121b2 100644 --- a/Utilities/CollisionUtils.cs +++ b/Utilities/CollisionUtils.cs @@ -12,17 +12,17 @@ namespace CalamityMod /// The top left coordinates of the target to check. /// The hitbox size of the target to check. /// An optional direction override - public static bool RotatingHitboxCollision(this Entity entity, Vector2 targetTopLeft, Vector2 targetHitboxDimensions, Vector2? directionOverride = null) + public static bool RotatingHitboxCollision(this Entity entity, Vector2 targetTopLeft, Vector2 targetHitboxDimensions, Vector2? directionOverride = null, float scale = 1f) { Vector2 lineDirection = directionOverride ?? entity.velocity; // Ensure that the line direction is a unit vector. lineDirection = lineDirection.SafeNormalize(Vector2.UnitY); - Vector2 start = entity.Center - lineDirection * entity.height * 0.5f; - Vector2 end = entity.Center + lineDirection * entity.height * 0.5f; + Vector2 start = entity.Center - lineDirection * entity.height * 0.5f * scale; + Vector2 end = entity.Center + lineDirection * entity.height * 0.5f * scale; float _ = 0f; - return Collision.CheckAABBvLineCollision(targetTopLeft, targetHitboxDimensions, start, end, entity.width, ref _); + return Collision.CheckAABBvLineCollision(targetTopLeft, targetHitboxDimensions, start, end, entity.width * scale, ref _); } /// From d4659960cdd48de665ddfd3081e5414dc711e7eb Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Sun, 30 Jul 2023 02:53:25 -0500 Subject: [PATCH 14/20] Fixed Cirrus not ending her boss fight. --- NPCs/SupremeCalamitas/SupremeCalamitas.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 95f4e221fe..06abf33d2f 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -1303,6 +1303,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.Status.Boss.CirrusGiveUpText", cirrusTextColor); Dust.QuickDustLine(NPC.Center, initialRitualPosition, 500f, Color.Pink); NPC.Center = initialRitualPosition; + giveUpCounter--; } else { From 7770e21ee0a4c35a5144139a444e60e9c8a845e6 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sun, 30 Jul 2023 01:09:19 -0700 Subject: [PATCH 15/20] Hammer Balancing Galx Smasher Fucking Kills you irl now Implemented homing for the echo hammers and did some buffs and nerfs based on Done's tests --- Items/Weapons/Melee/GalaxySmasher.cs | 2 +- Items/Weapons/Melee/Pwnagehammer.cs | 2 +- Items/Weapons/Melee/StellarContempt.cs | 2 +- Projectiles/Melee/FallenPaladinsHammerEcho.cs | 6 ++++++ Projectiles/Melee/GalaxySmasherEcho.cs | 6 ++++++ Projectiles/Melee/GalaxySmasherHammer.cs | 2 +- Projectiles/Melee/PwnagehammerEcho.cs | 6 ++++++ Projectiles/Melee/StellarContemptEcho.cs | 6 ++++++ 8 files changed, 28 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Melee/GalaxySmasher.cs b/Items/Weapons/Melee/GalaxySmasher.cs index 1fe7f9e493..78c04aef91 100644 --- a/Items/Weapons/Melee/GalaxySmasher.cs +++ b/Items/Weapons/Melee/GalaxySmasher.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Melee public class GalaxySmasher : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public static int BaseDamage = 1195; + public static int BaseDamage = 1300; public static float Speed = 30f; public override void SetDefaults() diff --git a/Items/Weapons/Melee/Pwnagehammer.cs b/Items/Weapons/Melee/Pwnagehammer.cs index 63b150441f..a0ea1bcc15 100644 --- a/Items/Weapons/Melee/Pwnagehammer.cs +++ b/Items/Weapons/Melee/Pwnagehammer.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.value = CalamityGlobalItem.RarityLightPurpleBuyPrice; Item.rare = ItemRarityID.LightPurple; Item.shoot = ModContent.ProjectileType(); - Item.shootSpeed = 38.4f; + Item.shootSpeed = 29.4f; } diff --git a/Items/Weapons/Melee/StellarContempt.cs b/Items/Weapons/Melee/StellarContempt.cs index 24efd195e2..f7f7608992 100644 --- a/Items/Weapons/Melee/StellarContempt.cs +++ b/Items/Weapons/Melee/StellarContempt.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Weapons.Melee public class StellarContempt : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public static int BaseDamage = 678; + public static int BaseDamage = 650; public static float Speed = 25f; public override void SetDefaults() diff --git a/Projectiles/Melee/FallenPaladinsHammerEcho.cs b/Projectiles/Melee/FallenPaladinsHammerEcho.cs index 4704e5ae1d..f8d366e7fe 100644 --- a/Projectiles/Melee/FallenPaladinsHammerEcho.cs +++ b/Projectiles/Melee/FallenPaladinsHammerEcho.cs @@ -14,6 +14,7 @@ namespace CalamityMod.Projectiles.Melee public new string LocalizationCategory => "Projectiles.Melee"; public static readonly SoundStyle SlamHamSound = new("CalamityMod/Sounds/Item/FallenPaladinsHammerBigImpact") { Volume = 1f}; public static readonly SoundStyle Kunk = new("CalamityMod/Sounds/Item/TF2PanHit") { Volume = 1.1f }; + public float speed = 0f; public override void SetStaticDefaults() { ProjectileID.Sets.TrailCacheLength[Projectile.type] = 15; @@ -40,7 +41,12 @@ namespace CalamityMod.Projectiles.Melee public override void AI() { + speed = Projectile.velocity.Length(); Projectile.ai[0] += 1f; + if (Projectile.ai[0] > 55f) + { + CalamityUtils.HomeInOnNPC(Projectile, Projectile.tileCollide, 2000f, speed, 12f); + } if (Projectile.ai[0] < 42f) { Projectile.velocity *= 0.9575f; diff --git a/Projectiles/Melee/GalaxySmasherEcho.cs b/Projectiles/Melee/GalaxySmasherEcho.cs index f3a680ecb4..3273182174 100644 --- a/Projectiles/Melee/GalaxySmasherEcho.cs +++ b/Projectiles/Melee/GalaxySmasherEcho.cs @@ -18,6 +18,7 @@ namespace CalamityMod.Projectiles.Melee public static readonly SoundStyle SlamHamSound = new("CalamityMod/Sounds/Item/StellarContemptImpact") { Volume = 1f }; public static readonly SoundStyle Kunk = new("CalamityMod/Sounds/Item/TF2PanHit") { Volume = 1.1f }; public float rotatehammer = 35f; + public float speed = 0f; public override void SetStaticDefaults() { ProjectileID.Sets.TrailCacheLength[Projectile.type] = 15; @@ -44,6 +45,11 @@ namespace CalamityMod.Projectiles.Melee rotatehammer *= 1.2f; Projectile.rotation += MathHelper.ToRadians(rotatehammer) * Projectile.direction; Projectile.ai[0] += 1f; + speed = Projectile.velocity.Length(); + if (Projectile.ai[0] > 55f) + { + CalamityUtils.HomeInOnNPC(Projectile, Projectile.tileCollide, 2000f, speed, 12f); + } if (Projectile.ai[0] < 42f) { Projectile.velocity *= 0.9575f; diff --git a/Projectiles/Melee/GalaxySmasherHammer.cs b/Projectiles/Melee/GalaxySmasherHammer.cs index eaa2c3d76f..41ae601988 100644 --- a/Projectiles/Melee/GalaxySmasherHammer.cs +++ b/Projectiles/Melee/GalaxySmasherHammer.cs @@ -178,7 +178,7 @@ namespace CalamityMod.Projectiles.Melee else { SoundEngine.PlaySound(RedHamSound, Projectile.Center); - int hammer = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity, ModContent.ProjectileType(), Projectile.damage * 9, Projectile.knockBack * 2.5f, Projectile.owner, 0f, Projectile.ai[1]); + int hammer = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity, ModContent.ProjectileType(), Projectile.damage * 10, Projectile.knockBack * 2.5f, Projectile.owner, 0f, Projectile.ai[1]); Main.projectile[hammer].localAI[0] = Math.Sign(Projectile.velocity.X); Main.projectile[hammer].netUpdate = true; Projectile.Kill(); diff --git a/Projectiles/Melee/PwnagehammerEcho.cs b/Projectiles/Melee/PwnagehammerEcho.cs index d40065afb7..df7848e91a 100644 --- a/Projectiles/Melee/PwnagehammerEcho.cs +++ b/Projectiles/Melee/PwnagehammerEcho.cs @@ -15,6 +15,7 @@ namespace CalamityMod.Projectiles.Melee public static readonly SoundStyle BigSound = new("CalamityMod/Sounds/Item/PwnagehammerBigImpact"); public static readonly SoundStyle Kunk = new("CalamityMod/Sounds/Item/TF2PanHit") { Volume = 1.1f }; public int Explodamage = 0; + public float speed = 0f; public override void SetStaticDefaults() { ProjectileID.Sets.TrailCacheLength[Projectile.type] = 7; @@ -41,7 +42,12 @@ namespace CalamityMod.Projectiles.Melee public override void AI() { + speed = Projectile.velocity.Length(); Projectile.ai[0] += 1f; + if (Projectile.ai[0] > 55f) + { + CalamityUtils.HomeInOnNPC(Projectile, Projectile.tileCollide, 2000f, speed, 12f); + } if (Projectile.ai[0] < 42f) { Projectile.velocity.Y *= 0.9575f; diff --git a/Projectiles/Melee/StellarContemptEcho.cs b/Projectiles/Melee/StellarContemptEcho.cs index 2158bfc47b..9abcf0161e 100644 --- a/Projectiles/Melee/StellarContemptEcho.cs +++ b/Projectiles/Melee/StellarContemptEcho.cs @@ -16,6 +16,7 @@ namespace CalamityMod.Projectiles.Melee public static readonly SoundStyle Kunk = new("CalamityMod/Sounds/Item/TF2PanHit") { Volume = 1.1f }; public float rotatehammer = 35f; public int ColorAlpha = 225; + public float speed = 0f; public override void SetStaticDefaults() { ProjectileID.Sets.TrailCacheLength[Projectile.type] = 15; @@ -47,6 +48,11 @@ namespace CalamityMod.Projectiles.Melee rotatehammer--; Projectile.rotation += MathHelper.ToRadians(rotatehammer) * Projectile.direction; Projectile.ai[0] += 1f; + speed = Projectile.velocity.Length(); + if (Projectile.ai[0] > 55f) + { + CalamityUtils.HomeInOnNPC(Projectile, Projectile.tileCollide, 2000f, speed, 12f); + } if (Projectile.ai[0] < 42f) { Projectile.velocity *= 0.9575f; From aa1570e07d42edfe6930e1d97ed7ce4c433d95e3 Mon Sep 17 00:00:00 2001 From: GinYuH <> Date: Sun, 30 Jul 2023 01:27:12 -0700 Subject: [PATCH 16/20] cleaned up hage outline --- Projectiles/Boss/BrimstoneMonsterII.png | Bin 16448 -> 10197 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Projectiles/Boss/BrimstoneMonsterII.png b/Projectiles/Boss/BrimstoneMonsterII.png index d867cdc01ced9fd8d0e5264462b16a0c0f30c9d4..b0fcfdf17426023e8c62631aaa23eb5f766fbc3d 100644 GIT binary patch literal 10197 zcmd^lhgVbGvnWM+mnI-ZMXH1V3B8kqUP1=}K|bjS3P|t0E4`P{dq<>&CMZ30k&ZwB zB{Tu4H-7hb*Sc@5_ZPf()+yO@X6Ee7o;`a{iPq6lrXXb|#lgX$P*s8G;^5%g{k@3s zu@FtE4?EZguA8p1B2Ml2!(D9So~?qW0uD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w4H~M=EK7fSqTd8z5^%+r@)7d#uqeW7kLu&&RPS zgwGe-3dWN4%Mb_IP`%Z|F(*cZ#kYSR9DGh< zF}$cJ1SH*;c)jZmugn?v2w=V{)X zdUfM!$tjU-Fm>Z%Qnj-6=rKJ0tEvW2?YLlp^XFGyhP|BBu#@2D_7lqox-KpMWZw3n z1HOpOt=C>tWfPR+S=T5h{#8&Uf4GpC7mOzL=W>(u+5KY!$s2)51EF2BU%yXf3Z;$_ z#=G!!U&m=+YQOcnuWOtBleF6l;7&h`FU9M8& Date: Sun, 30 Jul 2023 13:22:34 -0700 Subject: [PATCH 17/20] Beetle armor melee speed as requested by Done Has 9% melee speed on the chest rather than 6% --- Items/CalamityGlobalItem.cs | 4 ++++ Items/CalamityGlobalItemTooltip.cs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 30ba5a652a..631e553bf4 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -1030,6 +1030,10 @@ namespace CalamityMod.Items player.GetAttackSpeed() += 0.05f; break; + case ItemID.BeetleScaleMail: + player.GetAttackSpeed() += 0.03f; + break; + case ItemID.SquireGreatHelm: player.lifeRegen -= 3; break; diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 10da4fb617..37a7a8f32b 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -722,6 +722,10 @@ namespace CalamityMod.Items //Gi 10% melee speed into 10% jump speed replacement if (item.type == ItemID.Gi) EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("melee", "jump")); + + //Beetle Scale Mail melee speed buff + if (item.type == ItemID.BeetleScaleMail) + EditTooltipByNum(1, (line) => line.Text = line.Text.Replace("6% increased movement and melee speed", "6% increased movement speed and 9% increased melee speed")); #endregion // Pre-Hardmode ore armor tooltip edits From 90d00cdd1bd49b65d49b0ecc76bfb79b2e25db14 Mon Sep 17 00:00:00 2001 From: Xyk Date: Sun, 30 Jul 2023 14:42:37 -0700 Subject: [PATCH 18/20] Removed negative melee speed multipliers from weapons Now that melee speed isn't everywhere this change that was made as a band aid balance fix once melee speed began effecting projectile weapons can be removed. Also made brimstone sword actually switch between Melee damge and melee no speed damage depending on the attack type and reduced its speed + gave it an extra update so it doesn't phase through enemies when thrown. --- Items/CalamityGlobalItemTooltip.cs | 9 --------- Items/CalamityGlobalItemTweaks.cs | 6 +++--- Items/Weapons/Melee/BrimstoneSword.cs | 7 +++---- Items/Weapons/Melee/CosmicShiv.cs | 4 ---- Items/Weapons/Melee/Devastation.cs | 1 - Items/Weapons/Melee/DevilsDevastation.cs | 4 ---- Items/Weapons/Melee/ElementalShiv.cs | 4 ---- Items/Weapons/Melee/GalactusBlade.cs | 4 ---- Items/Weapons/Melee/GalileoGladius.cs | 4 ---- Items/Weapons/Melee/Lucrecia.cs | 4 ---- Items/Weapons/Melee/Swordsplosion.cs | 4 ---- Items/Weapons/Melee/TenebreusTides.cs | 1 - ...Mods.CalamityMod.Items.Weapons.Melee.hjson | 20 ++----------------- Projectiles/Melee/BrimstoneSwordProj.cs | 1 + 14 files changed, 9 insertions(+), 64 deletions(-) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 37a7a8f32b..2725104967 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -483,15 +483,6 @@ namespace CalamityMod.Items if (item.type == ItemID.DeathSickle) EditTooltipByNum(0, (line) => line.Text += "\nInflicts Whispering Death on hit"); - - if (item.type == ItemID.StarWrath || item.type == ItemID.NorthPole || item.type == ItemID.PsychoKnife) - EditTooltipByNum(0, (line) => line.Text += "\nReceives 33% benefit from melee speed bonuses"); - - if (item.type == ItemID.FetidBaghnakhs) - EditTooltipByName("Knockback", (line) => line.Text += "\nReceives 25% benefit from melee speed bonuses"); - - if (item.type == ItemID.BladedGlove) - EditTooltipByName("Knockback", (line) => line.Text += "\nReceives 50% benefit from melee speed bonuses"); #endregion // Light pets, accessories, and other items which boost the player's Abyss light stat diff --git a/Items/CalamityGlobalItemTweaks.cs b/Items/CalamityGlobalItemTweaks.cs index e378a9a9ac..bbe6fe2a0c 100644 --- a/Items/CalamityGlobalItemTweaks.cs +++ b/Items/CalamityGlobalItemTweaks.cs @@ -328,7 +328,7 @@ namespace CalamityMod.Items { ItemID.NettleBurst, Do(ManaExact(10), DamageExact(43)) }, { ItemID.NightmarePickaxe, Do(PickPower(66), UseTimeExact(9)) }, { ItemID.NightsEdge, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(76)) }, - { ItemID.NorthPole, Do(AutoReuse, UseMeleeSpeed, AttackSpeedExact(0.33f)) }, + { ItemID.NorthPole, Do(AutoReuse, UseMeleeSpeed) }, { ItemID.ObsidianShield, Do(DefenseDelta(+5)) }, { ItemID.ObsidianSkull, Do(DefenseDelta(+1)) }, { ItemID.ObsidianSkullRose, Do(DefenseExact(4)) }, @@ -391,7 +391,7 @@ namespace CalamityMod.Items { ItemID.Plum, Do(Value(Item.buyPrice(silver: 2))) }, { ItemID.PoisonStaff, Do(DamageExact(57)) }, { ItemID.Pomegranate, Do(Value(Item.buyPrice(silver: 2))) }, - { ItemID.PsychoKnife, Do(UseTurn, UseExact(11), AttackSpeedExact(0.5f), DamageRatio(3f)) }, + { ItemID.PsychoKnife, Do(UseTurn, UseExact(11), DamageRatio(3f)) }, { ItemID.PulseBow, Do(PointBlank, DamageRatio(1.2f)) }, { ItemID.PumpkinMoonMedallion, nonConsumableBossSummon }, { ItemID.PurpleClubberfish, Do(UseTurn, ScaleRatio(1.5f), DamageExact(45), KnockbackExact(10f)) }, @@ -491,7 +491,7 @@ namespace CalamityMod.Items { ItemID.Starfruit, Do(Value(Item.buyPrice(silver: 2))) }, { ItemID.Starfury, autoReuse }, { ItemID.PortableStool, Do(Value(Item.sellPrice(copper: 20))) }, // Step Stool - { ItemID.StarWrath, Do(DamageRatio(0.9f), AttackSpeedExact(0.33f)) }, + { ItemID.StarWrath, Do(DamageRatio(0.9f)) }, { ItemID.StormTigerStaff, Do(AutoReuse, DamageExact(49), UseExact(20)) }, // Desert Tiger Staff { ItemID.StylistKilLaKillScissorsIWish, Do(AutoReuse, UseTurn, ScaleRatio(1.5f), DamageExact(33)) }, { ItemID.SuspiciousLookingEye, nonConsumableBossSummon }, diff --git a/Items/Weapons/Melee/BrimstoneSword.cs b/Items/Weapons/Melee/BrimstoneSword.cs index 1124f9f696..5bb8fa25dc 100644 --- a/Items/Weapons/Melee/BrimstoneSword.cs +++ b/Items/Weapons/Melee/BrimstoneSword.cs @@ -17,7 +17,6 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true; - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; } public override void SetDefaults() @@ -35,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Melee Item.shoot = ModContent.ProjectileType(); Item.UseSound = SoundID.Item1; Item.autoReuse = true; - Item.shootSpeed = 20f; + Item.shootSpeed = 10f; } public override bool AltFunctionUse(Player player) => true; @@ -44,11 +43,11 @@ namespace CalamityMod.Items.Weapons.Melee { if (player.altFunctionUse == 2) { - Item.noMelee = true; + Item.DamageType = DamageClass.MeleeNoSpeed; } else { - Item.noMelee = false; + Item.DamageType = DamageClass.Melee; } return base.UseItem(player); diff --git a/Items/Weapons/Melee/CosmicShiv.cs b/Items/Weapons/Melee/CosmicShiv.cs index bb855ef1a0..af799c26d7 100644 --- a/Items/Weapons/Melee/CosmicShiv.cs +++ b/Items/Weapons/Melee/CosmicShiv.cs @@ -11,10 +11,6 @@ namespace CalamityMod.Items.Weapons.Melee public class CosmicShiv : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/Devastation.cs b/Items/Weapons/Melee/Devastation.cs index 4b8fad157f..bc46f0b8f6 100644 --- a/Items/Weapons/Melee/Devastation.cs +++ b/Items/Weapons/Melee/Devastation.cs @@ -14,7 +14,6 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 11)); ItemID.Sets.AnimatesAsSoul[Type] = true; } diff --git a/Items/Weapons/Melee/DevilsDevastation.cs b/Items/Weapons/Melee/DevilsDevastation.cs index 86746c8987..d8169c3910 100644 --- a/Items/Weapons/Melee/DevilsDevastation.cs +++ b/Items/Weapons/Melee/DevilsDevastation.cs @@ -16,10 +16,6 @@ namespace CalamityMod.Items.Weapons.Melee public class DevilsDevastation : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/ElementalShiv.cs b/Items/Weapons/Melee/ElementalShiv.cs index e8bf37a4bd..ca8df0a385 100644 --- a/Items/Weapons/Melee/ElementalShiv.cs +++ b/Items/Weapons/Melee/ElementalShiv.cs @@ -13,10 +13,6 @@ namespace CalamityMod.Items.Weapons.Melee public class ElementalShiv : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/GalactusBlade.cs b/Items/Weapons/Melee/GalactusBlade.cs index 1aa9d70083..fc422b4042 100644 --- a/Items/Weapons/Melee/GalactusBlade.cs +++ b/Items/Weapons/Melee/GalactusBlade.cs @@ -15,10 +15,6 @@ namespace CalamityMod.Items.Weapons.Melee public class GalactusBlade : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/GalileoGladius.cs b/Items/Weapons/Melee/GalileoGladius.cs index 4d7ac314dd..74b44fb01e 100644 --- a/Items/Weapons/Melee/GalileoGladius.cs +++ b/Items/Weapons/Melee/GalileoGladius.cs @@ -11,10 +11,6 @@ namespace CalamityMod.Items.Weapons.Melee public class GalileoGladius : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/Lucrecia.cs b/Items/Weapons/Melee/Lucrecia.cs index 2fe1017bd7..5e31abd386 100644 --- a/Items/Weapons/Melee/Lucrecia.cs +++ b/Items/Weapons/Melee/Lucrecia.cs @@ -12,10 +12,6 @@ namespace CalamityMod.Items.Weapons.Melee public class Lucrecia : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/Swordsplosion.cs b/Items/Weapons/Melee/Swordsplosion.cs index d37455e1d9..dec805925a 100644 --- a/Items/Weapons/Melee/Swordsplosion.cs +++ b/Items/Weapons/Melee/Swordsplosion.cs @@ -11,10 +11,6 @@ namespace CalamityMod.Items.Weapons.Melee public class Swordsplosion : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Melee"; - public override void SetStaticDefaults() - { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; - } public override void SetDefaults() { diff --git a/Items/Weapons/Melee/TenebreusTides.cs b/Items/Weapons/Melee/TenebreusTides.cs index 8c8e3fb3ea..e6e93840bc 100644 --- a/Items/Weapons/Melee/TenebreusTides.cs +++ b/Items/Weapons/Melee/TenebreusTides.cs @@ -13,7 +13,6 @@ namespace CalamityMod.Items.Weapons.Melee public new string LocalizationCategory => "Items.Weapons.Melee"; public override void SetStaticDefaults() { - ItemID.Sets.BonusAttackSpeedMultiplier[Item.type] = 0.33f; ItemID.Sets.Spears[Item.type] = true; } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson index 02ceea45ca..0640913da4 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Weapons.Melee.hjson @@ -208,7 +208,6 @@ BrimstoneSword: { ''' Summons brimstone geysers on hit Press to throw the sword like a javelin that explodes on hit - Receives 33% benefit from melee speed bonuses ''' } @@ -289,7 +288,6 @@ CosmicShiv: { ''' Fires a cosmic beam that homes in on enemies Upon hitting an enemy, a barrage of offscreen objects home in on the enemy as well as raining stars - Receives 33% benefit from melee speed bonuses ''' } @@ -328,11 +326,7 @@ DepthCrusher: { Devastation: { DisplayName: Devastation - Tooltip: - ''' - Fires galaxy blasts that explode - Receives 33% benefit from melee speed bonuses - ''' + Tooltip: Fires galaxy blasts that explode } DevilsDevastation: { @@ -342,7 +336,6 @@ DevilsDevastation: { Fires a spread of demonic scythes Pitchforks rise from the underworld to skewer your foes Critical hits cause shadowflame explosions - Receives 33% benefit from melee speed bonuses ''' } @@ -416,11 +409,7 @@ ElementalLance: { ElementalShiv: { DisplayName: Elemental Shiv - Tooltip: - ''' - Shoots a rainbow shiv that spawns additional shivs on hit - Receives 33% benefit from melee speed bonuses - ''' + Tooltip: Shoots a rainbow shiv that spawns additional shivs on hit } EmpyreanKnives: { @@ -574,7 +563,6 @@ GalactusBlade: { Tooltip: ''' Launches a barrage of comets from the sky - Receives 33% benefit from melee speed bonuses Forged with the fury of nuclear chaos ''' } @@ -596,7 +584,6 @@ GalileoGladius: { ''' Shoots a homing crescent moon Spawns planetoids on enemy hits - Receives 33% benefit from melee speed bonuses 'Don't underestimate the power of small space swords' ''' } @@ -728,7 +715,6 @@ Lucrecia: { ''' Striking an enemy makes you immune for a short time Fires a DNA chain - Receives 33% benefit from melee speed bonuses Finesse ''' } @@ -1153,7 +1139,6 @@ Swordsplosion: { Tooltip: ''' Fires multiple rainbow beam swords that rain from the sky - Receives 33% benefit from melee speed bonuses Sword swarm ''' } @@ -1169,7 +1154,6 @@ TenebreusTides: { ''' Shoots a water spear that pierces enemies and terrain Striking enemies summon liquid blades and spears to assault the struck foe - Receives 33% benefit from melee speed bonuses 'Inundatio ex Laminis' ''' } diff --git a/Projectiles/Melee/BrimstoneSwordProj.cs b/Projectiles/Melee/BrimstoneSwordProj.cs index fe44d57e00..0f15323080 100644 --- a/Projectiles/Melee/BrimstoneSwordProj.cs +++ b/Projectiles/Melee/BrimstoneSwordProj.cs @@ -25,6 +25,7 @@ namespace CalamityMod.Projectiles.Melee Projectile.DamageType = DamageClass.Melee; Projectile.usesLocalNPCImmunity = true; Projectile.localNPCHitCooldown = 10; + Projectile.extraUpdates = 1; } public override void AI() From 9081a1261c1a34b42f55bbfb1d74c56b88a5b5cb Mon Sep 17 00:00:00 2001 From: apotofkoolaid <72956636+apotofkoolaid@users.noreply.github.com> Date: Wed, 19 Jul 2023 12:23:09 -0500 Subject: [PATCH 19/20] Sulphuric Depths Theme --- BiomeManagers/AbyssLayer1Biome.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/BiomeManagers/AbyssLayer1Biome.cs b/BiomeManagers/AbyssLayer1Biome.cs index 98754c65f8..0a682e224a 100644 --- a/BiomeManagers/AbyssLayer1Biome.cs +++ b/BiomeManagers/AbyssLayer1Biome.cs @@ -59,9 +59,7 @@ namespace CalamityMod.BiomeManagers { if (CalamityPlayer.areThereAnyDamnBosses) return Main.curMusic; - return !Main.dayTime - ? CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaNight") ?? MusicID.Desert // Nighttime - : CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaDay") ?? MusicID.Desert; // Daytime + return CalamityMod.Instance.GetMusicFromMusicMod("AbyssLayer1") ?? MusicID.Desert; } } From bfc1ea5b58e3b642917357233211958aa2676678 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 30 Jul 2023 21:08:22 -0400 Subject: [PATCH 20/20] Dominic Karma suggestion: Rage Meter does not play full sound repeatedly --- CalPlayer/CalamityPlayer.cs | 3 ++- CalPlayer/CalamityPlayerMiscEffects.cs | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 4c9560fd33..f2f0f6331e 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -250,7 +250,8 @@ namespace CalamityMod.CalPlayer #region Sound public bool playRogueStealthSound = false; - public bool playFullRageSound = true; + public int fullRageSoundCountdownTimer = 0; + private const int FullRageSoundDelay = 300; // The "Rage full" sound cannot play for 5 seconds after Rage has filled. This stops it from jittering. public bool playFullAdrenalineSound = true; public static readonly SoundStyle RageFilledSound = new("CalamityMod/Sounds/Custom/AbilitySounds/FullRage"); diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 83e3e404a1..951088b25d 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -425,14 +425,12 @@ namespace CalamityMod.CalPlayer rage = 2f * rageMax; // Play a sound when the Rage Meter is full - if (Player.whoAmI == Main.myPlayer && playFullRageSound) - { - playFullRageSound = false; + if (Player.whoAmI == Main.myPlayer && fullRageSoundCountdownTimer <= 0) SoundEngine.PlaySound(RageFilledSound); - } + + // Regardless of whether a sound was played this time Rage reached 100%, set the delay before the sound can be played again. + fullRageSoundCountdownTimer = FullRageSoundDelay; } - else - playFullRageSound = true; } #endregion @@ -1164,6 +1162,8 @@ namespace CalamityMod.CalPlayer if (expiredCooldowns.Count > 0) SyncCooldownRemoval(Main.netMode == NetmodeID.Server, expiredCooldowns); + if (fullRageSoundCountdownTimer > 0) + --fullRageSoundCountdownTimer; if (plagueTaintedSMGDroneCooldown > 0) plagueTaintedSMGDroneCooldown--; if (momentumCapacitorTime > 0)