Files
CalamityModPublic/Items/Accessories/ManaOverloader.cs
T
Andrew Marheine d5a2c4963b 1 - Expert boss items are now dropped on all modes and no longer have the expert rarity or tag.
2 - Counter Scarf is no longer dropped by EoC and is now sold by the Clothier for 10 gold.
2022-01-14 22:32:02 -06:00

37 lines
1.2 KiB
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Accessories
{
public class ManaOverloader : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Mana Polarizer");
Tooltip.SetDefault("Increases max mana by 50 and magic damage by 6%\n" +
"Life regen lowered by 3 if mana is above 50% of its maximum\n" +
"Grants spectre healing, the amount healed scales with your mana\n" +
"The healing only works while holding a magic weapon\n" +
"The more mana you have, the more you heal");
}
public override void SetDefaults()
{
item.width = 30;
item.height = 30;
item.value = CalamityGlobalItem.Rarity4BuyPrice;
item.rare = ItemRarityID.LightRed;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.manaOverloader = true;
player.statManaMax2 += 50;
}
}
}