Files
CalamityModPublic/Items/Pets/TrashmanTrashcan.cs
T
Altixal 17db15200d Remainder buyPrice cleanups
Intentionally ignored consumable rogue weapons because plans to un-consumable those
2024-09-19 02:39:52 +07:00

32 lines
961 B
C#

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 TrashmanTrashcan : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Pets";
public override void SetDefaults()
{
Item.DefaultToVanitypet(ModContent.ProjectileType<DannyDevitoPet>(), ModContent.BuffType<DannyDevito>());
Item.UseSound = SoundID.NPCDeath13;
Item.value = Item.sellPrice(gold: 1);
Item.rare = ItemRarityID.Pink;
Item.Calamity().devItem = true;
}
public override void UseStyle(Player player, Rectangle heldItemFrame)
{
if (player.whoAmI == Main.myPlayer && player.itemTime == 0)
{
player.AddBuff(Item.buffType, 15, true);
}
}
}
}