Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of Lareins Core v1.0.0
plugins\Lareins_Core\Lareins_Core.dll
Decompiled 2 hours agousing System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Text; using BepInEx; using BepInEx.Configuration; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("Lareins_Core")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Lareins_Core")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("11263619-5dbf-4c60-9b3d-5824f8d54f35")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace Lareins_Core; [BepInPlugin("com.lareins.core", "Lareins_Core", "1.2.1")] public class CorePlugin : BaseUnityPlugin { public class AyarKaydi { public string ModulAdi; public string Etiket; public string Aciklama; public ConfigEntryBase Config; public float MinDeger; public float MaxDeger; } public const string ModGUID = "com.lareins.core"; public const string ModName = "Lareins_Core"; public const string ModVersion = "1.2.1"; public static CorePlugin Instance; public static ConfigEntry<KeyCode> MenuTusu; public static bool HariciPencereAcik = false; private static bool menuAcik = false; private static int seciliSekme = 0; private static Vector2 kaydirmaPozisyonu = Vector2.zero; private static AyarKaydi bekleyenTusKaydi = null; private static Texture2D arkaPlanDoku; private static Texture2D baslikDoku; private static Texture2D sekmeAktifDoku; private static Texture2D sekmePasifDoku; private static readonly List<AyarKaydi> tumAyarlar = new List<AyarKaydi>(); private void Awake() { //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0050: Expected O, but got Unknown Instance = this; MenuTusu = ((BaseUnityPlugin)this).Config.Bind<KeyCode>("Genel", "MenuTusu", (KeyCode)282, "Lareins Mod Ayar Penceresini acip kapatma tusu"); AyarEkle("Core Ayarlari", "Ayar Menusu Tusu", "Oyun ici ayar penceresini acar/kapatir.", MenuTusu); Harmony val = new Harmony("com.lareins.core"); val.PatchAll(typeof(CorePlugin)); val.PatchAll(typeof(EsyaKategorileri)); } public static bool HerhangiPencereAcikMi() { return menuAcik || HariciPencereAcik; } [HarmonyPatch(typeof(GameCamera), "UpdateMouseCapture")] [HarmonyPrefix] private static bool FareKilidiniAc() { if (HerhangiPencereAcikMi()) { Cursor.lockState = (CursorLockMode)0; Cursor.visible = true; return false; } return true; } [HarmonyPatch(typeof(PlayerController), "FixedUpdate")] [HarmonyPrefix] private static bool KarakterKontrolunuDurdur() { return !HerhangiPencereAcikMi(); } [HarmonyPatch(typeof(Player), "SetMouseLook")] [HarmonyPrefix] private static bool KameraDonusunuDurdur() { return !HerhangiPencereAcikMi(); } public static void AyarEkle(string modulAdi, string etiket, string aciklama, ConfigEntry<bool> config) { tumAyarlar.Add(new AyarKaydi { ModulAdi = modulAdi, Etiket = etiket, Aciklama = aciklama, Config = (ConfigEntryBase)(object)config }); } public static void AyarEkle(string modulAdi, string etiket, string aciklama, ConfigEntry<KeyCode> config) { tumAyarlar.Add(new AyarKaydi { ModulAdi = modulAdi, Etiket = etiket, Aciklama = aciklama, Config = (ConfigEntryBase)(object)config }); } public static void AyarEkle(string modulAdi, string etiket, string aciklama, ConfigEntry<float> config, float min, float max) { tumAyarlar.Add(new AyarKaydi { ModulAdi = modulAdi, Etiket = etiket, Aciklama = aciklama, Config = (ConfigEntryBase)(object)config, MinDeger = min, MaxDeger = max }); } public static void AyarEkle(string modulAdi, string etiket, string aciklama, ConfigEntry<int> config, int min, int max) { tumAyarlar.Add(new AyarKaydi { ModulAdi = modulAdi, Etiket = etiket, Aciklama = aciklama, Config = (ConfigEntryBase)(object)config, MinDeger = min, MaxDeger = max }); } private void Update() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_007f: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Invalid comparison between Unknown and I4 //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_0093: Invalid comparison between Unknown and I4 //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: Invalid comparison between Unknown and I4 //IL_00d2: Unknown result type (might be due to invalid IL or missing references) if (Input.GetKeyDown(MenuTusu.Value)) { if (bekleyenTusKaydi != null) { bekleyenTusKaydi = null; return; } menuAcik = !menuAcik; } if (!menuAcik || bekleyenTusKaydi == null || !Input.anyKeyDown) { return; } foreach (KeyCode value in Enum.GetValues(typeof(KeyCode))) { if ((int)value == 0 || (int)value == 323 || (int)value == 324 || !Input.GetKeyDown(value)) { continue; } if ((int)value == 27) { bekleyenTusKaydi = null; break; } ((ConfigEntry<KeyCode>)(object)bekleyenTusKaydi.Config).Value = value; bekleyenTusKaydi = null; break; } } private void OnGUI() { //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_010d: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0135: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Expected O, but got Unknown //IL_015d: Unknown result type (might be due to invalid IL or missing references) //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_01ae: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Unknown result type (might be due to invalid IL or missing references) //IL_026c: Unknown result type (might be due to invalid IL or missing references) //IL_0339: Unknown result type (might be due to invalid IL or missing references) //IL_03c9: Unknown result type (might be due to invalid IL or missing references) //IL_03cb: Unknown result type (might be due to invalid IL or missing references) //IL_03f2: Unknown result type (might be due to invalid IL or missing references) //IL_03f7: Unknown result type (might be due to invalid IL or missing references) //IL_03fc: Unknown result type (might be due to invalid IL or missing references) //IL_040b: Unknown result type (might be due to invalid IL or missing references) //IL_0410: Unknown result type (might be due to invalid IL or missing references) //IL_0419: Unknown result type (might be due to invalid IL or missing references) //IL_0423: Expected O, but got Unknown //IL_042a: Unknown result type (might be due to invalid IL or missing references) //IL_043f: Unknown result type (might be due to invalid IL or missing references) //IL_0444: Unknown result type (might be due to invalid IL or missing references) //IL_044f: Expected O, but got Unknown //IL_0465: Unknown result type (might be due to invalid IL or missing references) //IL_0293: Unknown result type (might be due to invalid IL or missing references) //IL_0298: Unknown result type (might be due to invalid IL or missing references) //IL_02a1: Unknown result type (might be due to invalid IL or missing references) //IL_02a9: Unknown result type (might be due to invalid IL or missing references) //IL_02b3: Expected O, but got Unknown //IL_02ca: Unknown result type (might be due to invalid IL or missing references) //IL_02c3: Unknown result type (might be due to invalid IL or missing references) //IL_049d: Unknown result type (might be due to invalid IL or missing references) //IL_04c8: Unknown result type (might be due to invalid IL or missing references) //IL_02d5: Unknown result type (might be due to invalid IL or missing references) //IL_0514: Unknown result type (might be due to invalid IL or missing references) //IL_0582: Unknown result type (might be due to invalid IL or missing references) //IL_05f8: Unknown result type (might be due to invalid IL or missing references) //IL_0630: Unknown result type (might be due to invalid IL or missing references) //IL_058f: Unknown result type (might be due to invalid IL or missing references) //IL_06b9: Unknown result type (might be due to invalid IL or missing references) //IL_06f1: Unknown result type (might be due to invalid IL or missing references) if (!menuAcik) { return; } GUI.depth = -100; if ((Object)(object)arkaPlanDoku == (Object)null) { arkaPlanDoku = DokuOlustur(new Color(0.1f, 0.11f, 0.14f, 0.96f)); baslikDoku = DokuOlustur(new Color(0.16f, 0.22f, 0.32f, 1f)); sekmeAktifDoku = DokuOlustur(new Color(0.85f, 0.55f, 0.15f, 1f)); sekmePasifDoku = DokuOlustur(new Color(0.18f, 0.2f, 0.25f, 1f)); } float num = 760f; float num2 = 530f; float num3 = ((float)Screen.width - num) / 2f; float num4 = ((float)Screen.height - num2) / 2f; GUI.DrawTexture(new Rect(num3, num4, num, num2), (Texture)(object)arkaPlanDoku); GUI.DrawTexture(new Rect(num3, num4, num, 42f), (Texture)(object)baslikDoku); GUIStyle val = new GUIStyle(GUI.skin.label) { fontSize = 16, fontStyle = (FontStyle)1, alignment = (TextAnchor)3 }; val.normal.textColor = new Color(1f, 0.85f, 0.45f); GUI.Label(new Rect(num3 + 15f, num4 + 5f, 550f, 32f), "LAREINS MOD PAKETI - KONTROL MERKEZI (F1)", val); if (GUI.Button(new Rect(num3 + num - 85f, num4 + 7f, 70f, 28f), "KAPAT")) { menuAcik = false; bekleyenTusKaydi = null; } List<string> list = tumAyarlar.Select((AyarKaydi a) => a.ModulAdi).Distinct().ToList(); if (list.Count == 0) { return; } if (seciliSekme >= list.Count) { seciliSekme = 0; } float num5 = 210f; Rect val2 = default(Rect); for (int num6 = 0; num6 < list.Count; num6++) { ((Rect)(ref val2))..ctor(num3 + 10f, num4 + 52f + (float)(num6 * 32), num5, 28f); GUI.DrawTexture(val2, (Texture)(object)((num6 == seciliSekme) ? sekmeAktifDoku : sekmePasifDoku)); GUIStyle val3 = new GUIStyle(GUI.skin.label) { fontSize = 12, fontStyle = (FontStyle)1, alignment = (TextAnchor)3 }; val3.normal.textColor = ((num6 == seciliSekme) ? Color.black : Color.white); if (GUI.Button(val2, " " + list[num6], val3)) { seciliSekme = num6; bekleyenTusKaydi = null; } } if (GUI.Button(new Rect(num3 + 10f, num4 + num2 - 40f, num5, 30f), "Esya Listesini Yenile")) { EsyaKategorileri.DosyadanYukle(); Player localPlayer = Player.m_localPlayer; if (localPlayer != null) { ((Character)localPlayer).Message((MessageType)2, "Lareins_EsyaListesi.txt dosyadan yenilendi!", 0, (Sprite)null, false); } } string aktifModul = list[seciliSekme]; List<AyarKaydi> list2 = tumAyarlar.Where((AyarKaydi a) => a.ModulAdi == aktifModul).ToList(); Rect val4 = default(Rect); ((Rect)(ref val4))..ctor(num3 + num5 + 25f, num4 + 52f, num - num5 - 35f, num2 - 65f); kaydirmaPozisyonu = GUI.BeginScrollView(val4, kaydirmaPozisyonu, new Rect(0f, 0f, ((Rect)(ref val4)).width - 20f, (float)(list2.Count * 68))); GUIStyle val5 = new GUIStyle(GUI.skin.label) { fontSize = 13, fontStyle = (FontStyle)1 }; val5.normal.textColor = Color.white; GUIStyle val6 = new GUIStyle(GUI.skin.label) { fontSize = 11 }; val6.normal.textColor = new Color(0.75f, 0.78f, 0.82f); Rect val7 = default(Rect); for (int num7 = 0; num7 < list2.Count; num7++) { AyarKaydi ayarKaydi = list2[num7]; float num8 = num7 * 68; GUI.Label(new Rect(5f, num8, 320f, 22f), ayarKaydi.Etiket, val5); GUI.Label(new Rect(5f, num8 + 20f, 320f, 36f), ayarKaydi.Aciklama, val6); ((Rect)(ref val7))..ctor(335f, num8 + 12f, 165f, 28f); if (ayarKaydi.Config is ConfigEntry<bool> val8) { bool flag = GUI.Toggle(val7, val8.Value, val8.Value ? " AKTIF" : " KAPALI"); if (flag != val8.Value) { val8.Value = flag; } } else if (ayarKaydi.Config is ConfigEntry<KeyCode> val9) { bool flag2 = bekleyenTusKaydi == ayarKaydi; if (GUI.Button(val7, flag2 ? "[ TUSA BASIN... ]" : $"[ {val9.Value} ]")) { bekleyenTusKaydi = (flag2 ? null : ayarKaydi); } } else if (ayarKaydi.Config is ConfigEntry<float> val10) { GUI.Label(new Rect(335f, num8 - 2f, 165f, 20f), $"Deger: {val10.Value:0.0000}"); float num9 = GUI.HorizontalSlider(new Rect(335f, num8 + 20f, 165f, 20f), val10.Value, ayarKaydi.MinDeger, ayarKaydi.MaxDeger); if (Mathf.Abs(num9 - val10.Value) > 0.0001f) { val10.Value = (float)Math.Round(num9, 4); } } else if (ayarKaydi.Config is ConfigEntry<int> val11) { GUI.Label(new Rect(335f, num8 - 2f, 165f, 20f), $"Deger: {val11.Value}"); int num10 = Mathf.RoundToInt(GUI.HorizontalSlider(new Rect(335f, num8 + 20f, 165f, 20f), (float)val11.Value, ayarKaydi.MinDeger, ayarKaydi.MaxDeger)); if (num10 != val11.Value) { val11.Value = num10; } } } GUI.EndScrollView(); } private static Texture2D DokuOlustur(Color renk) { //IL_0003: Unknown result type (might be due to invalid IL or missing references) //IL_0009: Expected O, but got Unknown //IL_000c: Unknown result type (might be due to invalid IL or missing references) Texture2D val = new Texture2D(1, 1); val.SetPixel(0, 0, renk); val.Apply(); return val; } } public static class EsyaKategorileri { private static readonly Dictionary<string, int> TamSozluk = new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase); private static string DosyaYolu => Path.Combine(Paths.ConfigPath, "Lareins_EsyaListesi.txt"); [HarmonyPatch(typeof(ObjectDB), "Awake")] [HarmonyPostfix] private static void TumEsyalariTanimlaVeDosyala(ObjectDB __instance) { if ((Object)(object)__instance == (Object)null || __instance.m_items == null || __instance.m_items.Count == 0) { return; } TamSozluk.Clear(); Dictionary<int, List<string>> dictionary = new Dictionary<int, List<string>>(); for (int i = 1; i <= 15; i++) { dictionary[i] = new List<string>(); } foreach (GameObject item in __instance.m_items) { if ((Object)(object)item == (Object)null) { continue; } ItemDrop component = item.GetComponent<ItemDrop>(); if (!((Object)(object)component == (Object)null) && component.m_itemData != null && component.m_itemData.m_shared != null) { string name = ((Object)item).name; int num = VarsayilanKategoriHesapla(name, component.m_itemData); TamSozluk[name] = num; if (!string.IsNullOrEmpty(component.m_itemData.m_shared.m_name)) { TamSozluk[component.m_itemData.m_shared.m_name] = num; } dictionary[num].Add($"{name} = {num}"); } } if (!File.Exists(DosyaYolu)) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendLine("# LAREINS AKILLI SANDIK - TAM ESYA SOZLUGU (670+ ESYA)"); stringBuilder.AppendLine("# Herhangi bir esyanin sandik numarasini (1-15) degistirip oyunda F1 -> 'Esya Listesini Yenile' tusuna basabilirsiniz."); stringBuilder.AppendLine(); for (int j = 1; j <= 15; j++) { stringBuilder.AppendLine("### " + KategoriAdi(j) + " ###"); foreach (string item2 in dictionary[j].OrderBy((string x) => x)) { stringBuilder.AppendLine(item2); } stringBuilder.AppendLine(); } File.WriteAllText(DosyaYolu, stringBuilder.ToString(), Encoding.UTF8); } else { DosyadanYukle(); } } public static void DosyadanYukle() { if (!File.Exists(DosyaYolu)) { return; } string[] array = File.ReadAllLines(DosyaYolu, Encoding.UTF8); foreach (string text in array) { string text2 = text.Trim(); if (string.IsNullOrEmpty(text2) || text2.StartsWith("#")) { continue; } int num = text2.IndexOf('='); if (num > 0) { string key = text2.Substring(0, num).Trim(); string s = text2.Substring(num + 1).Split(new char[1] { '#' })[0].Trim(); if (int.TryParse(s, out var result) && result >= 1 && result <= 15) { TamSozluk[key] = result; } } } } public static int KategoriBul(ItemData item) { if (item == null || item.m_shared == null) { return 5; } if ((Object)(object)item.m_dropPrefab != (Object)null && TamSozluk.TryGetValue(((Object)item.m_dropPrefab).name, out var value)) { return value; } if (!string.IsNullOrEmpty(item.m_shared.m_name) && TamSozluk.TryGetValue(item.m_shared.m_name, out var value2)) { return value2; } return VarsayilanKategoriHesapla(((Object)(object)item.m_dropPrefab != (Object)null) ? ((Object)item.m_dropPrefab).name : "", item); } private static int VarsayilanKategoriHesapla(string prefabAdi, ItemData item) { //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Invalid comparison between Unknown and I4 //IL_0357: Unknown result type (might be due to invalid IL or missing references) //IL_0359: Invalid comparison between Unknown and I4 //IL_035e: Unknown result type (might be due to invalid IL or missing references) //IL_0361: Invalid comparison between Unknown and I4 //IL_0366: Unknown result type (might be due to invalid IL or missing references) //IL_0369: Invalid comparison between Unknown and I4 //IL_036e: Unknown result type (might be due to invalid IL or missing references) //IL_0370: Invalid comparison between Unknown and I4 //IL_0375: Unknown result type (might be due to invalid IL or missing references) //IL_0377: Invalid comparison between Unknown and I4 //IL_037c: Unknown result type (might be due to invalid IL or missing references) //IL_037e: Invalid comparison between Unknown and I4 //IL_0383: Unknown result type (might be due to invalid IL or missing references) //IL_0385: Invalid comparison between Unknown and I4 //IL_038a: Unknown result type (might be due to invalid IL or missing references) //IL_038d: Invalid comparison between Unknown and I4 //IL_0392: Unknown result type (might be due to invalid IL or missing references) //IL_0395: Invalid comparison between Unknown and I4 //IL_039a: Unknown result type (might be due to invalid IL or missing references) //IL_039d: Invalid comparison between Unknown and I4 //IL_03a2: Unknown result type (might be due to invalid IL or missing references) //IL_03a5: Invalid comparison between Unknown and I4 //IL_03aa: Unknown result type (might be due to invalid IL or missing references) //IL_03ad: Invalid comparison between Unknown and I4 //IL_03b2: Unknown result type (might be due to invalid IL or missing references) //IL_03b5: Invalid comparison between Unknown and I4 //IL_0c00: Unknown result type (might be due to invalid IL or missing references) //IL_0c02: Invalid comparison between Unknown and I4 string text = (prefabAdi ?? "").ToLowerInvariant(); string text2 = (item.m_shared.m_name ?? "").ToLowerInvariant(); string text3 = text + " " + text2; ItemType itemType = item.m_shared.m_itemType; if ((int)itemType == 13 || text3.Contains("trophy")) { return 12; } if (text3.Contains("surtlingcore") || text3.Contains("surtling_core") || text3.Contains("blackcore") || text3.Contains("black_core") || text3.Contains("frostcore") || text3.Contains("moltencore") || text3.Contains("shieldcore") || text3.Contains("dragontear") || text3.Contains("dragon_tear") || text3.Contains("ancientseed") || text3.Contains("ancient_seed") || text3.Contains("witheredbone") || text3.Contains("withered_bone") || text3.Contains("cryptkey") || text3.Contains("crypt_key") || text3.Contains("wishbone") || text3.Contains("totem") || text3.Contains("dvergrkey") || text3.Contains("dvergr_key") || text3.Contains("bellfragment") || text3.Contains("bell_fragment") || text3.Contains("hardantler") || text3.Contains("hard_antler") || text3.Contains("dragonegg") || text3.Contains("dragon_egg") || text3.Contains("softtissue") || text3.Contains("soft_tissue") || text2 == "$item_eitr" || text == "eitr" || text3.Contains("dvergrneedle") || text3.Contains("mechanicalspring") || text3.Contains("celestialfeather") || text == "bell" || text3.Contains("faderdrop") || text3.Contains("faderember") || text3.Contains("queendrop") || text3.Contains("yagluthdrop") || text3.Contains("frozenkingdrop") || text3.Contains("bloodgoldkey") || text == "wisp" || text3.Contains("dyrnwyn") || text3.Contains("runetile") || text3.Contains("vegvisirshard") || text3.Contains("ectoplasm") || text3.Contains("voidplasm") || text3.Contains("orbfrostfire") || text3.Contains("orbthunderblood") || text3.Contains("frozenfuel")) { return 6; } if ((int)itemType == 3 || (int)itemType == 14 || (int)itemType == 22 || (int)itemType == 4 || (int)itemType == 5 || (int)itemType == 6 || (int)itemType == 7 || (int)itemType == 11 || (int)itemType == 17 || (int)itemType == 18 || (int)itemType == 19 || (int)itemType == 9 || (int)itemType == 15 || text3.Contains("bomb") || text3.Contains("bait") || text3.Contains("fishingrod") || text3.Contains("servingtray") || text3.Contains("turretbolt") || text3.Contains("catapult_ammo") || text3.Contains("trinket") || text3.Contains("saddle") || text3.Contains("glowworm") || text.StartsWith("beard") || (text.StartsWith("hair") && !text.Contains("bundle"))) { return 11; } if ((text3.Contains("seed") && !text3.Contains("ancient")) || text3.Contains("acorn") || text3.Contains("cone") || text3.Contains("sapling")) { return 10; } if (text3.Contains("coin") || text == "gold" || text3.Contains("ruby") || text3.Contains("amber") || text3.Contains("pearl") || text3.Contains("necklace") || text3.Contains("gemstone") || text3.Contains("hildir") || text3.Contains("ymir") || text3.Contains("crown") || text3.Contains("goblet") || text3.Contains("yule") || text3.Contains("jackoturnip") || text3.Contains("barberkit")) { return 15; } if (text3.Contains("nail") || text3.Contains("chain") || text3.Contains("resin") || text3.Contains("tar") || text3.Contains("thread") || text3.Contains("jute") || text3.Contains("mold") || text3.Contains("upgrader") || text3.Contains("candlewick") || text3.Contains("barrelrings") || text3.Contains("ceramicplate") || text3.Contains("scythehandle") || text3.Contains("fireworks") || text3.Contains("axehead") || text == "hook" || text == "ironpit" || text3.Contains("pot_shard") || text3.Contains("blobvial")) { return 14; } if ((text3.Contains("mead") && !text3.Contains("meadows")) || text3.Contains("potion") || text3.Contains("wine") || text3.Contains("lingondricka") || text3.Contains("healthupgrade") || text3.Contains("staminaupgrade")) { return 13; } if (!text3.Contains("uncooked") && !text3.Contains("dough") && (text3.Contains("cooked") || text3.Contains("stew") || text3.Contains("soup") || text3.Contains("pie") || text3.Contains("bread") || text3.Contains("jerky") || text3.Contains("jam") || text3.Contains("pudding") || text3.Contains("salad") || text3.Contains("wrap") || text3.Contains("omelette") || text3.Contains("platter") || text3.Contains("roasted") || text3.Contains("mash") || text3.Contains("feast") || text3.Contains("aspic") || text3.Contains("supreme") || text3.Contains("sausages") || text3.Contains("bloodpudding") || text3.Contains("eyescream") || text3.Contains("shocklatesmoothie") || text3.Contains("mincemeatsauce") || text3.Contains("porridge") || text3.Contains("stuffedshroom") || text3.Contains("grilled") || text3.Contains("skewer") || text3.Contains("kebab") || text3.Contains("smoked") || text3.Contains("pancake") || text3.Contains("cupcake") || text3.Contains("chips") || text3.Contains("marmalade") || text3.Contains("bakedpoteitr") || text3.Contains("pulledbear") || text3.Contains("greens") || text3.Contains("shroomshake") || text3.Contains("medley") || text3.Contains("broth"))) { return 9; } if (!text3.Contains("raspberry") && !text3.Contains("blueberr") && !text3.Contains("cloudberry") && !text3.Contains("vineberry") && !text3.Contains("lingonberry") && !text3.Contains("pukeberries") && !text3.Contains("berry") && !text3.Contains("mushroom") && !text3.Contains("thistle") && !text3.Contains("dandelion") && !text3.Contains("honey") && !text3.Contains("smokepuff") && !text3.Contains("jotunpuffs") && !text3.Contains("magecap") && !text3.Contains("fiddlehead")) { switch (text) { default: if (text3.Contains("barkabranch") || text == "root" || text3.Contains("writhanroots") || text3.Contains("fragrantbundle")) { break; } if (text3.Contains("spice") || text3.Contains("meat") || text3.Contains("fish") || text3.Contains("carrot") || text3.Contains("turnip") || text3.Contains("onion") || text3.Contains("barley") || text3.Contains("flax") || text3.Contains("oat") || text3.Contains("kale") || text3.Contains("poteitr") || text3.Contains("flour") || text3.Contains("dough") || text3.Contains("egg") || text3.Contains("milk") || text3.Contains("yeast") || text3.Contains("vinegar") || text3.Contains("pebbles") || text3.Contains("seaweed") || text3.Contains("uncooked") || ((int)itemType == 2 && item.m_shared.m_food > 0f)) { return 8; } switch (text2) { default: switch (text) { default: if (!text3.Contains("memorialcoal")) { if (text3.Contains("stone") || text3.Contains("ore") || (text3.Contains("scrap") && !text3.Contains("leather")) || text3.Contains("flint") || text3.Contains("obsidian") || text3.Contains("blackmarble") || text3.Contains("black_marble") || text3.Contains("crystal") || text3.Contains("grausten") || text3.Contains("sulfur") || text == "ice" || text3.Contains("proustite")) { return 2; } if (text3.Contains("wood") || text3.Contains("roundlog") || text3.Contains("elderbark") || text3.Contains("elder_bark") || text3.Contains("ashwood") || text3.Contains("yggdrasil")) { return 1; } if (text3.Contains("hide") || text3.Contains("pelt") || text3.Contains("leather") || text3.Contains("feather") || text3.Contains("wolffang") || text3.Contains("wolf_fang") || text3.Contains("scale") || text3.Contains("hare") || text3.Contains("blubber") || text3.Contains("sinew") || text3.Contains("hamstring") || text3.Contains("hairbundle")) { return 4; } return 5; } break; case "coal": case "copper": case "tin": case "bronze": case "iron": case "silver": case "blackmetal": case "flametal": case "flametalnew": break; } break; case "$item_coal": case "$item_copper": case "$item_tin": case "$item_bronze": case "$item_iron": case "$item_silver": case "$item_blackmetal": case "$item_flametal": break; } return 3; case "queenbee": case "sap": case "royaljelly": break; } } return 7; } public static string KategoriAdi(int no) { return no switch { 1 => "1 - Odunlar", 2 => "2 - Tas ve Ham Cevherler", 3 => "3 - Eritilmis Maden ve Komur", 4 => "4 - Deri ve Hayvan Urunleri", 5 => "5 - Yaratik Parcalari", 6 => "6 - Zindan ve Boss Esyalari", 7 => "7 - Meyveler, Mantarlar ve Bitkiler", 8 => "8 - Cig Et, Balik ve Sebzeler", 9 => "9 - Pismis Yemekler ve Ziyafetler", 10 => "10 - Tohum ve Agac Fideleri", 11 => "11 - Silahlar, Zirhlar ve Aletler", 12 => "12 - Yaratik Kafalari (Trophy)", 13 => "13 - Iksirler ve Saraplar", 14 => "14 - Islenmis Craft Malzemeleri", 15 => "15 - Hazine ve Tuccar Esyalari", _ => "Atanmamis (L ile Sec)", }; } }