Fixed typing for thrown weapons.

Cleaned up code.
This commit is contained in:
Big Duckie
2022-07-05 20:08:41 -06:00
parent 387174adf0
commit 0ea22f005c
9 changed files with 59 additions and 56 deletions
@@ -14,8 +14,9 @@ public class HerosShuriken : ModItem
public override void SetDefaults()
{
Item.maxStack = 1;
Item.damage = 10;
Item.DamageType = DamageClass.Throwing;
Item.maxStack = 1;
Item.knockBack = 0f;
Item.useStyle = ItemUseStyleID.Swing;
Item.UseSound = SoundID.Item1;
@@ -36,11 +37,11 @@ public class HerosShuriken : ModItem
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<StonePlatedShuriken>());
val.AddRecipeGroup("IronBar", 3);
val.AddIngredient(ItemID.Emerald, 1);
val.AddTile(TileID.Anvils);
val.Register();
CreateRecipe()
.AddIngredient(ModContent.ItemType<StonePlatedShuriken>())
.AddRecipeGroup("IronBar", 3)
.AddIngredient(ItemID.Emerald)
.AddTile(TileID.Anvils)
.Register();
}
}