Aureus Cells no longer restore mana, Crowns now shatter on injection

This commit is contained in:
sunny-raindrops committed 2026-04-06 23:05:55 -07:00
1 parent 0a965765da
commit aa3f77f5b5
2 files changed
+2 -15

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
using System;
using System.IO;
using CalamityMod.Balancing;
using CalamityMod.Buffs.Potions;
using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Buffs.StatDebuffs;
using CalamityMod.CalPlayer;
@@ -616,7 +617,7 @@ namespace CalamityMod.Items
}
//Mana Potion interactions
if (item.healMana > 0)
if (item.healMana > 0 || player.HasBuff(ModContent.BuffType<AstralInjectionBuff>()))
{
//If mana potion used, kill all active Crown projectiles
if ((modPlayer.moonCrown || modPlayer.featherCrown) && modPlayer.mageCrownCount > 0)
-14
View File
@@ -24,7 +24,6 @@ namespace CalamityMod.Items.Potions
{
// Eating animation but gulp sound? Sure
Item.DefaultToFood(22, 38, BuffID.MagicPower, CalamityUtils.MinutesToFrames(8));
Item.healMana = 200;
Item.UseSound = SoundID.Item3;
Item.value = Item.sellPrice(silver: 50); // Based on material cost rather than potion cost
Item.rare = ItemRarityID.Lime;
@@ -32,19 +31,6 @@ namespace CalamityMod.Items.Potions
public override void OnConsumeItem(Player player)
{
if (PlayerInput.Triggers.JustPressed.QuickBuff)
{
player.statMana += Item.healMana;
if (player.statMana > player.statManaMax2)
{
player.statMana = player.statManaMax2;
}
player.AddBuff(BuffID.ManaSickness, Player.manaSickTime, true);
if (Main.myPlayer == player.whoAmI)
{
player.ManaEffect(Item.healMana);
}
}
player.AddBuff(BuffID.MagicPower, Item.buffTime);
player.AddBuff(BuffID.ManaRegeneration, Item.buffTime);
}