Decimation_Mod/Content/Items/Accessories/Focuser.cs
2020-06-11 23:19:28 -04:00

45 lines
1.4 KiB
C#

using System.Collections.Generic;
using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Items.Accessories
{
internal class Focuser : DecimationAccessory
{
protected override string ItemName => "Focuser";
protected override string ItemTooltip => "Focuses one's inner strength.";
protected override void InitAccessory()
{
item.width = 54;
item.height = 46;
item.rare = Rarity.Green.GetRarityValue();
this.item.value = Item.buyPrice(0, 0, 0, 10);
}
protected override List<ModRecipe> GetRecipes()
{
ModRecipe recipe = GetNewModRecipe(this, 1, new List<int> {TileID.Anvils}, true);
recipe.AddIngredient(ItemID.Chain, 3);
recipe.AddIngredient(ItemID.CopperBar, 10);
recipe.AddIngredient(ItemID.GoldBar);
recipe.AddIngredient(ItemID.Ruby);
recipe.AddIngredient(ItemID.IronBar, 3);
return new List<ModRecipe> {recipe};
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.rangedDamage += 0.05f;
player.rangedCrit += 05;
player.meleeCrit += 05;
player.magicCrit += 05;
player.thrownCrit += 05;
}
}
}