Decimation_Mod/Content/Items/Weapons/SlingshotWood.cs
FyloZ 05149c4341 The bloody lunar tablet could be used at day time
Fixed the sling and the slingshot
Balanced the sling and the slingshot
2020-03-30 12:39:49 -04:00

42 lines
1.3 KiB
C#

using Decimation.Content.Items.Ammo;
using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Items.Weapons
{
internal class SlingshotWood : DecimationWeapon
{
protected override string ItemName => "Slingshot";
protected override string ItemTooltip => "Uses pebbles and marbles as ammo";
protected override DamageType DamagesType => DamageType.Throw;
protected override int Damages => 7;
protected override string Ammo => "Pebble";
protected override void InitWeapon()
{
item.width = 32;
item.height = 32;
item.useTime = 16;
item.useAnimation = 16;
item.useStyle = 5;
item.shoot = 1;
item.rare = Rarity.Orange.GetRarityValue();
item.UseSound = SoundID.Item5;
item.shootSpeed = 5f;
item.crit = 10;
item.useTurn = false;
}
protected override ModRecipe GetRecipe()
{
ModRecipe recipe = GetNewModRecipe(this, 1, TileID.WorkBenches);
recipe.AddIngredient(ItemID.Wood, 12);
// recipe.AddIngredient(null,"CrimsoniteBar", 10);
return recipe;
}
}
}