44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
using System.Collections.Generic;
|
|
using Decimation.Content.Items.Misc.Souls;
|
|
using Decimation.Lib.Items;
|
|
using Decimation.Lib.Util;
|
|
using Decimation.Lib.Util.Builder;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace Decimation.Content.Items.Tools
|
|
{
|
|
internal class GildedSickle : DecimationTool
|
|
{
|
|
protected override string ItemName => "The Gilded Sickle";
|
|
protected override string ItemTooltip => "Allows the collection of hay from grass";
|
|
protected override int MeleeDamages => 10;
|
|
|
|
protected override void InitTool()
|
|
{
|
|
item.CloneDefaults(ItemID.Sickle);
|
|
item.width = 44;
|
|
item.height = 44;
|
|
item.value = Item.sellPrice(gold: 1);
|
|
item.knockBack = 5;
|
|
item.useTime = 14;
|
|
item.useAnimation = 14;
|
|
item.rare = Rarity.LightRed.GetRarityValue();
|
|
}
|
|
|
|
protected override List<ModRecipe> GetRecipes() => new List<ModRecipe>
|
|
{
|
|
new RecipeBuilder(this)
|
|
.WithIngredient(ItemID.Sickle)
|
|
.WithIngredient(ItemID.GoldBar, 5)
|
|
.WithIngredient(ModContent.ItemType<SoulofTime>(), 10)
|
|
.Build(),
|
|
new RecipeBuilder(this)
|
|
.WithIngredient(ItemID.Sickle)
|
|
.WithIngredient(ItemID.PlatinumBar, 5)
|
|
.WithIngredient(ModContent.ItemType<SoulofTime>(), 10)
|
|
.Build()
|
|
};
|
|
}
|
|
} |