using Emiliasmod.Content.Projectiles; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace Emiliasmod.Content.Items.Ammo { [Autoload(false)] public class VacuumTube : ModItem { public override string Texture => $"Emiliasmod/Assets/Textures/{Name}"; public override void SetDefaults() { Item.width = 24; Item.height = 24; Item.maxStack = 24;//need to introduce overheat if i want to make this 9999 Item.consumable = true; Item.knockBack = 0f; Item.crit = 0; Item.value = Item.sellPrice(0, 15, 5, 0); Item.rare = ItemRarityID.Red; Item.shoot = ModContent.ProjectileType(); Item.ammo = ModContent.ItemType(); } public override void AddRecipes() { Recipe recipe = CreateRecipe(); recipe.AddIngredient(ItemID.Glass, 15); recipe.AddIngredient(ItemID.GoldBar, 4); recipe.AddIngredient(ItemID.TitaniumBar, 4); recipe.AddIngredient(ItemID.PlatinumCoin, 4); recipe.AddIngredient(ItemID.LunarBar, 2); recipe.AddIngredient(ItemID.Nanites, 2); recipe.AddTile(TileID.HeavyWorkBench); recipe.Register(); } } [Autoload(false)] public class QuantumVacuumTube : ModItem {//for debug purpose while overheat isn't created public override string Texture => $"Emiliasmod/Assets/Textures/{Name}"; public override void SetDefaults() { Item.width = 24; Item.height = 24; Item.maxStack = 1; Item.consumable = false; Item.knockBack = 0f; Item.crit = 0; Item.value = Item.sellPrice(0, 15, 5, 0); Item.rare = ItemRarityID.Red; Item.shoot = ModContent.ProjectileType(); Item.ammo = ModContent.ItemType(); } public override void AddRecipes() { Recipe recipe = CreateRecipe(); recipe.AddIngredient(ModContent.ItemType(), 100); recipe.AddIngredient(ItemID.LunarBar, 500); recipe.AddIngredient(ItemID.Nanites, 1000); recipe.AddTile(TileID.LunarMonolith); recipe.Register(); } } }