33 lines
921 B
C#
33 lines
921 B
C#
using CalamityMod.CalPlayer;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
using Terraria.ID;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class OldDie : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Old Die");
|
|
Tooltip.SetDefault("Lucky for you, the curse doesn't affect you. Mostly.\n" +
|
|
"Increases the randomness of attack damage");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 24;
|
|
item.height = 26;
|
|
item.rare = ItemRarityID.Orange;
|
|
item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
|
item.accessory = true;
|
|
}
|
|
|
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
|
{
|
|
CalamityPlayer modPlayer = player.Calamity();
|
|
modPlayer.oldDie = true;
|
|
}
|
|
}
|
|
}
|