Files
CalamityModPublic/Items/Accessories/ManaOverloader.cs
T
Andrew Marheine b6440448bb Starfury star has less time left.
Mana Overloader rework.
Life steal code rework, which reworks the whole mechanic in Calamity as well.
Refactors.
2020-04-29 03:13:42 -05:00

36 lines
1.1 KiB
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
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 more mana you have, the more you heal");
}
public override void SetDefaults()
{
item.width = 30;
item.height = 30;
item.value = Item.buyPrice(0, 15, 0, 0);
item.rare = 9;
item.accessory = true;
item.expert = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.manaOverloader = true;
player.statManaMax2 += 50;
}
}
}