Decimation_Mod/Content/Items/Accessories/CrystalSkull.cs
FyloZ ec4585bed5 - Changed Bloodshot Eye's music to Boss 1 Orchestra ( https://www.youtube.com/watch?time_continue=120&v=r-9nKGc85FQ )
- Added support for animated projectiles
- Refactoring
- Removed useless fields
- Fixed swords not dealing damages
- Added Hour Hand (from Evie's PR)
2020-03-21 00:11:07 -04:00

45 lines
1.4 KiB
C#

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 = 24;
item.height = 24;
item.rare = Rarity.Green.GetRarityValue();
this.item.value = Item.buyPrice(0, 0, 0, 10);
this.item.defense = 2;
}
protected override List<ModRecipe> GetAdditionalRecipes()
{
ModRecipe recipe = GetNewModRecipe(this, 1, new List<int> {TileID.GlassKiln}, true);
recipe.AddIngredient(ItemID.ObsidianSkull);
recipe.AddIngredient(ItemID.CrystalShard, 5);
recipe.AddRecipeGroup("AnyGem", 4);
recipe.AddIngredient(ItemID.Glass, 6);
return new List<ModRecipe> {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));
}
}
}