45 lines
1.5 KiB
C#
45 lines
1.5 KiB
C#
using Decimation.Content.Projectiles;
|
|
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.Weapons
|
|
{
|
|
internal class MultigrainSword : DecimationWeapon
|
|
{
|
|
protected override string ItemName => "Multigrain Sword";
|
|
protected override string ItemTooltip => "Smells like honeysuckle";
|
|
protected override int Damages => 30;
|
|
protected override int ProjectileId => ModContent.ProjectileType<Stinger>();
|
|
|
|
protected override void InitWeapon()
|
|
{
|
|
item.width = 58;
|
|
item.height = 58;
|
|
item.useTime = 26;
|
|
item.useAnimation = 26;
|
|
item.knockBack = 5;
|
|
item.value = Item.sellPrice(silver: 88);
|
|
item.rare = Rarity.Green.GetRarityValue();
|
|
item.crit = 4;
|
|
item.autoReuse = true;
|
|
item.expert = false;
|
|
item.shootSpeed = 10f;
|
|
}
|
|
|
|
protected override ModRecipe GetRecipe()
|
|
{
|
|
return new RecipeBuilder(this)
|
|
.WithIngredient(ItemID.CactusSword)
|
|
.WithIngredient(ItemID.Pumpkin, 15)
|
|
.WithIngredient(ItemID.Acorn, 5)
|
|
.WithIngredient(ItemID.Hay, 15)
|
|
.WithIngredient(ModContent.ItemType<GreatwoodSword>())
|
|
.WithStation(TileID.Loom)
|
|
.Build();
|
|
}
|
|
}
|
|
} |