using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.DataStructures; using Terraria.ModLoader; namespace CalamityMod.Items.Materials { [LegacyName("Phantoplasm")] public class Polterplasm : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Materials"; public override void SetStaticDefaults() { Item.ResearchUnlockCount = 25; Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(5, 5)); ItemID.Sets.AnimatesAsSoul[Type] = true; ItemID.Sets.SortingPriorityMaterials[Type] = 110; } public override void SetDefaults() { Item.width = 12; Item.height = 12; Item.maxStack = 9999; Item.value = Item.sellPrice(gold: 1); Item.rare = ItemRarityID.Purple; } public override Color? GetAlpha(Color lightColor) => new Color(200, 200, 200, 0); } }