Decimation_Mod/Content/Items/Accessories/EnchantedFocuser.cs
FyloZ 884e67c5e2 Updated some potions's sprite.
Changed buy price to sell price.
2020-07-09 18:03:44 -04:00

48 lines
1.5 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 EnchantedFocuser : DecimationAccessory
{
protected override string ItemName => "Enchanted Focuser";
protected override string ItemTooltip => "Focuses one's Ki.";
protected override void InitAccessory()
{
item.width = 62;
item.height = 46;
item.rare = Rarity.Green.GetRarityValue();
this.item.value = Item.sellPrice(0, 0, 0, 10);
}
protected override List<ModRecipe> GetRecipes()
{
ModRecipe recipe = GetNewModRecipe(this, 1, new List<int> {TileID.Anvils}, true);
recipe.AddIngredient(ItemID.FallenStar, 5);
recipe.AddIngredient(ItemID.Wire, 15);
recipe.AddIngredient(ItemID.CopperBar, 5);
recipe.AddIngredient(ItemID.WaterCandle);
recipe.AddIngredient(ModContent.ItemType<Focuser>());
return new List<ModRecipe> {recipe};
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.rangedDamage += 0.10f;
player.magicDamage += 0.10f;
player.rangedCrit += 02;
player.meleeCrit += 02;
player.magicCrit += 02;
player.thrownCrit += 02;
player.manaRegen += 2;
player.statManaMax2 += 20;
}
}
}