40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using CalamityMod.NPCs.AcidRain;
|
|
using CalamityMod.Rarities;
|
|
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()
|
|
{
|
|
ItemID.Sets.SortingPriorityBossSpawns[Type] = 19; // Celestial Sigil
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 28;
|
|
Item.height = 28;
|
|
Item.maxStack = 9999;
|
|
Item.rare = ModContent.RarityType<PureGreen>();
|
|
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.ResearchUnlockCount = 3;
|
|
}
|
|
|
|
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
|
{
|
|
itemGroup = ContentSamples.CreativeHelper.ItemGroup.BossItem;
|
|
}
|
|
}
|
|
}
|