Иконка ресурса

FREE Cooking : 1.4.5 1.4.5

Нет прав для скачивания
C#:
using Facepunch;
using Newtonsoft.Json;
using Oxide.Core;
using Oxide.Core.Configuration;
using Oxide.Core.Plugins;
using Oxide.Game.Rust.Cui;
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
///Скачано с дискорд сервера Rust Edit [PRO+]
///discord.gg/9vyTXsJyKR
/* Add option to change font sizes.* Add anchor options for buff tiles.*/
/*1.4.5 changes
 * Fixed an issue with items stacking when collected directly into the ibag.* Fixed a rare duplication when the fruggal rationer perk (SkillTree) proc'd.*/
namespace Oxide.Plugins {
    [Info("Cooking", "discord.gg/9vyTXsJyKR", "1.4.5")]
    [Description("Cooking 2.0")]
    class Cooking : RustPlugin {
#region Config
        private Configuration config;
        public class Configuration {
            [JsonProperty("Which recipe and ingredient should we use? [simple, advanced].Changing this will delete ")]
            public string recipe_profile = "advanced";
            [JsonProperty("Allow player grown items to spawn ingredients")]
            public bool grown_harvesting_ingredients = true;
            [JsonProperty("Items that will provide the user with the cooking menu")]
            public List<string> cooking_entities = new List<string>();
            [JsonProperty("Cooking button anchor min values")]
            public string cooking_button_anchor_min = "-257 125";
            [JsonProperty("Cooking button anchor max values")]
            public string cooking_button_anchor_max = "-107 163";
            [JsonProperty("Chance out of 1000 to obtain an item while skinning a boar")]
            public float boar_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while skinning a bear")]
            public float bear_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while skinning a chicken")]
            public float chicken_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while skinning a stag")]
            public float stag_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while skinning a wolf")]
            public float wolf_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while skinning a horse")]
            public float horse_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while skinning a polar bear")]
            public float polar_bear_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item from the all animal table")]
            public float all_animal_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while chopping trees")]
            public float chopping_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while mining")]
            public float mining_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item from the stone mine source")]
            public float mining_stone_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item from the metal mine source")]
            public float mining_metal_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item from the sulfur mine source")]
            public float mining_sulfur_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking hemp")]
            public float hemp_drop_chance = 100f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking hemp that was grown")]
            public float grown_hemp_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking corn")]
            public float corn_drop_chance = 100f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking corn that was grown")]
            public float grown_corn_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking potato")]
            public float potato_drop_chance = 100f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking potato that was grown")]
            public float grown_potato_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking pumpkin")]
            public float pumpkin_drop_chance = 100f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking pumpkin that was grown")]
            public float grown_pumpkin_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking mushroom")]
            public float mushroom_drop_chance = 75f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking berries")]
            public float berry_drop_chance = 100f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking berries that were grown")]
            public float grown_berry_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while gutting fish")]
            public float fish_drop_chance = 50f;
            [JsonProperty("Chance out of 1000 to obtain an item while catching fish")]
            public float fishing_drop_chance = 100f;
            [JsonProperty("Chance out of 1000 to obtain an item while picking up Collectable node")]
            public float collectable_node_chance = 150f;
            [JsonProperty("Chance out of 1000 to obtain an item when looting a foodbox")]
            public float foodbox_chance = 150f;
            [JsonProperty("Send notification when an item drops")]
            public bool send_notice = true;
            [JsonProperty("Buff update frequency")]
            public float buff_timer_update = 2f;
            [JsonProperty("Cooking progress update time")]
            public int cooking_progress_update_time = 1;
            [JsonProperty("Comfort update rate")]
            public int comfort_update_rate = 1;
            [JsonProperty("How much should the calorie cap increase for? [hours]")]
            public float calorie_cap_duration = 2f;
            [JsonProperty("Clear calorie overload on reconnect")]
            public bool calorie_clear_on_connect = true;
            [JsonProperty("Which currency type should we use for the Wealth effect [economics, srp or scrap]")]
            public string wealth_currency = "scrap";
            [JsonProperty("Remove buffs on death")]
            public bool remove_buffs_on_death = true;
            [JsonProperty("How often should a regen timer increase a players health")]
            public float regen_proc_rate = 5f;
            [JsonProperty("Allow players to build and use the ingredient bag.Only non standard ingredients can be put inside of it.")]
            public bool allow_ingredient_bag = true;
            [JsonProperty("If the ingredients bag is enabled, should items be placed directly into it if the player has it in their inventory?")]
            public bool items_into_ingredient_bag = true;
            [JsonProperty("Whitelist of item shortnames that can be placed inside of the ingredient bag")]
            public List<string> ingredient_bag_whitelist = new List<string>();
            [JsonProperty("Value to buff horse stats by")]
            public float horse_stats_buff = 15f;
            [JsonProperty("Maximum components that can be found with the ComponentLuck buff?")]
            public int max_components = 10;
            [JsonProperty("Allow players to buy and sell ingredients via a farmers market?")]
            public bool enable_farmers_market = true;
            [JsonProperty("Maximum quantity of a stocked item that the market can sell")]
            public int market_item_max_stock = 100;
            [JsonProperty("Allow players to use a chat command to open the market?")]
            public bool farmers_market_chat_cmd_enabled = true;
            [JsonProperty("What currency should we use for farmers market transactions [scrap, economics or serverrewards]")]
            public string farmers_market_currency = "scrap";
            [JsonProperty("Quantity that the second sell/buy options should action")]
            public int second_sell_buy_quantity = 10;
            [JsonProperty("Allow default items to be bought and sold in the market")]
            public bool allow_default_items = false;
            [JsonProperty("Name of the NPC that will open the farmers market when spoken to (requires HumanNPC)")]
            public string npc_name = "farmers market";
            [JsonProperty("NPC IDs that will open the farmers market")]
            public List<ulong> market_IDs = new List<ulong>();
            [JsonProperty("Play effect when a player buys or sells an item at the market")]
            public bool market_transaction_effect = true;
            [JsonProperty("Colour ingredient tabs based on if the player has enough of an item to make the meal")]
            public bool colour_ingredient_tabs = true;
            [JsonProperty("Colour when there is enough ingredients")]
            public string colour_ingredient_has = "0.1393085 0.7075472 0.0500623";
            [JsonProperty("Colour when there is some ingredients but not enough")]
            public string colour_ingredient_some = "0.9245283 0.8411286 0.09158063";
            [JsonProperty("Colour when there is no ingredients available")]
            public string colour_ingredient_none = "0.7735849 0.03284086 0.03891755";
            [JsonProperty("Colour and transparency of the backpanel")]
            public string back_panel_col = "0 0 0 0.99";
            [JsonProperty("Sound effect when purchasing an item")]
            public string purchase_effect = "assets/prefabs/deployable/vendingmachine/effects/vending-machine-purchase-human.prefab";
            [JsonProperty("Sound effect when cooking an item")]
            public string cooking_effect = "assets/bundled/prefabs/fx/gestures/cut_meat.prefab";
            [JsonProperty("Chat command to open the ibag (requires cooking.chat.bag permissions")]
            public string bag_chat_cmd = "ibag";
            [JsonProperty("Chat command to open the market")]
            public string market_chat_cmd = "market";
            [JsonProperty("Container asset that will be used for the bag item")]
            public string box_type = "assets/prefabs/deployable/large wood storage/box.wooden.large.prefab";
            [JsonProperty("How many slots would you like active in the container (do not go above the containers max slots)")]
            public int box_slots = 30;
            [JsonProperty("Name of the NPC that can be used to open the cooking menu")]
            public string cooking_menu_npc_name = "chef";
            [JsonProperty("NPC prefab path")]
            public string market_npc_prefab = "assets/prefabs/npc/bandit/missionproviders/missionprovider_bandit_a.prefab";
            [JsonProperty("NPC items")]
            public MarketNPCItems default_npc_items = new MarketNPCItems();
            [JsonProperty("Black listed parts for component and electrical luck abilities", ObjectCreationHandling = ObjectCreationHandling.Replace)]
            public List<string> comp_blacklist = new List<string>();
            [JsonProperty("A black list of items that will not be refunded when using the crafting refund buff", ObjectCreationHandling = ObjectCreationHandling.Replace)]
            public List<string> craft_refund_blacklist = new List<string>() {
                "gunpowder", "explosives", "sulfur"
            }
            ;
            [JsonProperty("A black list of items that will not be duplicated while using the thirfty duplicator buff", ObjectCreationHandling = ObjectCreationHandling.Replace)]
            public List<string> craft_duplicate_blacklist = new List<string>() {
                "gunpowder", "explosives", "sulfur"
            }
            ;
            [JsonProperty("Animals that are considered part of the Animals gather source")]
            public List<string> animals = new List<string>();
            [JsonProperty("Whitelist of loot crates to trigger the spawn chance for components, electronics and scrap.Set to null to not use the whitelist.", ObjectCreationHandling = ObjectCreationHandling.Replace)]
            public List<string> loot_crate_whitelist = new List<string>();
            [JsonProperty("Delete the player's ingredient bag data when the server wipes?")]
            public bool delete_player_ingredient_bags = true;
            [JsonProperty("Allow players to use ingredients from their ingredient bag")]
            public bool allow_cooking_from_ingredient_bag = true;
            [JsonProperty("Automatically update missing meals from the default config")]
            public bool auto_update_meals = true;
            [JsonProperty("Automatically update missing ingredients from the default config")]
            public bool auto_update_ingredients = true;
            [JsonProperty("Should the LootPickup buff only work with melee weapons?")]
            public bool lootPickupBuffMeleeOnly = false;
            [JsonProperty("Drop players ingredient bag on death?")]
            public bool drop_ingredient_bag_on_death = false;
            [JsonProperty("Should we have a maximum distance for the loot pickup buff [0 = unlimited]?")]
            public float loot_pickup_buff_max_distance = 0;
            [JsonProperty("Colour settings for menu")]
            public MenuColourSettings menu_colour = new MenuColourSettings();
            [JsonProperty("Change the colour of the text based on whether or not the player can craft the meal")]
            public bool change_menu_text_col = true;
            [JsonProperty("Force overwrite of images via ImageLibrary on start? (not recommended)")]
            public bool overwrite_images_on_plugin_start = false;
            [JsonProperty("Colour settings for menu text based on whether the player has ingredients to cook the meals")]
            public CanCookColourSettings text_colour = new CanCookColourSettings();
            [JsonProperty("Allow cooking to maintain the item integrity using the OnItemStack/CanStackItem hook.Set to false if you use a stack control plugin")]
            public bool ManageStacks = true;
            [JsonProperty("Automatically fix old imgur links?")]
            public bool fix_old_links = true;
            [JsonProperty("Allow power tools to be used for gathering ingredients?")]
            public PowerTools allow_for_ingredients = new PowerTools() {
                allow_for_mining_ingredients = false, allow_for_skinning_ingredients = false, allow_for_woodcutting_ingredients = false
            }
            ;
            [JsonProperty("Meal loot drops [drop %]")]
            public LootContainers meal_loot_containers = new LootContainers() {
                crate_basic = 0.1f, crate_normal_2 = 2f, crate_normal = 5f, crate_elite = 10f, crate_underwater_advanced = 5, crate_normal_2_food = 5, crate_food_1 = 1, crate_food_2 = 1, crate_medical = 1
            }
            ;
            [JsonProperty("Ingredient loot drops [drop %]")]
            public LootContainers ingredient_loot_containers = new LootContainers() {
                crate_basic = 0, crate_normal_2 = 0, crate_normal = 0, crate_elite = 0, crate_underwater_advanced = 0, crate_normal_2_food = 50, crate_food_1 = 30, crate_food_2 = 30, crate_medical = 10
            }
            ;
            [JsonProperty("Maximum stack size of ingredients to spawn in a chest")]
            public int ingredient_loot_max = 10;
            [JsonProperty("Minimum stack size of ingredients to spawn in a chest")]
            public int ingredient_loot_min = 5;
            [JsonProperty("Ingredient information", ObjectCreationHandling = ObjectCreationHandling.Replace)]
            public Dictionary<string, IngredientInfo> ingredients = new Dictionary<string, IngredientInfo>(StringComparer.OrdinalIgnoreCase);
            [JsonProperty("Recipes information", ObjectCreationHandling = ObjectCreationHandling.Replace)]
            public Dictionary<string, RecipeInfo> recipes = new Dictionary<string, RecipeInfo>(StringComparer.OrdinalIgnoreCase);
            [JsonProperty("RandomTrader Integration")]
            public RandomTraderAPI random_trader_api = new RandomTraderAPI();
            [JsonProperty("SkillTree Integration")]
            public SkillTreeNodeAPI skilltree_api = new SkillTreeNodeAPI();
            [JsonProperty("RaidableBases settings")]
            public RaidableBaseSettings raidablebases_settings = new RaidableBaseSettings();
            public string ToJson() => JsonConvert.SerializeObject(this);
            public Dictionary<string, object> ToDictionary() => JsonConvert.DeserializeObject<Dictionary<string, object>>(ToJson());
        }
        public class RandomTraderAPI {
            [JsonProperty("CopyPaste file name to use")]
            public string copypaste_file_name = "CookingVending";
            [JsonProperty("Shop name")]
            public string shop_name = "A Random Restaurant";
            [JsonProperty("Shop purchase limit")]
            public int shop_purchase_limit = 0;
            [JsonProperty("How many random items from the list will be picked?")]
            public int shop_display_amount = 8;
            [JsonProperty("Minimum quantity of an item that the shop will stock")]
            public int min_stock_quantity = 1;
            [JsonProperty("Maximum quantity of an item that the shop will stock")]
            public int max_stock_quantity = 5;
            [JsonProperty("Minimum cost of an item")]
            public int min_cost = 10;
            [JsonProperty("Maximum cost of an item")]
            public int max_cost = 250;
        }
        public class SkillTreeNodeAPI {
            [JsonProperty("Name of the SkillTree node that you would like the cooking buff added to")]
            public string tree_name = "Cooking";
        }
        protected override void LoadDefaultConfig() {
            config = new Configuration {
                ingredients = DefaultFoodInfo, recipes = DefaultRecipeInfo, animals = new List<string>() {
                    "boar", "horse", "stag", "chicken", "wolf", "bear", "polarbear"
                }
                , cooking_entities = new List<string>() {
                    "bbq.deployed", "bbq.static", "campfire_static", "campfire", "bbq.campermodule"
                }
                , default_npc_items = default_marketnpcitems, loot_crate_whitelist = DefaultWhiteList, ingredient_bag_whitelist = DefaultWhitelistIngredientBag, raidablebases_settings = new RaidableBaseSettings() {
                    enabled = true, base_settings = DefaultRaidables, container_whitelist = DefaultRaidContainerWhitelist
                }
            }
            ;
        }
        Dictionary<int, RaidableBaseLootSettings> DefaultRaidables {
            get {
                return new Dictionary<int, RaidableBaseLootSettings>() {
                    [0]
                    = new RaidableBaseLootSettings(1, 2), [1] = new RaidableBaseLootSettings(1, 2), [2] = new RaidableBaseLootSettings(1, 2), [3] = new RaidableBaseLootSettings(1, 2)
                }
                ;
            }
        }
        public List<string> DefaultRaidContainerWhitelist {
            get {
                return new List<string>() {
                    "bbq.deployed", "campfire"
                }
                ;
            }
        }
        List<string> DefaultWhitelistIngredientBag {
            get {
                return new List<string>() {
                    "corn", "potato", "mushroom", "pumpkin", "blood"
                }
                ;
            }
        }
        List<string> DefaultWhiteList {
            get {
                return new List<string>() {
                    "assets/bundled/prefabs/radtown/crate_elite.prefab", "assets/bundled/prefabs/radtown/crate_normal.prefab", "assets/bundled/prefabs/radtown/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/crate_tools.prefab", "assets/bundled/prefabs/radtown/crate_underwater_advanced.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_elite.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_normal_2.prefab", "assets/bundled/prefabs/radtown/underwater_labs/crate_tools.prefab"
                }
                ;
            }
        }
        private MarketNPCItems default_marketnpcitems {
            get {
                return new MarketNPCItems() {
                    clothes = new List<MarketNPCItems.MarketNPCItemInfo>() {
                        new MarketNPCItems.MarketNPCItemInfo("burlap.shirt", 2040707769), new MarketNPCItems.MarketNPCItemInfo("burlap.trousers", 2040706598), new MarketNPCItems.MarketNPCItemInfo("hat.boonie", 2040709757)
                    }
                    , weapon = new MarketNPCItems.MarketNPCItemInfo("pitchfork", 0)
                }
                ;
            }
        }
        public class CanCookColourSettings {
            public string hasAllIngredientsCol = "13d600";
            public string hasSomeIngredientsCol = "d6b300";
            public string hasNoIngredientsCol = "FFFFFF";
        }
        public class MenuColourSettings {
            public string primaryCol = "0.7843137 0.4 0 1";
            public string secondaryCol = "0.5372549 0.282353 0 0.8823529";
            public string ingredientListTextCol = "1 1 1 1";
            public string marketIngredientTextCol = "1 1 1 1";
        }
        public class LootContainers {
            public float crate_basic = 0;
            public float crate_normal_2 = 0;
            public float crate_normal = 0;
            public float crate_elite = 0;
            public float crate_underwater_advanced = 0;
            public float crate_normal_2_food = 10;
            public float crate_food_1 = 2;
            public float crate_food_2 = 2;
            public float crate_medical = 1;
        }
        public class PowerTools {
            public bool allow_for_mining_ingredients;
            public bool allow_for_woodcutting_ingredients;
            public bool allow_for_skinning_ingredients;
        }
#region Link fixup
        [ConsoleCommand("getlinks")]
        void GetLinks(ConsoleSystem.Arg arg) {
            List<string> urls = Pool.GetList<string>();
            foreach (var link in DefaultRecipeInfo) {
                if (link.Value.imageURL.StartsWith("https://i") && !urls.Contains(link.Value.imageURL)) urls.Add(link.Value.imageURL);
            }
            foreach (var link in DefaultFoodInfo) {
                if (link.Value.imageURL.StartsWith("https://i") && !urls.Contains(link.Value.imageURL)) urls.Add(link.Value.imageURL);
            }
            foreach (var link in DefaultScaledFoodInfo) {
                if (link.Value.imageURL.StartsWith("https://i") && !urls.Contains(link.Value.imageURL)) urls.Add(link.Value.imageURL);
            }
            foreach (var link in DefaultScaledRecipeInfo) {
                if (link.Value.imageURL.StartsWith("https://i") && !urls.Contains(link.Value.imageURL)) urls.Add(link.Value.imageURL);
            }
            Pool.FreeList(ref urls);
        }
        List<string> OldLinks = new List<string>() {
            "https://imgur.com/mTWbETC.png", "https://i.imgur.com/E3C6KRW.png", "https://i.imgur.com/5OXfL4V.png", "https://i.imgur.com/zHFvwBD.png", "https://i.imgur.com/nwyfHvM.png", "https://i.imgur.com/8QI5nWh.png", "https://i.imgur.com/d08BiLj.png", "https://i.imgur.com/gUn3yeY.png", "https://i.imgur.com/cNQMpFy.png", "https://i.imgur.com/9AISBeM.png", "https://i.imgur.com/78dPdy9.png", "https://i.imgur.com/gM8lP71.png", "https://i.imgur.com/r1qgV1l.png", "https://i.imgur.com/uK7njy4.png", "https://i.imgur.com/dr4YYMq.png", "https://i.imgur.com/EKMkSWG.png", "https://i.imgur.com/KTxNRBy.png", "https://i.imgur.com/l7UVte1.png", "https://i.imgur.com/gZnSjiJ.png", "https://i.imgur.com/e78z387.png", "https://i.imgur.com/oljG6Rm.png", "https://i.imgur.com/Dy4PmSb.png", "https://i.imgur.com/9qucE3c.png", "https://imgur.com/F90xeFT.png", "https://i.imgur.com/IdStc1p.png", "https://i.imgur.com/gygcVSI.png", "https://imgur.com/QhBINSJ.png", "https://imgur.com/0WCtqkJ.png", "https://imgur.com/yYauuVw.png", "https://i.imgur.com/wV0T5IW.png", "https://i.imgur.com/Z74Xz92.png", "https://imgur.com/Ayf7tT6.png", "https://i.imgur.com/Xg5gpEE.png", "https://i.imgur.com/q6XDMKi.png", "https://i.imgur.com/Dtqs6eN.png", "https://i.imgur.com/YfW8tso.png", "https://i.imgur.com/ipXxr3u.png", "https://i.imgur.com/KkuM2zB.png", "https://i.imgur.com/Pv26mR9.png", "https://i.imgur.com/nDolgBA.png", "https://i.imgur.com/mbppJqr.png", "https://i.imgur.com/TAwzU9o.png", "https://i.imgur.com/M7LqI15.png", "https://imgur.com/MUw3cMi.png", "https://imgur.com/N94osPB.png", "https://i.imgur.com/3wJCgtw.png", "https://i.imgur.com/C8xFMyd.png", "https://imgur.com/lscnbEn.png", "https://i.imgur.com/NZ1MuIM.png", "https://i.imgur.com/z1AhaF5.png", "https://i.imgur.com/tJORP92.png", "https://i.imgur.com/8GxFASP.png", "https://i.imgur.com/yqusy4m.png", "https://i.imgur.com/sb0AQLM.png", "https://imgur.com/YavjSnT.png", "https://i.imgur.com/Z3BjWs3.png", "https://imgur.com/uDJXW6Y.png", "https://i.imgur.com/63Oel5J.png", "https://i.imgur.com/sBBj7us.png", "https://imgur.com/izJohr3.png", "https://i.imgur.com/V8SPIvT.png", "https://i.imgur.com/WgSZV4z.png", "https://i.imgur.com/UTJUCGl.png", "https://imgur.com/381B4k8.png", "https://imgur.com/ByyH1BF.png", "https://i.imgur.com/KDK1rp5.png", "https://imgur.com/h3606un.png", "https://imgur.com/ziIsCsQ.png", "https://imgur.com/JhU5mo5.png", "https://imgur.com/6rOck9z.png", "https://i.imgur.com/DxASYUZ.png", "https://imgur.com/2hmfWr9.png", "https://i.imgur.com/BDKPj18.png", "https://i.imgur.com/E7B9huB.png", "https://i.imgur.com/4NFJ6Il.png", "https://i.imgur.com/ALZAXFm.png", "https://imgur.com/pvKmGGt.png", "https://imgur.com/9s1f7P5.png", "https://imgur.com/j8KM0A0.png", "https://i.imgur.com/ih4t8Qy.png", "https://imgur.com/Xkvu3c9.png", "https://i.imgur.com/JHBf9FV.png", "https://imgur.com/3TMqFKG.png", "https://i.imgur.com/5EBkfTm.png", "https://i.imgur.com/ROeaZdk.png", "https://imgur.com/RTs5Gmb.png", "https://imgur.com/P7iA6IG.png", "https://i.imgur.com/OKmLpNk.png", "https://i.imgur.com/aM2aepU.png", "https://i.imgur.com/B6uXjre.png", "https://i.imgur.com/RghnC6N.png", "https://i.imgur.com/JPdL2mX.png", "https://i.imgur.com/Wsci61C.png", "https://i.imgur.com/f7gUqeY.png", "https://i.imgur.com/zRmjtbk.png", "https://i.imgur.com/7ZtbnWK.png", "https://i.imgur.com/8GZukGb.png", "https://i.imgur.com/ERQxIoW.png", "https://i.imgur.com/XARqGEJ.png", "https://i.imgur.com/knlAzGy.png", "https://i.imgur.com/LE62Su9.png", "https://i.imgur.com/OrDy8Wm.png", "https://imgur.com/qehw3ey.png", "https://i.imgur.com/8ZKWHfl.png", "https://i.imgur.com/t9HKWt4.png", "https://i.imgur.com/uRd5o4h.png", "https://i.imgur.com/Uy3lO77.png", "https://i.imgur.com/JaCrAuR.png", "https://imgur.com/Lxs4wGc.png", "https://i.imgur.com/c1fwZp9.png", "https://i.imgur.com/FvAB9iE.png", "https://i.imgur.com/RpuPEIG.png", "https://i.imgur.com/4CkjVQU.png", "https://i.imgur.com/yXlP6k0.png", "https://i.imgur.com/vJRkmpk.png", "https://i.imgur.com/7Fqi9RC.png", "https://i.imgur.com/guVH8ar.png", "https://i.imgur.com/YeHDJSe.png", "https://i.imgur.com/QBOgd0T.png", "https://i.imgur.com/SfsQzD7.png", "https://i.imgur.com/R5mnDgb.png", "https://i.imgur.com/girTdDe.png", "https://i.imgur.com/S2ZjhAQ.png", "https://i.imgur.com/KAkX3gp.png", "https://i.imgur.com/l1IPeBm.png", "https://i.imgur.com/i5v4z7G.png", "https://i.imgur.com/lzm5bmJ.png", "https://i.imgur.com/JDhX2GL.png", "https://i.imgur.com/3attc4N.png", "https://i.imgur.com/PDJYDIf.png", "https://i.imgur.com/p1anK0y.png", "https://i.imgur.com/XFrZotc.png", "https://i.imgur.com/llqBqul.png", "https://i.imgur.com/8drXg4K.png", "https://i.imgur.com/HoUE9T0.png", "https://i.imgur.com/NTdgiEJ.png", "https://i.imgur.com/elNlRFt.png", "https://i.imgur.com/4RV4vcl.png", "https://i.imgur.com/4lfeqax.png", "https://i.imgur.com/anyItRn.png", "https://i.imgur.com/wNxPLxh.png", "https://imgur.com/NG19Pz6.png", "https://imgur.com/4neAtKL.png", "https://imgur.com/DUIxnT5.png", "https://imgur.com/5yB2Nny.png"
        }
        ;
#endregion
        private Dictionary<string, IngredientInfo> DefaultFoodInfo {
            get {
                return new Dictionary<string, IngredientInfo> {
                    ["anti-radiation pills"]
                    = new IngredientInfo("antiradpills", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/antiradpills.png", 10, 5, 100, true, true), ["apple"] = new IngredientInfo("apple", 0, new GatheredFrom[] {
                        GatheredFrom.TreeAll
                    }
                    , 2, "https://rustlabs.com/img/items180/apple.png", 10, 5, 100, true, true), ["avocado"] = new IngredientInfo("apple", 2783687116, new GatheredFrom[] {
                        GatheredFrom.TreeArid
                    }
                    , 2, "https://www.dropbox.com/s/xsl8db0t81pen1v/avocado.png?dl=1", 10, 5, 100, true, true), ["bacon"] = new IngredientInfo("meat.boar", 2783390855, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
                    , 4, "https://www.dropbox.com/s/fhmxi3m6fn6v5wy/bacon.png?dl=1", 10, 5, 100, true, true), ["beans"] = new IngredientInfo("apple", 2783393845, new GatheredFrom[] {
                        GatheredFrom.Pumpkin
                    }
                    , 5, "https://www.dropbox.com/s/socrg1lhaejyuap/beans.png?dl=1", 10, 5, 100, true, true), ["bell peppers"] = new IngredientInfo("apple", 2783477900, new GatheredFrom[] {
                        GatheredFrom.Pumpkin
                    }
                    , 3, "https://www.dropbox.com/s/jl7hxix53jnzrvc/bell%20peppers.png?dl=1", 10, 5, 100, true, true), ["black pepper"] = new IngredientInfo("apple", 2572258054, new GatheredFrom[] {
                        GatheredFrom.Hemp
                    }
                    , 4, "https://www.dropbox.com/s/oqyq038l2crxqxo/black%20pepper.png?dl=1", 10, 5, 100, true, true), ["black pudding"] = new IngredientInfo("apple", 2572717763, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
                    , 0, "https://www.dropbox.com/s/f4ibcca5db46tid/black%20pudding.png?dl=1", 10, 5, 100, true, true), ["blood"] = new IngredientInfo("blood", 0, new GatheredFrom[] {
                        GatheredFrom.Animal
                    }
                    , 2, "https://rustlabs.com/img/items180/blood.png", 10, 5, 100, true, true), ["blue berry"] = new IngredientInfo("blue.berry", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/blue.berry.png", 10, 5, 100, true, true), ["bones"] = new IngredientInfo("bone.fragments", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/bone.fragments.png", 10, 5, 100, true, true), ["bone marrow"] = new IngredientInfo("apple", 2783568466, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
                    , 0, "https://www.dropbox.com/s/tuu7l122sifqct4/bone%20marrow.png?dl=1", 10, 5, 100, true, true), ["bread"] = new IngredientInfo("chocolate", 2783707218, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
                    , 0, "https://www.dropbox.com/s/hv69gxr82by3u0g/bread.png?dl=1", 10, 5, 100, true, true), ["butter"] = new IngredientInfo("apple", 2572178223, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
                    , 0, "https://www.dropbox.com/s/y3bu43ha94gq98w/butter.png?dl=1", 10, 5, 100, true, true), ["carrot"] = new IngredientInfo("apple", 2572178443, new GatheredFrom[] {
                        GatheredFrom.Potato
                    }
                    , 5, "https://www.dropbox.com/s/zx560entyyu0g29/carrot.png?dl=1", 10, 5, 100, true, true), ["cheese"] = new IngredientInfo("apple", 2572178709, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
                    , 0, "https://www.dropbox.com/s/df8a9ht5exrl76m/cheese.png?dl=1", 10, 5, 100, true, true), ["cherry"] = new IngredientInfo("black.raspberries", 2783227077, new GatheredFrom[] {
                        GatheredFrom.BerryBush
                    }
                    , 4, "https://www.dropbox.com/s/5b66jo6vnq2q637/cherry.png?dl=1", 10, 5, 100, true, true), ["chilli"] = new IngredientInfo("apple", 2572178926, new GatheredFrom[] {
                        GatheredFrom.Hemp
                    }
                    , 3, "https://www.dropbox.com/s/oy0zohrgzpw3tlb/chilli.png?dl=1", 10, 5, 100, true, true), ["chocolate bar"] = new IngredientInfo("chocolate", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/chocolate.png", 10, 5, 100, true, true), ["cinnamon"] = new IngredientInfo("apple", 2572179255, new GatheredFrom[] {
                        GatheredFrom.Hemp
                    }
                    , 3, "https://www.dropbox.com/s/tdw1n5mpajf1mgq/cinnamon.png?dl=1", 10, 5, 100, true, true), ["clay"] = new IngredientInfo("blood", 2783874234, new GatheredFrom[] {
                        GatheredFrom.NodeStone
                    }
                    , 0, "https://www.dropbox.com/s/mtfn803jl5dhtdf/clay.png?dl=1", 10, 5, 100, true, true), ["cloth"] = new IngredientInfo("cloth", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/cloth.png", 10, 5, 100, true, true), ["coconut"] = new IngredientInfo("apple", 2572179455, new GatheredFrom[] {
                        GatheredFrom.TreeArid
                    }
                    , 4, "https://www.dropbox.com/s/8zbupnosnwk4ks4/coconut.png?dl=1", 10, 5, 100, true, true), ["coffee beans"] = new IngredientInfo("apple", 2783395729, new GatheredFrom[] {
                        GatheredFrom.BerryBush
                    }
                    , 5, "https://www.dropbox.com/s/rpuwq6gqdqg0w65/coffee%20beans.png?dl=1", 10, 5, 100, true, true), ["cooking oil"] = new IngredientInfo("bottle.vodka", 2572179743, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
                    , 0, "https://www.dropbox.com/s/bpob5sfjanhfw4x/cooking%20oil.png?dl=1", 10, 5, 100, true, true), ["coriander"] = new IngredientInfo("apple", 2572180050, new GatheredFrom[] {
                        GatheredFrom.Hemp
                    }
                    , 3, "https://www.dropbox.com/s/ala53dgt4c67oak/coriander.png?dl=1", 10, 5, 100, true, true), ["corn"] = new IngredientInfo("corn", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/corn.png", 10, 5, 100, true, true), ["corn flour"] = new IngredientInfo("apple", 2572180263, new GatheredFrom[] {
                        GatheredFrom.Corn
                    }
                    , 3, "https://www.dropbox.com/s/e49fu4fng9a69e6/corn%20flour.png?dl=1", 10, 5, 100, true, true), ["cucumber"] = new IngredientInfo("apple", 2783230903, new GatheredFrom[] {
                        GatheredFrom.Pumpkin
                    }
                    , 4, "https://www.dropbox.com/s/6q44exs6roo2d5q/cucumber.png?dl=1", 10, 5, 100, true, true), ["cumin"] = new IngredientInfo("apple", 2573473212, new GatheredFrom[] {
                        GatheredFrom.Hemp
                    }
                    , 3, "https://www.dropbox.com/s/bxpixoh337ngo1k/cumin.png?dl=1", 10, 5, 100, true, true), ["egg"] = new IngredientInfo("apple", 2572180411, new GatheredFrom[] {
                        GatheredFrom.Chicken
                    }
                    , 8, "https://www.dropbox.com/s/6zgwc6ja9bodc51/egg.png?dl=1", 10, 5, 100, true, true), ["fish eyeball"] = new IngredientInfo("apple", 2572180586, new GatheredFrom[] {
                        GatheredFrom.Gutting
                    }
                    , 3, "https://www.dropbox.com/s/b2jmewpndgwg3cm/fish%20eyeball.png?dl=1", 10, 5, 100, true, true), ["fish oil"] = new IngredientInfo("bottle.vodka", 2572180797, new GatheredFrom[] {
                        GatheredFrom.Gutting
                    }
                    , 10, "https://www.dropbox.com/s/br2i9l55dsbfoyn/fish%20oil.png?dl=1", 10, 5, 100, true, true), ["garlic"] = new IngredientInfo("apple", 2572181000, new GatheredFrom[] {
                        GatheredFrom.Potato
                    }
                    , 3, "https://www.dropbox.com/s/ti5kvcewf25tnek/garlic.png?dl=1", 10, 5, 100, true, true), ["ginger"] = new IngredientInfo("apple", 2572181234, new GatheredFrom[] {
                        GatheredFrom.Potato
                    }
                    , 3, "https://www.dropbox.com/s/rs4ub4rdqcd6zxx/ginger.png?dl=1", 10, 5, 100, true, true), ["glass"] = new IngredientInfo("metal.refined", 2792687818, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
                    , 0, "https://www.dropbox.com/s/rb68i1kf67kllo2/glass.png?dl=1", 10, 5, 100, true, true), ["grapes"] = new IngredientInfo("apple", 2783247814, new GatheredFrom[] {
                        GatheredFrom.BerryBush
                    }
                    , 6, "https://www.dropbox.com/s/db8oynzrt95o4hz/grapes.png?dl=1", 10, 5, 100, true, true), ["green berry"] = new IngredientInfo("green.berry", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/green.berry.png", 10, 5, 100, true, true), ["high quality metal"] = new IngredientInfo("metal.refined", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/metal.refined.png", 10, 5, 100, true, true), ["honey"] = new IngredientInfo("apple", 2783512379, new GatheredFrom[] {
                        GatheredFrom.TreeAll
                    }
                    , 2, "https://www.dropbox.com/s/pxhqjx18y36jzl1/honey.png?dl=1", 10, 5, 100, true, true), ["ice"] = new IngredientInfo("apple", 2783226164, new GatheredFrom[] {
                        GatheredFrom.NodeArctic, GatheredFrom.TreeArctic
                    }
                    , 4, "https://www.dropbox.com/s/y7yccff913rh818/ice.png?dl=1", 10, 5, 100, true, true), ["intestines"] = new IngredientInfo("chicken.spoiled", 2572181484, new GatheredFrom[] {
                        GatheredFrom.Bear
                    }
                    , 4, "https://www.dropbox.com/s/1sm078b674m7c5m/intestines.png?dl=1", 10, 5, 100, true, true), ["kiwi"] = new IngredientInfo("apple", 2783217141, new GatheredFrom[] {
                        GatheredFrom.BerryBush
                    }
                    , 4, "https://www.dropbox.com/s/9rd4uv620hb5in0/kiwi.png?dl=1", 10, 5, 100, true, true), ["lemon"] = new IngredientInfo("apple", 2783236966, new GatheredFrom[] {
                        GatheredFrom.TreeAll
                    }
                    , 4, "https://www.dropbox.com/s/ij3yt1ixyw458pv/lemon.png?dl=1", 10, 5, 100, true, true), ["lettuce"] = new IngredientInfo("apple", 2783689317, new GatheredFrom[] {
                        GatheredFrom.Pumpkin
                    }
                    , 4, "https://www.dropbox.com/s/35llho6byc0iz1y/lettuce.png?dl=1", 10, 5, 100, true, true), ["lime"] = new IngredientInfo("apple", 2586765945, new GatheredFrom[] {
                        GatheredFrom.TreeAll
                    }
                    , 5, "https://www.dropbox.com/s/o0ulo40pcxfzkkm/lime.png?dl=1", 10, 5, 100, true, true), ["mango"] = new IngredientInfo("apple", 2783246717, new GatheredFrom[] {
                        GatheredFrom.TreeArid
                    }
                    , 2, "https://www.dropbox.com/s/vvwedg1r76w35xu/mango.png?dl=1", 10, 5, 100, true, true), ["maple syrup"] = new IngredientInfo("apple", 2572181647, new GatheredFrom[] {
                        GatheredFrom.TreeAll
                    }
                    , 3, "https://www.dropbox.com/s/4u3omv2tq4l8uga/maple%20syrup.png?dl=1", 10, 5, 100, true, true), ["mash potato"] = new IngredientInfo("apple", 2783374825, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
                    , 4, "https://www.dropbox.com/s/vcaykiul3hrjsda/mash%20potato.png?dl=1", 10, 5, 100, true, true), ["mayonnaise"] = new IngredientInfo("apple", 2783690573, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
                    , 4, "https://www.dropbox.com/s/htt9oary7en4xvf/mayonnaise.png?dl=1", 10, 5, 100, true, true), ["milk"] = new IngredientInfo("apple", 2572181796, new GatheredFrom[] {
                        GatheredFrom.Animal
                    }
                    , 5, "https://www.dropbox.com/s/omlixznpymefgck/milk.png?dl=1", 10, 5, 100, true, true), ["mint"] = new IngredientInfo("apple", 2783233617, new GatheredFrom[] {
                        GatheredFrom.BerryBush
                    }
                    , 4, "https://www.dropbox.com/s/ezrk3pg3p704mcq/mint.png?dl=1", 10, 5, 100, true, true), ["mug"] = new IngredientInfo("metal.refined", 2783395019, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
                    , 0, "https://www.dropbox.com/s/2tvg75onp1ndjim/mug.png?dl=1", 10, 5, 100, true, true), ["mushroom"] = new IngredientInfo("mushroom", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/mushroom.png", 10, 5, 100, true, true), ["nutmeg"] = new IngredientInfo("apple", 2572181937, new GatheredFrom[] {
                        GatheredFrom.Hemp
                    }
                    , 3, "https://www.dropbox.com/s/u2gopxmjtuq3188/nutmeg.png?dl=1", 10, 5, 100, true, true), ["offal"] = new IngredientInfo("chicken.spoiled", 2572182127, new GatheredFrom[] {
                        GatheredFrom.Animal
                    }
                    , 3, "https://www.dropbox.com/s/e9dp9ht0o3rrhdu/offal.png?dl=1", 10, 5, 100, true, true), ["onion"] = new IngredientInfo("apple", 2572182291, new GatheredFrom[] {
                        GatheredFrom.Potato
                    }
                    , 3, "https://www.dropbox.com/s/e1ykhk8m1ot78ok/onion.png?dl=1", 10, 5, 100, true, true), ["orange"] = new IngredientInfo("apple", 2783212349, new GatheredFrom[] {
                        GatheredFrom.TreeAll
                    }
                    , 4, "https://www.dropbox.com/s/4wovczyad47mkbz/orange.png?dl=1", 10, 5, 100, true, true), ["oregano"] = new IngredientInfo("apple", 2572182500, new GatheredFrom[] {
                        GatheredFrom.Hemp
                    }
                    , 3, "https://www.dropbox.com/s/hohliwhk0bz849t/oregano.png?dl=1", 10, 5, 100, true, true), ["parsley"] = new IngredientInfo("apple", 2572182657, new GatheredFrom[] {
                        GatheredFrom.Hemp
                    }
                    , 3, "https://www.dropbox.com/s/prg23sefty3e5uz/parsley.png?dl=1", 10, 5, 100, true, true), ["pineapple"] = new IngredientInfo("apple", 2783245697, new GatheredFrom[] {
                        GatheredFrom.BerryBush
                    }
                    , 2, "https://www.dropbox.com/s/9r7pvgiq2s9knxv/pineapple.png?dl=1", 10, 5, 100, true, true), ["potato"] = new IngredientInfo("potato", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/potato.png", 10, 5, 100, true, true), ["pumpkin"] = new IngredientInfo("pumpkin", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/pumpkin.png", 10, 5, 100, true, true), ["raw bear meat"] = new IngredientInfo("bearmeat", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/bearmeat.png", 10, 5, 100, true, true), ["raw chicken breast"] = new IngredientInfo("chicken.raw", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/chicken.raw.png", 10, 5, 100, true, true), ["raw deer meat"] = new IngredientInfo("deermeat.raw", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/deermeat.raw.png", 10, 5, 100, true, true), ["raw fish"] = new IngredientInfo("fish.raw", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/fish.raw.png", 10, 5, 100, true, true), ["raw pork"] = new IngredientInfo("meat.boar", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/meat.boar.png", 10, 5, 100, true, true), ["raw wolf meat"] = new IngredientInfo("wolfmeat.raw", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/wolfmeat.raw.png", 10, 5, 100, true, true), ["red berry"] = new IngredientInfo("red.berry", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/red.berry.png", 10, 5, 100, true, true), ["rice"] = new IngredientInfo("apple", 2572182801, new GatheredFrom[] {
                        GatheredFrom.Corn
                    }
                    , 3, "https://www.dropbox.com/s/vdi980ee9ig8k4r/rice.png?dl=1", 10, 5, 100, true, true), ["salmon"] = new IngredientInfo("fish.salmon", 0, new GatheredFrom[] {
                        GatheredFrom.Default
                    }
                    , 0, "https://rustlabs.com/img/items180/fish.salmon.png", 10, 5, 100, true, true), ["salt"] = new IngredientInfo("apple", 2572257907, new GatheredFrom[] {
                        GatheredFrom.CollectableNode, GatheredFrom.NodeArid
                    }
                    , 4, "https://www.dropbox.com/s/daf64zoviju145b/salt.png?dl=1", 10, 5, 100, true, true), ["sand"] = new IngredientInfo("coal", 2783380059, new GatheredFrom[] {
                        GatheredFrom.NodeArid
                    }
                    , 4, "https://www.dropbox.com/s/n5o097qp9d6wbn3/sand.png?dl=1", 10, 5, 100, true, true), ["sausage"] = new IngredientInfo("apple", 2572182986, new GatheredFrom[] {
                        GatheredFrom.Crafted
                    }
         
// ... [Code preview truncated due to length. Full source in attached file] ...

Автор
15FPS
Скачиваний
0
Просмотры
1
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок

Другие ресурсы пользователя 15FPS

Сверху