Files
CalamityModPublic/Items/SummonItems/BloodwormItem.cs
T

43 lines
1.4 KiB
C#

using CalamityMod.NPCs.AcidRain;
using CalamityMod.Rarities;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.SummonItems
{
public class BloodwormItem : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.SummonItems";
public override void SetStaticDefaults()
{
Item.ResearchUnlockCount = 3;
ItemID.Sets.SortingPriorityBossSpawns[Type] = 19; // Celestial Sigil
}
public override void SetDefaults()
{
Item.width = 28;
Item.height = 28;
Item.maxStack = 9999;
Item.bait = 4444;
Item.useStyle = ItemUseStyleID.Swing;
Item.autoReuse = true;
Item.useTurn = true;
Item.useAnimation = 15;
Item.useTime = 10;
Item.consumable = true;
Item.noUseGraphic = true;
Item.makeNPC = (short)ModContent.NPCType<BloodwormNormal>();
Item.value = Item.sellPrice(gold: 20); // 2x the sell price of Truffle Worms; also sold by Sea King for a custom (2x) price
Item.rare = ModContent.RarityType<PureGreen>();
}
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
{
itemGroup = ContentSamples.CreativeHelper.ItemGroup.BossItem;
}
}
}