Наследование: Terraria.Recipe
Пример #1
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
         recipe.AddIngredient(null, "BismiteCrystal", 8);
         recipe.SetResult(this, 1);
         recipe.AddRecipe();
 }
Пример #2
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "Aurawood", 30);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #3
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(ItemID.Diamond, 1);
     recipe.AddTile(TileID.Anvils);
     recipe.SetResult(this, 50);
 }
Пример #4
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(ItemID.DirtBlock);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #5
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(ItemID.SiltBlock, 100);
     recipe.AddTile(TileID.Furnaces);
     recipe.SetResult(this);
 }
Пример #6
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "AerialiteOre", 5);
     recipe.AddTile(TileID.Furnaces);
     recipe.SetResult(this);
 }
Пример #7
0
		public override void AddRecipes()
		{
			ModRecipe recipe = new ModRecipe(mod);
			recipe.AddIngredient(null, "ExampleItem");
			recipe.SetResult(this);
			recipe.AddRecipe();
		}
Пример #8
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null,"SpiritWoodItem", 10);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #9
0
        public override void AddRecipes()
        {
            ModRecipe recipe = new ModRecipe(mod);
            recipe.AddIngredient(ItemID.Amethyst);
            recipe.AddIngredient(ItemID.RottenChunk, 10);
            recipe.AddIngredient(ItemID.ShadowScale, 10);
            recipe.AddIngredient(ItemID.SoulofNight, 5);
            recipe.AddIngredient(null, "PowerlessRing");
            recipe.AddTile(TileID.MythrilAnvil);
            recipe.SetResult(this);
            recipe.AddRecipe();
            recipe = new ModRecipe(mod);
            recipe.AddIngredient(ItemID.Amethyst);
            recipe.AddIngredient(ItemID.Vertebrae, 10);
            recipe.AddIngredient(ItemID.TissueSample, 10);
            recipe.AddIngredient(ItemID.SoulofNight, 5);
            recipe.AddIngredient(null, "PowerlessRing");
            recipe.AddTile(TileID.MythrilAnvil);
            recipe.SetResult(this);
            recipe.AddRecipe();

            // DEBUGGING, REMOVE WHEN PUBLISHING
            recipe = new ModRecipe(mod);
            recipe.AddIngredient(ItemID.DirtBlock);
            recipe.SetResult(this);
            recipe.AddRecipe();
        }
Пример #10
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
         recipe.AddIngredient(null, "FloranBar", 10);
         recipe.SetResult(this, 1);
         recipe.AddRecipe();
 }
Пример #11
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(this);
     recipe.AddIngredient(null, "ExampleItem");
     recipe.SetResult(ItemID.Wood, 999);
     recipe.AddRecipe();
     recipe = new ModRecipe(this);
     recipe.AddIngredient(null, "ExampleItem");
     recipe.SetResult(ItemID.Silk, 999);
     recipe.AddRecipe();
     recipe = new ModRecipe(this);
     recipe.AddIngredient(null, "ExampleItem");
     recipe.SetResult(ItemID.IronOre, 999);
     recipe.AddRecipe();
     recipe = new ModRecipe(this);
     recipe.AddIngredient(null, "ExampleItem");
     recipe.SetResult(ItemID.GravitationPotion, 20);
     recipe.AddRecipe();
     recipe = new ModRecipe(this);
     recipe.AddIngredient(null, "ExampleItem");
     recipe.SetResult(ItemID.GoldChest);
     recipe.AddRecipe();
     recipe = new ModRecipe(this);
     recipe.AddIngredient(null, "ExampleItem");
     recipe.SetResult(ItemID.MusicBoxDungeon);
     recipe.AddRecipe();
     RecipeHelper.AddBossRecipes(this);
 }
Пример #12
0
 public override void AddRecipes()
 {
     ModRecipe modRecipe = new ModRecipe(mod);
     modRecipe.AddIngredient(2, 1);
     modRecipe.SetResult(this, 1);
     modRecipe.AddRecipe();
 }
