2 - Reduced Frozen Slime Block acceleration by 33% in rev+. 3 - Fixed Mana Overloader exploit. 4 - Altered Dragonfolly AI to make it more epic. 5 - DoG phase 2 can never use the same laser wall type twice in a row. 6 - Added Storm Weaver phase 2 charge. 7 - Fixed issues with Yharon phase 2. 8 - Cut Green Jellyfish damage in half in prehardmode. 9 - Dragonfolly now enrages if taken outside the jungle for too long. 10 - Dragonfolly becomes enraged for the next 2 attacks if you get too far away from it. 11 - Dragonfolly lightning auras made taller.
37 lines
1.2 KiB
C#
37 lines
1.2 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 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 = 4;
|
|
item.accessory = true;
|
|
item.expert = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.manaOverloader = true;
|
|
player.statManaMax2 += 50;
|
|
}
|
|
}
|
|
}
|