using System.Collections.Generic; using Decimation.Lib.Items; using Decimation.Lib.Util; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace Decimation.Content.Items.Accessories { internal class CrystalSkull : DecimationAccessory { protected override string ItemName => "Crystal Skull"; protected override string ItemTooltip => "It seems that this skull has been enchanted."; protected override void InitAccessory() { item.width = 35; item.height = 22; item.rare = Rarity.Green.GetRarityValue(); item.value = Item.sellPrice(0, 0, 0, 10); item.defense = 2; } protected override List GetRecipes() { ModRecipe recipe = GetNewModRecipe(this, 1, new List {TileID.GlassKiln}, true); recipe.AddIngredient(ItemID.ObsidianSkull); recipe.AddIngredient(ItemID.CrystalShard, 5); recipe.AddRecipeGroup("AnyGem", 4); recipe.AddIngredient(ItemID.Glass, 6); return new List {recipe}; } public override void UpdateAccessory(Player player, bool hideVisual) { player.AddBuff(BuffID.Thorns, 1); Lighting.AddLight(player.Center, new Vector3(0.9f * 0.6f, 0.9f * 0.1f, 0.9f)); } } }