Necklaxe of Vexation and Anarchy Blade's effects now work at exactly 50% HP

This commit is contained in:
CongratsIsTrash authored and GitHub committed 2023-09-18 20:55:17 -04:00
1 parent 783ffc2214
commit c2095ac04a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2781,7 +2781,7 @@ namespace CalamityMod.CalPlayer
if (vexation)
{
if (Player.statLife < (int)(Player.statLifeMax2 * 0.5))
if (Player.statLife <= (int)(Player.statLifeMax2 * 0.5))
Player.GetDamage<GenericDamageClass>() += 0.2f;
}
+1 -1
View File
@@ -56,7 +56,7 @@ namespace CalamityMod.Items.Weapons.Melee
Projectile.NewProjectile(source, target.Center, Vector2.Zero, ModContent.ProjectileType<BrimstoneBoom>(), Item.damage, Item.knockBack, Main.myPlayer);
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 300);
if (player.statLife < (player.statLifeMax2 * 0.5f) && Main.rand.NextBool(5))
if (player.statLife <= (player.statLifeMax2 * 0.5f) && Main.rand.NextBool(5))
{
if (!CalamityPlayer.areThereAnyDamnBosses && CalamityGlobalNPC.ShouldAffectNPC(target))
{