From 4719df43eeaa678a4d00385b378da4bb83c514a4 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 6 Aug 2020 14:53:12 -0400 Subject: [PATCH] I forgot Aureus Cells existed --- Items/Potions/AstralJelly.cs | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/Items/Potions/AstralJelly.cs b/Items/Potions/AstralJelly.cs index fc9d41d7f2..c05bc505cd 100644 --- a/Items/Potions/AstralJelly.cs +++ b/Items/Potions/AstralJelly.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Items.Potions public override void SetStaticDefaults() { DisplayName.SetDefault("Aureus Cell"); - Tooltip.SetDefault("Gives mana regeneration and magic power for 6 minutes"); + Tooltip.SetDefault("Grants increased mana regeneration and magic power"); } public override void SetDefaults() @@ -30,10 +30,24 @@ namespace CalamityMod.Items.Potions item.buffTime = 21600; } - public override void OnConsumeItem(Player player) - { - player.AddBuff(BuffID.MagicPower, 21600); - player.AddBuff(BuffID.ManaRegeneration, 21600); - } + public override bool UseItem(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); + return true; + } } }