From a86bd3075ff89977ebe708fb208d01ae6bbe7078 Mon Sep 17 00:00:00 2001 From: Mishiro Usui Date: Sat, 5 Aug 2023 15:25:15 +0100 Subject: [PATCH] balancing --- CalPlayer/CalamityPlayer.cs | 7 ++++++- Items/Accessories/BlazingCore.cs | 8 ++------ Projectiles/Typeless/BlazingStarHeal.cs | 7 ++++--- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index b75ccfc4cb..415d20ef59 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -2098,6 +2098,8 @@ namespace CalamityMod.CalPlayer SyncCooldownDictionary(Main.netMode == NetmodeID.Server); } } + + #region Debuffs totalDefenseDamage = 0; @@ -2430,6 +2432,9 @@ namespace CalamityMod.CalPlayer elysianWingsDust = false; elysianAegis = false; GemTechState.OnDeathEffects(); + blazingCoreParry = 0; + blazingCoreEmpoweredParry = false; + blazingCoreSuccessfulParry = 0; #endregion CurrentlyViewedFactoryID = -1; @@ -5634,7 +5639,7 @@ namespace CalamityMod.CalPlayer { if (!Player.HasCooldown(BlazingCoreCooldown.ID)) { - Player.GiveIFrames(10); + Player.GiveIFrames(45); blazingCoreEmpoweredParry = true; modifiers.SetMaxDamage(1); //ONLY REDUCE DAMAGE IF NOT ON COOLDOWN } diff --git a/Items/Accessories/BlazingCore.cs b/Items/Accessories/BlazingCore.cs index 49474e6349..a5f67f7a66 100644 --- a/Items/Accessories/BlazingCore.cs +++ b/Items/Accessories/BlazingCore.cs @@ -51,10 +51,6 @@ namespace CalamityMod.Items.Accessories if (patternInterval % 2 == 0) { - if (player.Calamity().blazingCoreSuccessfulParry % divisor == 0) - { - - } SoundEngine.PlaySound(SoundID.DD2_BetsyFireballImpact, player.Center); double radians = MathHelper.TwoPi / chains; double angleA = radians * 0.5; @@ -66,8 +62,8 @@ namespace CalamityMod.Items.Accessories Vector2 vector2 = spinningPoint.RotatedBy(radians * i + MathHelper.ToRadians(offset)); int projectileType = ModContent.ProjectileType(); - int dmgAmt = 100; - if (!player.Calamity().blazingCoreEmpoweredParry && Main.rand.NextBool()) + int dmgAmt = 90; + if (!player.Calamity().blazingCoreEmpoweredParry && Main.rand.NextBool(4)) { projectileType = ModContent.ProjectileType(); } diff --git a/Projectiles/Typeless/BlazingStarHeal.cs b/Projectiles/Typeless/BlazingStarHeal.cs index 4bb3743319..85d569e2da 100644 --- a/Projectiles/Typeless/BlazingStarHeal.cs +++ b/Projectiles/Typeless/BlazingStarHeal.cs @@ -28,8 +28,9 @@ namespace CalamityMod.Projectiles.Typeless public override void AI() { Lighting.AddLight(Projectile.Center, 0f, 0.6f, 0f); - - if (Projectile.velocity.Length() < 16f) + if (Projectile.timeLeft > 190) + Projectile.velocity *= 1.1f; + else if (Projectile.timeLeft <= 190) Projectile.velocity *= 0.99f; if (Projectile.timeLeft <= 160) Projectile.velocity = Vector2.Zero; @@ -42,7 +43,7 @@ namespace CalamityMod.Projectiles.Typeless float playerDist = Vector2.Distance(player.Center, Projectile.Center); if (!player.immune && playerDist < 50f && !player.dead && Projectile.position.X < player.position.X + player.width && Projectile.position.X + Projectile.width > player.position.X && Projectile.position.Y < player.position.Y + player.height && Projectile.position.Y + Projectile.height > player.position.Y) { - int healAmt = Utils.Clamp((200 - Projectile.timeLeft) / 5, 1, 10); //min heal is 2 because of above timeleft check, max heal is 10 + int healAmt = Utils.Clamp((200 - Projectile.timeLeft) / 4, 1, 15); //min heal is 2 because of above timeleft check, max heal is 15, achievable after 1 second player.HealEffect(healAmt, false); player.statLife += healAmt; if (player.statLife > player.statLifeMax2)