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

43 lines
1.3 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 RangersQuiver : DecimationAccessory
{
protected override string ItemName => "Ranger's Quiver";
protected override string ItemTooltip =>
"25% Chance not to consume ammo\n+10%ranged damage\n+15% arrow velocity\n+5% ranged Crit Chance";
protected override void InitAccessory()
{
item.width = 32;
item.height = 32;
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.MythrilAnvil}, true);
recipe.AddIngredient(ItemID.MagicQuiver);
recipe.AddIngredient(ItemID.RangerEmblem);
recipe.AddIngredient(ItemID.SoulofSight, 5);
return new List<ModRecipe> {recipe};
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.rangedDamage += 0.10f;
player.rangedCrit += 05;
player.ammoCost75 = true;
}
}
}