diff --git a/Buffs/Mounts/AlicornBuff.png b/Buffs/Mounts/AlicornBuff.png index fb4d3a116e..f821a3a2bb 100644 Binary files a/Buffs/Mounts/AlicornBuff.png and b/Buffs/Mounts/AlicornBuff.png differ diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index d88cc7d7ae..ff3783ca6d 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5770,6 +5770,13 @@ namespace CalamityMod.CalPlayer if (wCleave) contactDamageReduction *= 0.75; + if (defenseDamage > 0) + { + // Reduce player DR based on defense stat damage accumulated, this is done before defense is reduced + if (defenseStat > 0) + contactDamageReduction -= defenseDamage / (double)defenseStat * contactDamageReduction * 0.5; + } + // Scale with base damage reduction if (DRStat > 0) contactDamageReduction *= 1f - (DRStat * 0.01f); @@ -6103,6 +6110,13 @@ namespace CalamityMod.CalPlayer if (wCleave) projectileDamageReduction *= 0.75; + if (defenseDamage > 0) + { + // Reduce player DR based on defense stat damage accumulated, this is done before defense is reduced + if (defenseStat > 0) + projectileDamageReduction -= defenseDamage / (double)defenseStat * projectileDamageReduction * 0.5; + } + // Scale with base damage reduction if (DRStat > 0) projectileDamageReduction *= 1f - (DRStat * 0.01f); diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 5381f70943..8dcb4b9df2 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -97,9 +97,6 @@ namespace CalamityMod.CalPlayer // Limits Limits(player, modPlayer); - // Endurance reductions - EnduranceReductions(player, modPlayer); - // Stat Meter UpdateStatMeter(player, modPlayer); @@ -3728,6 +3725,9 @@ namespace CalamityMod.CalPlayer player.statDefense += (int)(player.statDefense * 0.75); } + // Endurance reductions + EnduranceReductions(player, modPlayer); + // Defense stat damage calcs // This was not done to prevent facetanking, but to push players to not just stand completely fucking still taking 1 or 2 damage the entire time if (modPlayer.defenseDamage > 0) @@ -3742,6 +3742,10 @@ namespace CalamityMod.CalPlayer if (modPlayer.defenseDamage > player.statDefense) modPlayer.defenseDamage = player.statDefense; + // Reduce player DR based on defense stat damage accumulated, this is done before defense is reduced + if (player.statDefense > 0 && player.endurance > 0f) + player.endurance -= modPlayer.defenseDamage / (float)player.statDefense * player.endurance * 0.5f; + // Reduce player defense based on defense stat damage accumulated player.statDefense -= modPlayer.defenseDamage; diff --git a/CalPlayer/CalamityPlayerOnHit.cs b/CalPlayer/CalamityPlayerOnHit.cs index 048866814d..1fa03530bd 100644 --- a/CalPlayer/CalamityPlayerOnHit.cs +++ b/CalPlayer/CalamityPlayerOnHit.cs @@ -216,8 +216,9 @@ namespace CalamityMod.CalPlayer if (player.wingTime > player.wingTimeMax) player.wingTime = player.wingTimeMax; } - if (modPlayer.aBulwarkRare) + if (modPlayer.aBulwarkRare && modPlayer.aBulwarkRareTimer == 0) { + modPlayer.aBulwarkRareTimer = 10; for (int n = 0; n < 3; n++) CalamityUtils.ProjectileRain(player.Center, 400f, 100f, 500f, 800f, 29f, ProjectileType(), (int)(320 * player.AverageDamage()), 5f, player.whoAmI); } diff --git a/Items/Mounts/AlicornMount.cs b/Items/Mounts/AlicornMount.cs index 6de53820ff..01a43700e7 100644 --- a/Items/Mounts/AlicornMount.cs +++ b/Items/Mounts/AlicornMount.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Items.Mounts mountData.spawnDust = 234; mountData.spawnDustNoGravity = true; mountData.buff = ModContent.BuffType(); - mountData.heightBoost = 34; + mountData.heightBoost = 35; mountData.fallDamage = 0f; //0.5 mountData.runSpeed = 7f; //12 mountData.dashSpeed = 21f; //8 @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Mounts mountData.standingFrameDelay = 12; mountData.standingFrameStart = 0; mountData.runningFrameCount = 8; //7 - mountData.runningFrameDelay = 36; //36 + mountData.runningFrameDelay = 42; //36 mountData.runningFrameStart = 1; //9 mountData.flyingFrameCount = 6; //0 mountData.flyingFrameDelay = 4; //0 @@ -55,9 +55,9 @@ namespace CalamityMod.Items.Mounts mountData.inAirFrameCount = 1; //1 mountData.inAirFrameDelay = 12; //12 mountData.inAirFrameStart = 10; //10 - mountData.idleFrameCount = 5; //4 + mountData.idleFrameCount = 1; //4 mountData.idleFrameDelay = 12; //12 - mountData.idleFrameStart = 0; + mountData.idleFrameStart = 5; mountData.idleFrameLoop = true; mountData.swimFrameCount = mountData.inAirFrameCount; mountData.swimFrameDelay = mountData.inAirFrameDelay; diff --git a/Items/Mounts/AlicornMountExtra.png b/Items/Mounts/AlicornMountExtra.png index 9e18cea9aa..49bad1ec68 100644 Binary files a/Items/Mounts/AlicornMountExtra.png and b/Items/Mounts/AlicornMountExtra.png differ diff --git a/Items/Mounts/AlicornMount_Back.png b/Items/Mounts/AlicornMount_Back.png index 3d2a6e7302..ea6c2f5de6 100644 Binary files a/Items/Mounts/AlicornMount_Back.png and b/Items/Mounts/AlicornMount_Back.png differ diff --git a/Items/Mounts/AlicornMount_Front.png b/Items/Mounts/AlicornMount_Front.png index 045054997d..1c35307537 100644 Binary files a/Items/Mounts/AlicornMount_Front.png and b/Items/Mounts/AlicornMount_Front.png differ diff --git a/Items/Weapons/Magic/TheWand.cs b/Items/Weapons/Magic/TheWand.cs index c5d2d616a3..039343483b 100644 --- a/Items/Weapons/Magic/TheWand.cs +++ b/Items/Weapons/Magic/TheWand.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Magic { public class TheWand : ModItem { - public static int BaseDamage = 998; + public static int BaseDamage = 1998; public override void SetStaticDefaults() { diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index d73b225852..c49cf1d6f1 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -3367,7 +3367,7 @@ namespace CalamityMod.NPCs else if (npc.type == NPCType()) { if (projectile.type == ProjectileType() || projectile.type == ProjectileType() || projectile.type == ProjectileType() || - projectile.type == ProjectileType() || projectile.type == ProjectileType() || projectile.type == ProjectileType()) + projectile.type == ProjectileType() || projectile.type == ProjectileType() || projectile.type == ProjectileType() || projectile.type == ProjectileType()) { damage = (int)(damage * 0.75); } diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index 346a06a170..813931ea1b 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -267,12 +267,12 @@ namespace CalamityMod.NPCs.Polterghast } // Detect active tiles around Polterghast - int radius = 20; // 20 tile radius + int radius = 30; // 30 tile radius int diameter = radius * 2; int npcCenterX = (int)(vector.X / 16f); int npcCenterY = (int)(vector.Y / 16f); Rectangle area = new Rectangle(npcCenterX - radius, npcCenterY - radius, diameter, diameter); - int nearbyActiveTiles = 0; // 0 to 1600 + int nearbyActiveTiles = 0; // 0 to 3600 for (int x = area.Left; x < area.Right; x++) { for (int y = area.Top; y < area.Bottom; y++) @@ -287,8 +287,8 @@ namespace CalamityMod.NPCs.Polterghast // Scale multiplier based on nearby active tiles float tileEnrageMult = 1f; - if (nearbyActiveTiles < 800) - tileEnrageMult += (800 - nearbyActiveTiles) * 0.00075f; // Ranges from 1f to 1.6f + if (nearbyActiveTiles < 1800) + tileEnrageMult += (1800 - nearbyActiveTiles) * 0.0005f; // Ranges from 1f to 1.9f // Used to inform clone and hooks about number of active tiles nearby npc.ai[3] = tileEnrageMult; @@ -306,8 +306,8 @@ namespace CalamityMod.NPCs.Polterghast // Increase damage of projectiles and contact damage based on number of nearby active tiles int damageIncrease = 0; - if (nearbyActiveTiles < 400) - damageIncrease += (400 - nearbyActiveTiles) / 20; // Ranges from 0 to 20 + if (nearbyActiveTiles < 900) + damageIncrease += (900 - nearbyActiveTiles) / 45; // Ranges from 0 to 20 // Look at target float num740 = player.Center.X - vector.X; @@ -416,7 +416,7 @@ namespace CalamityMod.NPCs.Polterghast } // Slow down considerably if near player - if (!speedUp && nearbyActiveTiles > 800 && !Collision.SolidCollision(npc.position, npc.width, npc.height) && Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height) && !charging) + if (!speedUp && nearbyActiveTiles > 1800 && !Collision.SolidCollision(npc.position, npc.width, npc.height) && Collision.CanHit(npc.position, npc.width, npc.height, player.position, player.width, player.height) && !charging) { if (npc.velocity.Length() > velocity) npc.velocity *= 0.97f; diff --git a/Projectiles/Magic/InfernadoFriendly.cs b/Projectiles/Magic/InfernadoFriendly.cs index 07a70202d7..440c8aa038 100644 --- a/Projectiles/Magic/InfernadoFriendly.cs +++ b/Projectiles/Magic/InfernadoFriendly.cs @@ -25,7 +25,7 @@ namespace CalamityMod.Projectiles.Magic projectile.alpha = 255; projectile.timeLeft = 500; projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 1; + projectile.localNPCHitCooldown = 10; projectile.magic = true; } diff --git a/Projectiles/Melee/Blood.cs b/Projectiles/Melee/Blood.cs index 8bd5dfb5d1..8ece25ada0 100644 --- a/Projectiles/Melee/Blood.cs +++ b/Projectiles/Melee/Blood.cs @@ -43,8 +43,9 @@ namespace CalamityMod.Projectiles.Melee Player player = Main.player[projectile.owner]; if (player.moonLeech) return; - player.statLife += 5; - player.HealEffect(5); + int healAmt = projectile.ai[0] == 1f ? 3 : 5; + player.statLife += healAmt; + player.HealEffect(healAmt); } } } diff --git a/Projectiles/Ranged/ElysianArrowProj.cs b/Projectiles/Ranged/ElysianArrowProj.cs index 3f80cbba5f..e6043ec7ae 100644 --- a/Projectiles/Ranged/ElysianArrowProj.cs +++ b/Projectiles/Ranged/ElysianArrowProj.cs @@ -89,7 +89,7 @@ namespace CalamityMod.Projectiles.Ranged num16 *= num18; if (projectile.owner == Main.myPlayer) { - int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType(), projectile.damage, 5f, projectile.owner, 0f, 0f); + int num19 = Projectile.NewProjectile(x, y, num15, num16, ModContent.ProjectileType(), projectile.damage / 2, 5f, projectile.owner, 0f, 0f); Main.projectile[num19].ai[1] = projectile.position.Y; } } diff --git a/Projectiles/Rogue/BloodsoakedCrashax.cs b/Projectiles/Rogue/BloodsoakedCrashax.cs index eabba85135..be258e65c8 100644 --- a/Projectiles/Rogue/BloodsoakedCrashax.cs +++ b/Projectiles/Rogue/BloodsoakedCrashax.cs @@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Rogue if (projectile.Calamity().stealthStrike && projectile.owner == Main.myPlayer) //stealth strike attack { - int stealth = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f); + int stealth = Projectile.NewProjectile(projectile.Center, Vector2.Zero, ModContent.ProjectileType(), projectile.damage, projectile.knockBack, projectile.owner, 1f, 0.85f + Main.rand.NextFloat() * 1.15f); if (stealth.WithinBounds(Main.maxProjectiles)) { Main.projectile[stealth].Calamity().forceRogue = true; diff --git a/Projectiles/Rogue/CelestialReaperProjectile.cs b/Projectiles/Rogue/CelestialReaperProjectile.cs index cbf2b565e2..94b8499118 100644 --- a/Projectiles/Rogue/CelestialReaperProjectile.cs +++ b/Projectiles/Rogue/CelestialReaperProjectile.cs @@ -9,6 +9,7 @@ namespace CalamityMod.Projectiles.Rogue public override string Texture => "CalamityMod/Items/Weapons/Rogue/CelestialReaper"; public int HomingCooldown = 0; + public override void SetStaticDefaults() { DisplayName.SetDefault("Celestial Reaper"); @@ -26,6 +27,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.localNPCHitCooldown = 5; projectile.timeLeft = 600; } + public override void AI() { projectile.rotation += MathHelper.ToRadians(30f) / (float)Math.Log(6f - projectile.penetrate + 2f) / 1.4f; // Slow down the more hits the scythe has accumulated. @@ -67,12 +69,14 @@ namespace CalamityMod.Projectiles.Rogue HomingCooldown = 25; projectile.velocity *= -0.75f; // Bounce off of the enemy. } + public override void Kill(int timeLeft) { - for (float i = 0f; i < 7f; i += 1f) + float totalProjectiles = 4f; + for (float i = 0f; i < totalProjectiles; i += 1f) { - float angle = MathHelper.TwoPi * i / 7f; - Projectile.NewProjectile(projectile.Center, angle.ToRotationVector2() * 12f, ModContent.ProjectileType(), projectile.damage, 2f, projectile.owner); + float angle = MathHelper.TwoPi * i / totalProjectiles; + Projectile.NewProjectile(projectile.Center, angle.ToRotationVector2() * 12f, ModContent.ProjectileType(), projectile.damage / 4, projectile.knockBack / 4f, projectile.owner); } } } diff --git a/Projectiles/Summon/SkeletalDragonMother.cs b/Projectiles/Summon/SkeletalDragonMother.cs index 150d4771e2..754738a80f 100644 --- a/Projectiles/Summon/SkeletalDragonMother.cs +++ b/Projectiles/Summon/SkeletalDragonMother.cs @@ -78,7 +78,7 @@ namespace CalamityMod.Projectiles.Summon projectile.ai[0]++; // Arc towards enemy every 60 frames for 30 frames. - float modulo = projectile.ai[0] % 300f; + float modulo = projectile.ai[0] % 150f; if ((modulo < 30f) || (modulo >= 90 && modulo < 120f)) {