56 lines
2.0 KiB
C#
56 lines
2.0 KiB
C#
using Decimation.Content.Items.Misc.ConcentratedSouls;
|
|
using Decimation.Content.Items.Ores;
|
|
using Decimation.Content.Items.Weapons.Arachnus;
|
|
using Decimation.Content.Projectiles.Item.Weapon;
|
|
using Decimation.Content.Tiles;
|
|
using Decimation.Lib.Items;
|
|
using Decimation.Lib.Util.Builder;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace Decimation.Content.Items.Weapons
|
|
{
|
|
internal class Scythe : DecimationWeapon
|
|
{
|
|
protected override string ItemName => "The Scythe";
|
|
protected override string ItemTooltip => "Feel the rage of Kronos by your side.";
|
|
protected override DamageType DamagesType => DamageType.Ranged;
|
|
protected override int Damages => 950;
|
|
protected override int ProjectileId => ModContent.ProjectileType<ScytheStyngerBolt>();
|
|
|
|
protected override void InitWeapon()
|
|
{
|
|
item.CloneDefaults(ItemID.Stynger);
|
|
item.knockBack = 11;
|
|
item.shootSpeed = 9f;
|
|
item.crit = 8;
|
|
item.width = 72;
|
|
item.height = 36;
|
|
item.useTime = 10;
|
|
item.useAnimation = 10;
|
|
item.rare = 10;
|
|
item.autoReuse = true;
|
|
item.value = Item.sellPrice(gold: 60);
|
|
}
|
|
|
|
protected override ModRecipe GetRecipe()
|
|
{
|
|
return new RecipeBuilder(this)
|
|
.WithIngredient(ModContent.ItemType<ChainStynger>())
|
|
.WithIngredient(ModContent.ItemType<TitaniteBar>(), 15)
|
|
.WithIngredient(ModContent.ItemType<DenziumBar>())
|
|
.WithIngredient(ModContent.ItemType<ConcentratedMight>(), 5)
|
|
.WithStation(ModContent.TileType<TitanForge>())
|
|
.Build();
|
|
}
|
|
|
|
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY,
|
|
ref int type, ref int damage, ref float knockBack)
|
|
{
|
|
type = ModContent.ProjectileType<ScytheStyngerBolt>();
|
|
return true;
|
|
}
|
|
}
|
|
} |