32 lines
894 B
C#
32 lines
894 B
C#
using CalamityMod.CalPlayer;
|
|
using Terraria;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Accessories
|
|
{
|
|
public class LuxorsGift : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Luxor's Gift");
|
|
Tooltip.SetDefault("Weapons fire unique projectiles based on the damage type they have\n" +
|
|
"Some weapons are unable to receive this bonus");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.width = 58;
|
|
item.height = 48;
|
|
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.luxorsGift = true;
|
|
}
|
|
}
|
|
}
|