balancing

This commit is contained in:
Mishiro Usui committed 2023-08-05 15:25:15 +01:00
1 parent 4edea85976
commit a86bd3075f
3 files changed
+12 -10

No files matched your search

+6 -1
View File
@@ -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
}
+2 -6
View File
@@ -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<BlazingStarThatDoesNotHeal>();
int dmgAmt = 100;
if (!player.Calamity().blazingCoreEmpoweredParry && Main.rand.NextBool())
int dmgAmt = 90;
if (!player.Calamity().blazingCoreEmpoweredParry && Main.rand.NextBool(4))
{
projectileType = ModContent.ProjectileType<BlazingStarHeal>();
}
+4 -3
View File
@@ -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)