當前位置: 首頁>>代碼示例>>C#>>正文


C# ModRecipe.SetResult方法代碼示例

本文整理匯總了C#中Terraria.ModLoader.ModRecipe.SetResult方法的典型用法代碼示例。如果您正苦於以下問題:C# ModRecipe.SetResult方法的具體用法?C# ModRecipe.SetResult怎麽用?C# ModRecipe.SetResult使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Terraria.ModLoader.ModRecipe的用法示例。


在下文中一共展示了ModRecipe.SetResult方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: AddRecipes

 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
         recipe.AddIngredient(null, "BismiteCrystal", 8);
         recipe.SetResult(this, 1);
         recipe.AddRecipe();
 }
開發者ID:ColinAV516,項目名稱:Spirit-Mod,代碼行數:7,代碼來源:BismiteWrath.cs

示例2: AddRecipes

 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "Aurawood", 30);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
開發者ID:Eldrazi,項目名稱:Gyrolite,代碼行數:7,代碼來源:AurawoodBreastplate.cs

示例3: AddRecipes

 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(ItemID.Diamond, 1);
     recipe.AddTile(TileID.Anvils);
     recipe.SetResult(this, 50);
 }
開發者ID:MountainDrew8,項目名稱:CalamityMod,代碼行數:7,代碼來源:DiamondDust.cs

示例4: AddRecipes

 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(ItemID.DirtBlock);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
開發者ID:Eldrazi,項目名稱:Gyrolite,代碼行數:7,代碼來源:VulcanicCore.cs

示例5: AddRecipes

 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(ItemID.SiltBlock, 100);
     recipe.AddTile(TileID.Furnaces);
     recipe.SetResult(this);
 }
開發者ID:MountainDrew8,項目名稱:CalamityMod,代碼行數:7,代碼來源:AncientFossil.cs

示例6: AddRecipes

 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "AerialiteOre", 5);
     recipe.AddTile(TileID.Furnaces);
     recipe.SetResult(this);
 }
開發者ID:MountainDrew8,項目名稱:CalamityMod,代碼行數:7,代碼來源:AerialiteBar.cs

示例7: AddRecipes

		public override void AddRecipes()
		{
			ModRecipe recipe = new ModRecipe(mod);
			recipe.AddIngredient(null, "ExampleItem");
			recipe.SetResult(this);
			recipe.AddRecipe();
		}
開發者ID:DrakoGlyph,項目名稱:tModLoader,代碼行數:7,代碼來源:Face.cs

示例8: AddRecipes

 public override void AddRecipes()
 {
     ModRecipe modRecipe = new ModRecipe(mod);
     modRecipe.AddIngredient(2, 1);
     modRecipe.SetResult(this, 1);
     modRecipe.AddRecipe();
 }
開發者ID:ColinAV516,項目名稱:Spirit-Mod,代碼行數:7,代碼來源:UmbraStaff.cs

示例9: AddRecipes

 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null,"SpiritWoodItem", 10);
     recipe.SetResult(this);
     recipe.AddRecipe();
 }
開發者ID:ColinAV516,項目名稱:Spirit-Mod,代碼行數:7,代碼來源:SpiritTableItem.cs

示例10: AddRecipes

 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);
 }
開發者ID:trekko727,項目名稱:tModLoader,代碼行數:28,代碼來源:ExampleMod.cs

示例11: AddRecipes

        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();
        }
開發者ID:Eldrazi,項目名稱:Pletharia,代碼行數:27,代碼來源:ShadowRing.cs

示例12: AddRecipes

 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
     recipe.AddIngredient(null, "GaseousVacuumMixture");
     recipe.SetResult(this, 999);
     recipe.AddRecipe();
 }
開發者ID:Eldrazi,項目名稱:Gyrolite,代碼行數:7,代碼來源:GaseousVacuumJar.cs

示例13: AddRecipes

 public override void AddRecipes()
 {
     ModRecipe recipe = new ModRecipe(mod);
         recipe.AddIngredient(null, "FloranBar", 10);
         recipe.SetResult(this, 1);
         recipe.AddRecipe();
 }
開發者ID:ColinAV516,項目名稱:Spirit-Mod,代碼行數:7,代碼來源:Florang.cs

示例14: AddRecipes

 //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();
 }
開發者ID:ColinAV516,項目名稱:Spirit-Mod,代碼行數:9,代碼來源:FLegs.cs

示例15: AddRecipes

 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);
 }
開發者ID:MountainDrew8,項目名稱:CalamityMod,代碼行數:8,代碼來源:Galeforce.cs


注:本文中的Terraria.ModLoader.ModRecipe.SetResult方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。