30 lines
978 B
C#
30 lines
978 B
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 LittleLight : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Pets";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.DefaultToVanitypet(ModContent.ProjectileType<LittleLightProj>(), ModContent.BuffType<LittleLightBuff>());
|
|
Item.UseSound = SoundID.Item83;
|
|
Item.value = Item.sellPrice(gold: 12);
|
|
Item.rare = ModContent.RarityType<Turquoise>();
|
|
Item.Calamity().donorItem = true;
|
|
}
|
|
|
|
public override void UseStyle(Player player, Rectangle heldItemFrame)
|
|
{
|
|
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
|
|
player.AddBuff(Item.buffType, 3600, true);
|
|
}
|
|
}
|
|
}
|