37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using CalamityMod.CalPlayer;
|
|
using Terraria;
|
|
using Terraria.DataStructures;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class HeartofDarkness : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Heart of Darkness");
|
|
Tooltip.SetDefault("Gives 10% increased damage while you have the absolute rage buff\n" +
|
|
"Increases your chance of getting the absolute rage buff\n" +
|
|
"Rage mode does more damage\n" +
|
|
"You gain rage over time\n" +
|
|
"Revengeance drop");
|
|
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 4));
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 26;
|
|
item.height = 26;
|
|
item.value = Item.buyPrice(0, 9, 0, 0);
|
|
item.rare = 3;
|
|
item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.heartOfDarkness = true;
|
|
}
|
|
}
|
|
}
|