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 GeyserShell : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Pets"; public override void SetStaticDefaults() { } public override void SetDefaults() { Item.width = 30; Item.height = 30; Item.damage = 0; Item.useStyle = ItemUseStyleID.Swing; Item.useAnimation = 20; Item.useTime = 20; Item.noMelee = true; Item.value = Item.sellPrice(0, 1, 50, 0); Item.shoot = ModContent.ProjectileType(); Item.buffType = ModContent.BuffType(); Item.rare = ItemRarityID.LightPurple; Item.UseSound = SoundID.Item2; } public override void UseStyle(Player player, Rectangle heldItemFrame) { if (player.whoAmI == Main.myPlayer && player.itemTime == 0) { player.AddBuff(Item.buffType, 15, true); } } } }