Decimation_Mod/Content/Items/Accessories/JestersQuiver.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

42 lines
1.3 KiB
C#

using System.Collections.Generic;
using Decimation.Lib.Items;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Items.Accessories
{
internal class JestersQuiver : DecimationAccessory
{
protected override string ItemName => "Jester's Quiver";
protected override string ItemTooltip =>
"Turns wooden arrows into jesters arrows \n+15% Ranged Damage \n-20% Ammo Cost \n+5% Ranged Critical Chance";
protected override void InitAccessory()
{
item.width = 20;
item.height = 20;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.rangedDamage += 0.15f;
player.ammoCost80 = true;
player.rangedCrit += 5;
}
protected override List<ModRecipe> GetAdditionalRecipes()
{
ModRecipe recipe = GetNewModRecipe(this, 1, new List<int> {TileID.TinkerersWorkbench});
recipe.AddIngredient(ModContent.ItemType<RangersQuiver>());
recipe.AddIngredient(ModContent.ItemType<RangersPouch>());
recipe.AddIngredient(ItemID.SoulofSight, 25);
recipe.AddIngredient(ItemID.SoulofFright, 5);
recipe.AddIngredient(ItemID.FallenStar, 15);
return new List<ModRecipe> {recipe};
}
}
}