Add singularity armor, multitool and rarity
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using Terraria.ID;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Materials
|
||||
{
|
||||
public class ContainmentUnit : ModItem
|
||||
{
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 20;
|
||||
Item.height = 20;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ModContent.RarityType<SingularityItem>();
|
||||
Item.value = Item.buyPrice(gold: 50);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 504 B |
@@ -1,6 +1,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Materials
|
||||
{
|
||||
@@ -12,9 +13,17 @@ namespace ForgottenWawiTech.Content.Items.Materials
|
||||
Item.width = 20;
|
||||
Item.height = 20;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.White;
|
||||
Item.rare = ModContent.RarityType<SingularityItem>();
|
||||
Item.value = Item.buyPrice(gold: 50);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe recipe = CreateRecipe();
|
||||
recipe.AddIngredient(ModContent.ItemType<MiniSingularity>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<ContainmentUnit>(), 1);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using ForgottenWawiTech.Content.Rarities;
|
||||
|
||||
namespace ForgottenWawiTech.Content.Items.Materials
|
||||
{
|
||||
@@ -12,7 +13,7 @@ namespace ForgottenWawiTech.Content.Items.Materials
|
||||
Item.width = 20;
|
||||
Item.height = 20;
|
||||
Item.maxStack = 9999;
|
||||
Item.rare = ItemRarityID.White;
|
||||
Item.rare = ModContent.RarityType<SingularityItem>();
|
||||
Item.value = Item.buyPrice(gold: 50);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user