35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using CalamityMod.Buffs.Pets;
|
|
using CalamityMod.Projectiles.Pets;
|
|
using CalamityMod.Rarities;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Pets
|
|
{
|
|
public class FoxDrive : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Pets";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.CloneDefaults(ItemID.ZephyrFish);
|
|
Item.shoot = ModContent.ProjectileType<FoxPet>();
|
|
Item.buffType = ModContent.BuffType<FoxPetBuff>();
|
|
Item.expert = true;
|
|
|
|
Item.value = Item.sellPrice(gold: 30);
|
|
Item.rare = ModContent.RarityType<Violet>();
|
|
Item.Calamity().devItem = true;
|
|
}
|
|
|
|
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
|
{
|
|
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
|
|
{
|
|
player.AddBuff(Item.buffType, 3600, true);
|
|
}
|
|
}
|
|
}
|
|
}
|