36 lines
1004 B
C#
36 lines
1004 B
C#
using CalamityMod.NPCs.NormalNPCs;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Critters
|
|
{
|
|
public class PiggyItem : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Misc";
|
|
public override void SetStaticDefaults()
|
|
{
|
|
Item.ResearchUnlockCount = 5;
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.autoReuse = true;
|
|
Item.useTurn = true;
|
|
Item.useAnimation = 15;
|
|
Item.useTime = 10;
|
|
Item.maxStack = 9999;
|
|
Item.consumable = true;
|
|
Item.noUseGraphic = true;
|
|
Item.width = 26;
|
|
Item.height = 24;
|
|
Item.makeNPC = (short)ModContent.NPCType<Piggy>();
|
|
|
|
Item.value = Item.sellPrice(gold: 10);
|
|
Item.rare = ItemRarityID.Blue;
|
|
Item.Calamity().donorItem = true;
|
|
}
|
|
}
|
|
}
|