using CalamityMod.Buffs.Pets; using CalamityMod.Projectiles.Pets; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Pets { public class CharredRelic : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Pets"; public override void SetDefaults() { Item.CloneDefaults(ItemID.ZephyrFish); Item.shoot = ModContent.ProjectileType(); Item.buffType = ModContent.BuffType(); Item.value = Item.sellPrice(gold: 4); Item.rare = ItemRarityID.Red; Item.Calamity().devItem = true; Item.UseSound = SoundID.NPCHit51; } public override void UseStyle(Player player, Rectangle heldItemFrame) { if (player.whoAmI == Main.myPlayer && player.itemTime == 0) { player.AddBuff(Item.buffType, 3600, true); } } } }