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
@@ -8,14 +8,14 @@ public class TheSpinningRainbow : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Spinning Rainbow");
Tooltip.SetDefault("[c/B6FF00:Autothrows]\nThrows 6 Shurikens at once");
}
public override void SetDefaults()
{
Item.maxStack = 1;
Item.damage = 230;
Item.DamageType = DamageClass.Throwing;
Item.maxStack = 1;
Item.knockBack = 0f;
Item.useStyle = ItemUseStyleID.Swing;
Item.UseSound = SoundID.Item1;
@@ -36,10 +36,10 @@ public class TheSpinningRainbow : ModItem
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<SparklingDemon>());
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 6);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
CreateRecipe()
.AddIngredient(ModContent.ItemType<SparklingDemon>())
.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 6)
.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>())
.Register();
}
}