日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

缺氧-窑炉-配方

發(fā)布時(shí)間:2024/1/8 编程问答 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 缺氧-窑炉-配方 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
// Token: 0x060005DC RID: 1500 RVA: 0x00022660 File Offset: 0x00020860private void ConfgiureRecipes(){Tag tag = SimHashes.Ceramic.CreateTag(); // 陶瓷Tag material = SimHashes.Clay.CreateTag(); // 黏土Tag material2 = SimHashes.Carbon.CreateTag(); // 碳float num = 100f; // 數(shù)量1float num2 = 25f; // 數(shù)量2 // ComplexRecipe.RecipeElement[] array = new ComplexRecipe.RecipeElement[]{new ComplexRecipe.RecipeElement(material, num),new ComplexRecipe.RecipeElement(material2, num2)};// ComplexRecipe.RecipeElement[] array2 = new ComplexRecipe.RecipeElement[]{new ComplexRecipe.RecipeElement(tag, num)};string obsolete_id = ComplexRecipeManager.MakeObsoleteRecipeID("Kiln", tag);string text = ComplexRecipeManager.MakeRecipeID("Kiln", array, array2);ComplexRecipe complexRecipe = new ComplexRecipe(text, array, array2);complexRecipe.time = 40f;complexRecipe.description = string.Format(STRINGS.BUILDINGS.PREFABS.EGGCRACKER.RECIPE_DESCRIPTION, ElementLoader.FindElementByHash(SimHashes.Clay).name, ElementLoader.FindElementByHash(SimHashes.Ceramic).name);complexRecipe.fabricators = new List<Tag>{TagManager.Create("Kiln")};complexRecipe.nameDisplay = ComplexRecipe.RecipeNameDisplay.Result;ComplexRecipeManager.Get().AddObsoleteIDMapping(obsolete_id, text);Tag tag2 = SimHashes.RefinedCarbon.CreateTag();ComplexRecipe.RecipeElement[] array3 = new ComplexRecipe.RecipeElement[]{new ComplexRecipe.RecipeElement(material2, num + num2)};ComplexRecipe.RecipeElement[] array4 = new ComplexRecipe.RecipeElement[]{new ComplexRecipe.RecipeElement(tag2, num)};string obsolete_id2 = ComplexRecipeManager.MakeObsoleteRecipeID("Kiln", tag2);string text2 = ComplexRecipeManager.MakeRecipeID("Kiln", array3, array4);ComplexRecipe complexRecipe2 = new ComplexRecipe(text2, array3, array4); // 精煉煤炭complexRecipe2.time = 40f;complexRecipe2.description = string.Format(STRINGS.BUILDINGS.PREFABS.EGGCRACKER.RECIPE_DESCRIPTION, ElementLoader.FindElementByHash(SimHashes.Carbon).name, ElementLoader.FindElementByHash(SimHashes.RefinedCarbon).name);complexRecipe2.fabricators = new List<Tag>{TagManager.Create("Kiln")};complexRecipe2.nameDisplay = ComplexRecipe.RecipeNameDisplay.Result;ComplexRecipeManager.Get().AddObsoleteIDMapping(obsolete_id2, text2); //// 先放材料Tag tagNi = SimHashes.Niobium.CreateTag(); // 我用鈮// ComplexRecipe.RecipeElement[] array5 = new ComplexRecipe.RecipeElement[]{new ComplexRecipe.RecipeElement(material2, 1) // 1份出100000份 };ComplexRecipe.RecipeElement[] array6 = new ComplexRecipe.RecipeElement[]{new ComplexRecipe.RecipeElement(tagNi, 1000000) // 1份出100000份};// ? 不明白干啥的, 感覺是做描述用的string obsolete_id3 = ComplexRecipeManager.MakeObsoleteRecipeID("Kiln", tagNi);string text3 = ComplexRecipeManager.MakeRecipeID("Kiln", array5, array6);ComplexRecipe complexRecipe3 = new ComplexRecipe(text3, array5, array6);complexRecipe3.time = 1f; // 時(shí)間complexRecipe3.description = string.Format(BUILDINGS.PREFABS.EGGCRACKER.RECIPE_DESCRIPTION, ElementLoader.FindElementByHash(SimHashes.Carbon).name, ElementLoader.FindElementByHash(SimHashes.Niobium).name); // 這里換成鈮complexRecipe3.fabricators = new List<Tag>{TagManager.Create("Kiln")};complexRecipe3.nameDisplay = ComplexRecipe.RecipeNameDisplay.Result;ComplexRecipeManager.Get().AddObsoleteIDMapping(obsolete_id3, text3);}

通過配方其實(shí)什么都能改出來, 非常方便

private void WaryRecipes(SimHashes src, SimHashes dst){Tag tagsrc = src.CreateTag();Tag tagdst = dst.CreateTag();ComplexRecipe.RecipeElement[] arraysrc = new ComplexRecipe.RecipeElement[]{new ComplexRecipe.RecipeElement(tagsrc, 1f)};ComplexRecipe.RecipeElement[] arraydst = new ComplexRecipe.RecipeElement[]{new ComplexRecipe.RecipeElement(tagdst, 1000000f)};string obsoleteid = ComplexRecipeManager.MakeObsoleteRecipeID("Kiln", tagdst);string text = ComplexRecipeManager.MakeRecipeID("Kiln", arraysrc, arraydst);ComplexRecipe complexRecipe = new ComplexRecipe(text, arraysrc, arraydst, 0);complexRecipe.time = 1f;complexRecipe.description = string.Format(STRINGS.BUILDINGS.PREFABS.EGGCRACKER.RECIPE_DESCRIPTION, ElementLoader.FindElementByHash(src).name, ElementLoader.FindElementByHash(dst).name);complexRecipe.fabricators = new List<Tag>{TagManager.Create("Kiln")};complexRecipe.nameDisplay = ComplexRecipe.RecipeNameDisplay.Result;ComplexRecipeManager.Get().AddObsoleteIDMapping(obsoleteid, text);}

總結(jié)

以上是生活随笔為你收集整理的缺氧-窑炉-配方的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。