diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 00ef7236b4..42f1b2df8c 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -116,6 +116,34 @@ namespace CalamityMod.CalPlayer #region Revengeance Effects private static void RevengeanceModeMiscEffects(Player player, CalamityPlayer modPlayer, Mod mod) { + if (CalamityGlobalNPC.holyBoss != -1) + { + if (Main.npc[CalamityGlobalNPC.holyBoss].active) + { + if (Main.myPlayer == Main.npc[CalamityGlobalNPC.holyBoss].target) + { + float x = Vector2.Distance(Main.player[Main.npc[CalamityGlobalNPC.holyBoss].target].Center, Main.npc[CalamityGlobalNPC.holyBoss].Center); + float aiState = Main.npc[CalamityGlobalNPC.holyBoss].ai[0]; + float aiTimer = Main.npc[CalamityGlobalNPC.holyBoss].ai[3]; + + float baseDistance = 2800f; + float shorterFlameCocoonDistance = 1000f; + float shorterSpearCocoonDistance = 1400f; + float shorterDistance = aiState == 2f ? shorterFlameCocoonDistance : shorterSpearCocoonDistance; + + float maxDistance = (aiState == 2f || aiState == 5f) ? baseDistance - MathHelper.Lerp(0f, shorterDistance, MathHelper.Clamp(aiTimer / 120f, 0f, 1f)) : baseDistance; + float drawDarknessDistance = maxDistance - 400f; + float intensityScalar = MathHelper.Lerp(0f, 0.9f, MathHelper.Clamp((x - drawDarknessDistance) / 400f, 0f, 1f)); + + if (!Main.player[Main.npc[CalamityGlobalNPC.holyBoss].target].Calamity().ZoneAbyss && !Main.player[Main.npc[CalamityGlobalNPC.holyBoss].target].headcovered) + ScreenObstruction.screenObstruction = MathHelper.Lerp(ScreenObstruction.screenObstruction, 1f, intensityScalar); + + // Return to prevent running other darkness code + return; + } + } + } + if (CalamityWorld.revenge) { // This effect is way too annoying during the fight so I disabled it - Fab diff --git a/CalamityMod.cs b/CalamityMod.cs index 6b53c30ea9..16414ea458 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -48,6 +48,7 @@ using System.Reflection; using Terraria; using Terraria.DataStructures; using Terraria.GameContent.Dyes; +using Terraria.GameContent.Events; using Terraria.Graphics.Effects; using Terraria.Graphics.Shaders; using Terraria.ID; @@ -1326,6 +1327,32 @@ namespace CalamityMod { // Apply the calculated darkness value for the local player. CalamityPlayer modPlayer = Main.LocalPlayer.Calamity(); + if (CalamityGlobalNPC.holyBoss != -1) + { + if (Main.npc[CalamityGlobalNPC.holyBoss].active) + { + if (Main.myPlayer == Main.npc[CalamityGlobalNPC.holyBoss].target) + { + float x = Vector2.Distance(Main.player[Main.npc[CalamityGlobalNPC.holyBoss].target].Center, Main.npc[CalamityGlobalNPC.holyBoss].Center); + float aiState = Main.npc[CalamityGlobalNPC.holyBoss].ai[0]; + float aiTimer = Main.npc[CalamityGlobalNPC.holyBoss].ai[3]; + + float baseDistance = 2800f; + float shorterFlameCocoonDistance = 1000f; + float shorterSpearCocoonDistance = 1400f; + float shorterDistance = aiState == 2f ? shorterFlameCocoonDistance : shorterSpearCocoonDistance; + + float maxDistance = (aiState == 2f || aiState == 5f) ? baseDistance - MathHelper.Lerp(0f, shorterDistance, MathHelper.Clamp(aiTimer / 120f, 0f, 1f)) : baseDistance; + float drawDarknessDistance = maxDistance - 400f; + float intensityScalar = MathHelper.Lerp(0f, 0.9f, MathHelper.Clamp((x - drawDarknessDistance) / 400f, 0f, 1f)); + scale -= intensityScalar; + + // Return to prevent running other darkness code + return; + } + } + } + float darkRatio = MathHelper.Clamp(modPlayer.caveDarkness, 0f, 1f); if (modPlayer.ZoneAbyss) diff --git a/Items/Weapons/Melee/Aorta.cs b/Items/Weapons/Melee/Aorta.cs index 5144e55830..42fc62c74c 100644 --- a/Items/Weapons/Melee/Aorta.cs +++ b/Items/Weapons/Melee/Aorta.cs @@ -11,7 +11,8 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Aorta"); - Tooltip.SetDefault("An exceptionally agile yoyo"); + Tooltip.SetDefault("Fires homing blood when enemies are near\n" + + "An exceptionally agile yoyo"); ItemID.Sets.Yoyo[item.type] = true; ItemID.Sets.GamepadExtraRange[item.type] = 15; ItemID.Sets.GamepadSmartQuickReach[item.type] = true; diff --git a/Items/Weapons/Melee/BiomeBlade.cs b/Items/Weapons/Melee/BiomeBlade.cs index 98611e3f60..723515d110 100644 --- a/Items/Weapons/Melee/BiomeBlade.cs +++ b/Items/Weapons/Melee/BiomeBlade.cs @@ -18,10 +18,10 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetDefaults() { item.width = 42; - item.damage = 30; + item.damage = 35; item.melee = true; - item.useAnimation = 24; - item.useTime = 24; + item.useAnimation = 30; + item.useTime = 30; item.useTurn = true; item.useStyle = ItemUseStyleID.SwingThrow; item.knockBack = 5f; diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 3cbce7be38..c2fc4fe6a1 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -2673,6 +2673,7 @@ namespace CalamityMod.NPCs } // Fire lasers on stomp + Main.PlaySound(2, (int)npc.position.X, (int)npc.position.Y, 33); if (Main.netMode != NetmodeID.MultiplayerClient) { float num179 = BossRushEvent.BossRushActive ? 24f : death ? 20f : 18.5f; @@ -4402,12 +4403,6 @@ namespace CalamityMod.NPCs // Prepare to charge else if (npc.ai[0] == 3.1f) { - if (npc.ai[2] < 10f) - { - npc.ai[2] += 1f; - return; - } - npc.noTileCollide = true; npc.rotation = (npc.rotation * rotationMult * 0.5f + npc.velocity.X * rotationAmt * 0.85f) / 5f; @@ -4439,7 +4434,6 @@ namespace CalamityMod.NPCs npc.ai[0] = 3.2f; npc.ai[1] = npc.direction; - npc.ai[2] = 0f; } } @@ -4634,6 +4628,7 @@ namespace CalamityMod.NPCs float idlePhaseVelocity = expertMode ? 14f : 13f; if (phase3AI) { + idlePhaseTimer = 25; idlePhaseAcceleration = expertMode ? 0.85f : 0.8f; idlePhaseVelocity = expertMode ? 16f : 15f; } @@ -4658,7 +4653,7 @@ namespace CalamityMod.NPCs if (death) { - idlePhaseTimer = 51; + idlePhaseTimer -= 4; idlePhaseAcceleration *= 1.05f; idlePhaseVelocity *= 1.05f; chargeTime -= 2; @@ -4666,7 +4661,7 @@ namespace CalamityMod.NPCs } else if (revenge) { - idlePhaseTimer = 53; + idlePhaseTimer -= 2; idlePhaseAcceleration *= 1.025f; idlePhaseVelocity *= 1.025f; chargeTime -= 1; @@ -4675,13 +4670,16 @@ namespace CalamityMod.NPCs if (BossRushEvent.BossRushActive) { - idlePhaseTimer = 35; + idlePhaseTimer -= 20; idlePhaseAcceleration *= 1.1f; idlePhaseVelocity *= 1.15f; chargeTime -= 3; chargeVelocity *= 1.25f; } + if (idlePhaseTimer < 20) + idlePhaseTimer = 20; + if (calamityGlobalNPC.newAI[1] == 1f) idlePhaseVelocity *= 0.25f; diff --git a/NPCs/CeaselessVoid/DarkEnergy.cs b/NPCs/CeaselessVoid/DarkEnergy.cs index 73a41d731e..a59d898176 100644 --- a/NPCs/CeaselessVoid/DarkEnergy.cs +++ b/NPCs/CeaselessVoid/DarkEnergy.cs @@ -175,8 +175,8 @@ namespace CalamityMod.NPCs.CeaselessVoid float tileEnrageMult = Main.npc[CalamityGlobalNPC.voidBoss].ai[1]; - float num1247 = 0.5f; - float maxDistance = 48f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f)); + float num1247 = 0.1f; + float maxDistance = 24f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f)); for (int num1248 = 0; num1248 < Main.maxNPCs; num1248++) { if (Main.npc[num1248].active) @@ -311,7 +311,7 @@ namespace CalamityMod.NPCs.CeaselessVoid public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.VortexDebuff, 60, true); + player.AddBuff(BuffID.VortexDebuff, 20, true); } public override bool CanHitPlayer(Player target, ref int cooldownSlot) diff --git a/NPCs/CeaselessVoid/DarkEnergy2.cs b/NPCs/CeaselessVoid/DarkEnergy2.cs index 3eb86ebc43..bb92fd8049 100644 --- a/NPCs/CeaselessVoid/DarkEnergy2.cs +++ b/NPCs/CeaselessVoid/DarkEnergy2.cs @@ -168,8 +168,8 @@ namespace CalamityMod.NPCs.CeaselessVoid float tileEnrageMult = Main.npc[CalamityGlobalNPC.voidBoss].ai[1]; - float num1247 = 0.5f; - float maxDistance = 48f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f)); + float num1247 = 0.1f; + float maxDistance = 24f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f)); for (int num1248 = 0; num1248 < Main.maxNPCs; num1248++) { if (Main.npc[num1248].active) @@ -271,7 +271,7 @@ namespace CalamityMod.NPCs.CeaselessVoid public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.VortexDebuff, 60, true); + player.AddBuff(BuffID.VortexDebuff, 20, true); } public override bool CanHitPlayer(Player target, ref int cooldownSlot) diff --git a/NPCs/CeaselessVoid/DarkEnergy3.cs b/NPCs/CeaselessVoid/DarkEnergy3.cs index 8c3d72b01c..3bfe0ba731 100644 --- a/NPCs/CeaselessVoid/DarkEnergy3.cs +++ b/NPCs/CeaselessVoid/DarkEnergy3.cs @@ -169,8 +169,8 @@ namespace CalamityMod.NPCs.CeaselessVoid float tileEnrageMult = Main.npc[CalamityGlobalNPC.voidBoss].ai[1]; - float num1247 = 0.5f; - float maxDistance = 48f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f)); + float num1247 = 0.1f; + float maxDistance = 24f * MathHelper.Lerp(0.3333333334f, 1.6f, MathHelper.Clamp((tileEnrageMult - 1f) * 1.6666666667f, 0f, 1f)); for (int num1248 = 0; num1248 < Main.maxNPCs; num1248++) { if (Main.npc[num1248].active) @@ -299,7 +299,7 @@ namespace CalamityMod.NPCs.CeaselessVoid public override void OnHitPlayer(Player player, int damage, bool crit) { - player.AddBuff(BuffID.VortexDebuff, 60, true); + player.AddBuff(BuffID.VortexDebuff, 20, true); } public override bool CanHitPlayer(Player target, ref int cooldownSlot) diff --git a/NPCs/Providence/ProvSky.cs b/NPCs/Providence/ProvSky.cs index f94ffd5cc0..3d6d53ff69 100644 --- a/NPCs/Providence/ProvSky.cs +++ b/NPCs/Providence/ProvSky.cs @@ -29,25 +29,17 @@ namespace CalamityMod.NPCs.Providence if (UpdatePIndex()) { float x = 0f; - float aiState = 0f; - float aiTimer = 0f; if (ProvIndex != -1) - { x = Vector2.Distance(Main.player[Main.myPlayer].Center, Main.npc[ProvIndex].Center); - aiState = Main.npc[ProvIndex].ai[0]; - aiTimer = Main.npc[ProvIndex].ai[3]; - } float spawnAnimationTimer = 180f; - float maxDistance = (aiState == 2f || aiState == 5f) ? 2800f - MathHelper.Lerp(0f, 1400f, MathHelper.Clamp(aiTimer / 120f, 0f, 1f)) : 2800f; - float drawShaderDistance = maxDistance - 160f; - float intensityScalar = 0.25f + MathHelper.Lerp(0f, 0.75f, MathHelper.Clamp((x - drawShaderDistance) / 320f, 0f, 0.75f)); + float intensityScalar = 0.25f; if (Main.npc[ProvIndex].Calamity().newAI[3] < spawnAnimationTimer) intensityScalar = MathHelper.Lerp(0f, intensityScalar, Main.npc[ProvIndex].Calamity().newAI[3] / spawnAnimationTimer); - return (1f - Utils.SmoothStep(6000f, 9000f, x)) * intensityScalar; + return (1f - Utils.SmoothStep(3000f, 6000f, x)) * intensityScalar; } - return 0f; //0.5 + return 0f; } public override Color OnTileColor(Color inColor) diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index c4b45f5414..e361b72967 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -271,11 +271,15 @@ namespace CalamityMod.NPCs.Providence float distanceX = Math.Abs(vector.X - player.Center.X); // Inflict Holy Inferno if target is too far away - float maxDistance = (AIState == (int)Phase.FlameCocoon || AIState == (int)Phase.SpearCocoon) ? 1400f : 2800f; + float baseDistance = 2800f; + float shorterFlameCocoonDistance = 1800f; + float shorterSpearCocoonDistance = 1400f; + float shorterDistance = AIState == (int)Phase.FlameCocoon ? shorterFlameCocoonDistance : shorterSpearCocoonDistance; + float maxDistance = (AIState == (int)Phase.FlameCocoon || AIState == (int)Phase.SpearCocoon) ? shorterDistance : baseDistance; if (Vector2.Distance(player.Center, vector) > maxDistance) { - if (!player.dead && player.active) - player.AddBuff(ModContent.BuffType(), 2); + if (!player.dead && player.active) + player.AddBuff(ModContent.BuffType(), 2); } // Count the remaining Guardians, healer especially because it allows the boss to heal diff --git a/NPCs/SupremeCalamitas/SupremeCataclysm.cs b/NPCs/SupremeCalamitas/SupremeCataclysm.cs index 993f28b1c7..244f8ec7e2 100644 --- a/NPCs/SupremeCalamitas/SupremeCataclysm.cs +++ b/NPCs/SupremeCalamitas/SupremeCataclysm.cs @@ -96,20 +96,20 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (npc.ai[3] < distanceX) { npc.ai[3] += scale; - distanceY -= scale; + distanceY += scale; } else if (npc.ai[3] < distanceX * 2) { npc.ai[3] += scale; - distanceY += scale; + distanceY -= scale; } - if (npc.ai[3] >= distanceX * 2) + else npc.ai[3] = 0f; Vector2 vector83 = new Vector2(npc.Center.X, npc.Center.Y); float num678 = Main.player[npc.target].Center.X - vector83.X + distanceX; float num679 = Main.player[npc.target].Center.Y - vector83.Y + distanceY; - npc.rotation = 1.57f; + npc.rotation = MathHelper.PiOver2; float num680 = (float)Math.Sqrt((double)(num678 * num678 + num679 * num679)); num680 = num676 / num680; num678 *= num680; @@ -153,7 +153,11 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (npc.localAI[0] >= 120f) { npc.ai[1] += 1f; - if (npc.ai[1] >= 60f) + if (deadBrother) + { + npc.ai[1] += 1f; + } + if (npc.ai[1] >= 60f) { npc.ai[1] = 0f; Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SCalSounds/BrimstoneSkullSound"), npc.Center); diff --git a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs index f542ee891c..865fbb0d8a 100644 --- a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs +++ b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs @@ -103,13 +103,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas npc.ai[3] += scale; distanceY += scale; } - if (npc.ai[3] >= distanceX * 2) + else npc.ai[3] = 0f; Vector2 vector83 = new Vector2(npc.Center.X, npc.Center.Y); float num678 = Main.player[npc.target].Center.X - vector83.X - distanceX; float num679 = Main.player[npc.target].Center.Y - vector83.Y + distanceY; - npc.rotation = 4.71f; + npc.rotation = MathHelper.PiOver2 * 3f; float num680 = (float)Math.Sqrt((double)(num678 * num678 + num679 * num679)); num680 = num676 / num680; num678 *= num680; @@ -153,7 +153,11 @@ namespace CalamityMod.NPCs.SupremeCalamitas if (npc.localAI[0] >= 120f) { npc.ai[1] += 1f; - if (npc.ai[1] >= 30f) + if (deadBrother) + { + npc.ai[1] += 1f; + } + if (npc.ai[1] >= 30f) { npc.ai[1] = 0f; Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SCalSounds/BrimstoneHellblastSound"), npc.Center); diff --git a/Projectiles/Melee/BiomeOrb.cs b/Projectiles/Melee/BiomeOrb.cs index f24ae23333..85434d20df 100644 --- a/Projectiles/Melee/BiomeOrb.cs +++ b/Projectiles/Melee/BiomeOrb.cs @@ -165,45 +165,46 @@ namespace CalamityMod.Projectiles.Melee bool glow = player.ZoneGlowshroom; bool hell = player.ZoneUnderworldHeight; bool holy = player.ZoneHoly; + int debuffTime = 90; if (astral) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), debuffTime); } else if (jungle) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(BuffID.Venom, debuffTime); } else if (snow) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), debuffTime / 2); } else if (beach) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), debuffTime); } else if (dungeon) { - target.AddBuff(BuffID.Frostburn, 180); + target.AddBuff(BuffID.Frostburn, debuffTime); } else if (desert) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), debuffTime); } else if (glow) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), debuffTime); } else if (hell) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), debuffTime); } else if (holy) { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), debuffTime); } else { - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(ModContent.BuffType(), debuffTime); } } } diff --git a/Projectiles/Melee/Yoyos/AortaYoyo.cs b/Projectiles/Melee/Yoyos/AortaYoyo.cs index 3a140242f2..829909970d 100644 --- a/Projectiles/Melee/Yoyos/AortaYoyo.cs +++ b/Projectiles/Melee/Yoyos/AortaYoyo.cs @@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos { DisplayName.SetDefault("Aorta"); ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 11f; - ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 220f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 260f; ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 8.5f; ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; @@ -30,7 +30,12 @@ namespace CalamityMod.Projectiles.Melee.Yoyos projectile.MaxUpdates = 2; } - public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + public override void AI() + { + CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 240f, 6f, 180f, 3, ModContent.ProjectileType(), 0.25); + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) { CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); return false; diff --git a/Projectiles/Melee/Yoyos/CnidarianYoyo.cs b/Projectiles/Melee/Yoyos/CnidarianYoyo.cs index 5781fdf23a..ebb44531f8 100644 --- a/Projectiles/Melee/Yoyos/CnidarianYoyo.cs +++ b/Projectiles/Melee/Yoyos/CnidarianYoyo.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos { DisplayName.SetDefault("Cnidarian"); ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 7f; - ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 190f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 240f; ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 11f; } diff --git a/Projectiles/Melee/Yoyos/MicrowaveYoyo.cs b/Projectiles/Melee/Yoyos/MicrowaveYoyo.cs index 0459459043..dd8210a33f 100644 --- a/Projectiles/Melee/Yoyos/MicrowaveYoyo.cs +++ b/Projectiles/Melee/Yoyos/MicrowaveYoyo.cs @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos // Spawn invisible but damaging aura projectile if (projectile.owner == Main.myPlayer && !spawnedAura) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5f), projectile.knockBack, projectile.owner, projectile.identity, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)(projectile.damage * 0.35), projectile.knockBack, projectile.owner, projectile.identity, 0f); spawnedAura = true; } diff --git a/Projectiles/Melee/Yoyos/RiptideYoyo.cs b/Projectiles/Melee/Yoyos/RiptideYoyo.cs index d383abc62b..c6df24b329 100644 --- a/Projectiles/Melee/Yoyos/RiptideYoyo.cs +++ b/Projectiles/Melee/Yoyos/RiptideYoyo.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos { DisplayName.SetDefault("Riptide"); ProjectileID.Sets.YoyosLifeTimeMultiplier[projectile.type] = 7.5f; - ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 180f; + ProjectileID.Sets.YoyosMaximumRange[projectile.type] = 220f; ProjectileID.Sets.YoyosTopSpeed[projectile.type] = 12.5f; } diff --git a/Projectiles/Melee/Yoyos/SulphurousGrabberYoyo.cs b/Projectiles/Melee/Yoyos/SulphurousGrabberYoyo.cs index 145bb4c8fd..89b9d931b2 100644 --- a/Projectiles/Melee/Yoyos/SulphurousGrabberYoyo.cs +++ b/Projectiles/Melee/Yoyos/SulphurousGrabberYoyo.cs @@ -82,7 +82,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos bubbleCounter++; if (bubbleCounter >= 60) { - int bubbleAmt = 9; + int bubbleAmt = 7; for (float i = 0; i < bubbleAmt; i++) { int projType = ModContent.ProjectileType(); diff --git a/Projectiles/Melee/Yoyos/VerdantYoyo.cs b/Projectiles/Melee/Yoyos/VerdantYoyo.cs index 904a242da2..6d9434a977 100644 --- a/Projectiles/Melee/Yoyos/VerdantYoyo.cs +++ b/Projectiles/Melee/Yoyos/VerdantYoyo.cs @@ -28,8 +28,9 @@ namespace CalamityMod.Projectiles.Melee.Yoyos projectile.friendly = true; projectile.melee = true; projectile.penetrate = -1; + projectile.MaxUpdates = 2; - projectile.usesLocalNPCImmunity = true; + projectile.usesLocalNPCImmunity = true; projectile.localNPCHitCooldown = 9; } @@ -40,7 +41,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos if (Main.rand.NextBool(5)) Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 75, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); - CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 6f, 18f, 5, ProjectileID.CrystalLeafShot, 0.6); + CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 300f, 6f, 54f, 5, ProjectileID.CrystalLeafShot, 0.8); } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)