Chaos Stone checks alongside < 0 mana checks

This commit is contained in:
doze-zoze committed 2026-02-07 13:22:39 -06:00
1 parent 7f31cf7bb8
commit 88d9c3b98e
5 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -4498,7 +4498,7 @@ namespace CalamityMod.CalPlayer
{
Player.ClearBuff(BuffID.WindPushed);
}
if (Player.statMana < 0)
if (Player.statMana < 0 && Player.Calamity().ChaosStone)
{
Player.AddBuff(BuffType<ManaBurn>(), 10);
}
+1 -1
View File
@@ -387,7 +387,7 @@ namespace CalamityMod.CalPlayer
else
{
// Mana Burn VFX disabled when hih
if (Player.statMana < 0)
if (Player.statMana < 0 && Player.Calamity().ChaosStone)
{
float compactness = Player.width * 0.6f;
if (compactness < 10f)
+1 -1
View File
@@ -256,7 +256,7 @@ namespace CalamityMod.CalPlayer
else
witheredWeaponHoldTime = 0;
if (Player.statMana < 0)
if (Player.statMana < 0 && Player.Calamity().ChaosStone)
{
totalNegativeLifeRegen -= Player.statMana/100f * Items.Accessories.ChaosStone.LostRegenPer100Mana;
}
+1 -1
View File
@@ -4694,7 +4694,7 @@ namespace CalamityMod.Projectiles
if (BloodstoneOrbValue > 0)
Projectile.NewProjectile(projectile.GetSource_OnHit(target), projectile.Center, projectile.velocity.SafeNormalize(Vector2.Zero) * Math.Min(((projectile.velocity.Length() * projectile.MaxUpdates) / 4f), 4f) * Main.rand.NextFloat(0.75f, 1.25f), ModContent.ProjectileType<BloodstoneHealOrb>(), BloodstoneOrbValue, 0f, Main.player[projectile.owner].whoAmI);
//Mana Burn
if (Main.player[projectile.owner].statMana < 0)
if (Main.player[projectile.owner].statMana < 0 && Main.player[projectile.owner].Calamity().ChaosStone)
{
var player = Main.player[projectile.owner];
float burnRatio = (-player.statMana / 100) * ChaosStone.DamageMultPer100Mana;
+2 -2
View File
@@ -50,7 +50,7 @@ namespace CalamityMod.UI.ResourceSets
public static CalamityUIResourceSet GetManaTextureSet()
{
CalamityPlayer modPlayer = Main.LocalPlayer.Calamity();
if (Main.LocalPlayer.statMana < 0)
if (Main.LocalPlayer.statMana < 0 && Main.LocalPlayer.Calamity().ChaosStone)
return CalamityUIResourceSets.MPManaBurn;
if (modPlayer.pHeart)
return CalamityUIResourceSets.MPPhantomHeart;
@@ -196,7 +196,7 @@ namespace CalamityMod.UI.ResourceSets
}
}
// This is where Mana Burn is drawn
else if (Player.statMana < 0)
else if (Player.statMana < 0 && Player.Calamity().ChaosStone)
{
var manaSet = GetManaTextureSet();
var mana = -Player.statMana;