40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
using ForgottenWawiTech.Content.Items.Materials;
|
|
using ForgottenWawiTech.Content.Rarities;
|
|
|
|
namespace ForgottenWawiTech.Content.Items.Tools.SingularitySet
|
|
{
|
|
public class SingularityMultitool : ModItem
|
|
{
|
|
public override void SetDefaults()
|
|
{
|
|
Item.damage = 500;
|
|
Item.DamageType = DamageClass.Melee;
|
|
Item.width = 40;
|
|
Item.height = 40;
|
|
Item.useTime = 10;
|
|
Item.useAnimation = 20;
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.knockBack = 5.0f;
|
|
Item.value = Item.sellPrice(gold: 5);
|
|
Item.rare = ModContent.RarityType<SingularityItem>();
|
|
Item.UseSound = SoundID.Item1;
|
|
Item.autoReuse = true;
|
|
Item.useTurn = true;
|
|
Item.axe = 500;
|
|
Item.pick = 500;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe()
|
|
.AddIngredient(ModContent.ItemType<ControlledSingularity>(), 12)
|
|
.AddIngredient(ModContent.ItemType<SingularityAlloy>(), 4)
|
|
.AddTile<Content.Tiles.CraftingStations.SingularitySealingUnit>()
|
|
.Register();
|
|
}
|
|
}
|
|
}
|