Updated the Sling.
This commit is contained in:
parent
70f3ccf445
commit
e14436efd7
@ -1,9 +1,10 @@
|
|||||||
using Decimation.Content.Items.Ammo;
|
using Decimation.Content.Items.Ammo;
|
||||||
using Decimation.Lib.Items;
|
using Decimation.Lib.Items;
|
||||||
using Decimation.Lib.Util;
|
using Decimation.Lib.Util;
|
||||||
|
using Decimation.Lib.Util.Builder;
|
||||||
|
using Terraria;
|
||||||
using Terraria.ID;
|
using Terraria.ID;
|
||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
using Terraria.ModLoader.Config;
|
|
||||||
|
|
||||||
namespace Decimation.Content.Items.Weapons
|
namespace Decimation.Content.Items.Weapons
|
||||||
{
|
{
|
||||||
@ -13,12 +14,12 @@ namespace Decimation.Content.Items.Weapons
|
|||||||
protected override string ItemTooltip => "Uses pebbles and marbles as ammo";
|
protected override string ItemTooltip => "Uses pebbles and marbles as ammo";
|
||||||
protected override DamageType DamagesType => DamageType.Throw;
|
protected override DamageType DamagesType => DamageType.Throw;
|
||||||
protected override int Damages => 9;
|
protected override int Damages => 9;
|
||||||
protected override string AmmoName => "Pebble";
|
protected override int AmmoId => ModContent.ItemType<Pebble>();
|
||||||
|
|
||||||
protected override void InitWeapon()
|
protected override void InitWeapon()
|
||||||
{
|
{
|
||||||
item.width = 30;
|
item.width = 28;
|
||||||
item.height = 22;
|
item.height = 26;
|
||||||
item.useTime = 25;
|
item.useTime = 25;
|
||||||
item.useAnimation = 25;
|
item.useAnimation = 25;
|
||||||
item.rare = Rarity.Orange.GetRarityValue();
|
item.rare = Rarity.Orange.GetRarityValue();
|
||||||
@ -26,6 +27,17 @@ namespace Decimation.Content.Items.Weapons
|
|||||||
item.crit = 10;
|
item.crit = 10;
|
||||||
item.shoot = 1;
|
item.shoot = 1;
|
||||||
item.useTurn = false;
|
item.useTurn = false;
|
||||||
|
item.value = Item.sellPrice(copper: 12);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override ModRecipe GetRecipe()
|
||||||
|
{
|
||||||
|
return new RecipeBuilder(this)
|
||||||
|
.WithIngredient(ItemID.Leather)
|
||||||
|
.WithIngredient(ItemID.Cobweb, 5)
|
||||||
|
.WithStation(TileID.Tables)
|
||||||
|
.WithStation(TileID.Chairs)
|
||||||
|
.Build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 450 B |
Loading…
Reference in New Issue
Block a user