Пример #13
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "GaseousVacuumMixture");
     recipe.SetResult(this, 999);
     recipe.AddRecipe();
 }
Пример #14
0
 //How to craft this item
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "FloranBar", 14);   //you need 10 Wood
     recipe.AddTile(TileID.Anvils);   //at work bench
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #15
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "AerialiteBar", 8);
     recipe.AddIngredient(ItemID.SunplateBlock, 3);
     recipe.AddTile(TileID.SkyMill);
     recipe.SetResult(this);
 }
Пример #16
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "Rune", 12);
     recipe.AddTile(TileID.MythrilAnvil);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #17
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(ItemID.DirtBlock, 1);
     recipe.AddTile(TileID.WorkBenches);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #18
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "ForestEnergy", 10);
     recipe.AddTile(TileID.Anvils);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #19
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "Dirt Block", 1);
     recipe.AddTile(null, "Work Bench");
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #20
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(ItemID.PalladiumBar, 10);
     recipe.AddTile(Terraria.ID.TileID.Anvils);
     recipe.SetResult(this, 1);
     recipe.AddRecipe();
 }
Пример #21
0
		public override void AddRecipes()
		{
			ModRecipe recipe = new ModRecipe(mod);
			recipe.AddIngredient(null, "ExampleBlock");
			recipe.SetResult(this, 2);
			recipe.AddTile(null, "ExampleWorkbench");
			recipe.AddRecipe();
		}
Пример #22
0
		public override void AddRecipes()
		{
			ModRecipe recipe = new ModRecipe(mod);
			recipe.AddIngredient(ItemID.Torch, 3);
			recipe.AddIngredient(null, "ExampleBlock");
			recipe.SetResult(this, 3);
			recipe.AddRecipe();
		}
Пример #23
0
 public override void AddRecipes()
 {
     ModRecipe modRecipe = new ModRecipe(mod);
     modRecipe.AddIngredient(null, "SpiritBar", 18);
     modRecipe.AddTile(134);
     modRecipe.SetResult(this, 1);
     modRecipe.AddRecipe();
 }
Пример #24
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(ItemID.IronBar, 12);
     recipe.AddTile(TileID.Anvils);
     recipe.SetResult(this, 1);
     recipe.AddRecipe();
 }
Пример #25
0
		public override void AddRecipes()
		{
			ModRecipe recipe = new ModRecipe(mod);
			recipe.AddIngredient(null, "EquipMaterial", 30);
			recipe.AddTile(null, "ExampleWorkbench");
			recipe.SetResult(this);
			recipe.AddRecipe();
		}
Пример #26
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(ItemID.DemoniteBar, 8);
     recipe.AddTile(TileID.DemonAltar);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #27
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "DarkGel", 15);
     recipe.AddTile(TileID.Anvils);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #28
0
		public override void AddRecipes()
		{
			ModRecipe recipe = new ModRecipe(mod);
			recipe.AddIngredient(ItemID.WorkBench);
			recipe.AddIngredient(null, "ExampleBlock", 10);
			recipe.SetResult(this);
			recipe.AddRecipe();
		}
Пример #29
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(ItemID.DirtBlock);
     recipe.AddTile(null, "MharadiumAnvil");
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #30
0
 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "Aurastone", 2);
     recipe.AddTile(TileID.Furnaces);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
Пример #31
0
        /// <summary>
        /// Returns whether or not the conditions are met for this recipe to be available for the player to use.
        /// </summary>
        /// <param name="recipe">The recipe to check.</param>
        /// <returns>Whether or not the conditions are met for this recipe.</returns>
        public static bool RecipeAvailable(Recipe recipe)
        {
            ModRecipe modRecipe = recipe as ModRecipe;

            if (modRecipe != null && !modRecipe.RecipeAvailable())
            {
                return(false);
            }
            foreach (GlobalRecipe globalRecipe in globalRecipes)
            {
                if (!globalRecipe.RecipeAvailable(recipe))
                {
                    return(false);
                }
            }
            return(true);
        }