Decompiled source of sunnfjordheimV2 v1.0.1

plugins/sunnfjordheim.dll

Decompiled a day ago
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Cryptography;
using System.Security.Permissions;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using BepInEx;
using BepInEx.Bootstrap;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using ItemManager;
using JetBrains.Annotations;
using LocalizationManager;
using Microsoft.CodeAnalysis;
using ServerSync;
using TMPro;
using UnityEngine;
using YamlDotNet.Core;
using YamlDotNet.Core.Events;
using YamlDotNet.Core.Tokens;
using YamlDotNet.Helpers;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.BufferedDeserialization;
using YamlDotNet.Serialization.BufferedDeserialization.TypeDiscriminators;
using YamlDotNet.Serialization.Converters;
using YamlDotNet.Serialization.EventEmitters;
using YamlDotNet.Serialization.NamingConventions;
using YamlDotNet.Serialization.NodeDeserializers;
using YamlDotNet.Serialization.NodeTypeResolvers;
using YamlDotNet.Serialization.ObjectFactories;
using YamlDotNet.Serialization.ObjectGraphTraversalStrategies;
using YamlDotNet.Serialization.ObjectGraphVisitors;
using YamlDotNet.Serialization.Schemas;
using YamlDotNet.Serialization.TypeInspectors;
using YamlDotNet.Serialization.TypeResolvers;
using YamlDotNet.Serialization.Utilities;
using YamlDotNet.Serialization.ValueDeserializers;

[assembly: AssemblyFileVersion("1.0.0")]
[assembly: Guid("4358610B-F3F4-4843-B7AF-98B7BC60DCDE")]
[assembly: ComVisible(false)]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyProduct("sunnfjordheimv2")]
[assembly: AssemblyCompany("Zzyzxrd")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("sunnfjordheimv2")]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: CompilationRelaxations(8)]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[<a518ae50-20b8-4bf7-9fa8-017f3c803254>Embedded]
	internal sealed class <a518ae50-20b8-4bf7-9fa8-017f3c803254>EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[<a518ae50-20b8-4bf7-9fa8-017f3c803254>Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
	internal sealed class <46905a88-2de2-4561-8d8e-751b5f1851c6>NullableAttribute : Attribute
	{
		public readonly byte[] NullableFlags;

		public <46905a88-2de2-4561-8d8e-751b5f1851c6>NullableAttribute(byte P_0)
		{
			NullableFlags = new byte[1] { P_0 };
		}

		public <46905a88-2de2-4561-8d8e-751b5f1851c6>NullableAttribute(byte[] P_0)
		{
			NullableFlags = P_0;
		}
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
	[<a518ae50-20b8-4bf7-9fa8-017f3c803254>Embedded]
	[CompilerGenerated]
	internal sealed class <8c51285d-8743-450f-a2c3-456193cc9d7e>NullableContextAttribute : Attribute
	{
		public readonly byte Flag;

		public <8c51285d-8743-450f-a2c3-456193cc9d7e>NullableContextAttribute(byte P_0)
		{
			Flag = P_0;
		}
	}
}
namespace sunnfjordheim
{
	[BepInPlugin("Zzyzxrd.sunnfjordheimv2", "sunnfjordheimv2", "1.0.0")]
	[<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(0)]
	[<8c51285d-8743-450f-a2c3-456193cc9d7e>NullableContext(1)]
	public class sunnfjordheimPlugin : BaseUnityPlugin
	{
		public const string PluginGUID = "Zzyzxrd.sunnfjordheimv2";

		public const string PluginName = "sunnfjordheimv2";

		public const string PluginVersion = "1.0.0";

		internal static ManualLogSource sunnfjordheimLogger;

		public static readonly ConfigSync configSync = new ConfigSync("Zzyzxrd.sunnfjordheimv2")
		{
			DisplayName = "sunnfjordheimv2",
			CurrentVersion = "1.0.0",
			MinimumRequiredVersion = "1.0.0"
		};

		private static ConfigEntry<bool> serverConfigLocked;

		internal static AssetBundle EmbeddedResourceBundle;

		private readonly Harmony _harmony = new Harmony("Zzyzxrd.sunnfjordheimv2");

		public static string ConnectionError { get; set; } = "";


		private void Awake()
		{
			sunnfjordheimLogger = Logger.CreateLogSource("sunnfjordheimv2");
			sunnfjordheimConfig.Initialize(((BaseUnityPlugin)this).Config);
			SetupServerSync();
			Localizer.Load();
			LoadAssets();
			new sunnfjordheimItems(EmbeddedResourceBundle);
			_harmony.PatchAll(typeof(sunnfjordheimPlugin).Assembly);
		}

		private void SetupServerSync()
		{
			serverConfigLocked = ((BaseUnityPlugin)this).Config.Bind<bool>("1 - General", "Lock Configuration", true, "Si está en 'true', la config solo puede cambiarla el servidor.");
			configSync.ModRequired = true;
			configSync.AddLockingConfigEntry<bool>(serverConfigLocked);
		}

		private void LoadAssets()
		{
			if (sunnfjordheimConfig.EnableDebugMode.Value)
			{
				sunnfjordheimLogger.LogInfo((object)("Embedded resources: " + string.Join(",", typeof(sunnfjordheimPlugin).Assembly.GetManifestResourceNames())));
			}
			byte[] array = ReadEmbeddedResourceAsBytes("sunnfjordheim.assets.sunnfjordheim");
			if (array == null)
			{
				sunnfjordheimLogger.LogError((object)"No se encontró el assetbundle: sunnfjordheim.assets.sunnfjordheim");
				return;
			}
			EmbeddedResourceBundle = AssetBundle.LoadFromMemory(array);
			if ((Object)(object)EmbeddedResourceBundle == (Object)null)
			{
				sunnfjordheimLogger.LogError((object)"Falló la carga del AssetBundle principal: sunnfjordheim");
			}
			else if (sunnfjordheimConfig.EnableDebugMode.Value)
			{
				sunnfjordheimLogger.LogInfo((object)("AssetNames: " + string.Join(",", EmbeddedResourceBundle.GetAllAssetNames())));
			}
		}

		private string ReadEmbeddedResourceFile(string filename)
		{
			using Stream stream = typeof(sunnfjordheimPlugin).Assembly.GetManifestResourceStream(filename);
			if (stream == null)
			{
				return null;
			}
			using StreamReader streamReader = new StreamReader(stream);
			return streamReader.ReadToEnd();
		}

		private byte[] ReadEmbeddedResourceAsBytes(string filename)
		{
			using Stream stream = typeof(sunnfjordheimPlugin).Assembly.GetManifestResourceStream(filename);
			if (stream == null)
			{
				return null;
			}
			using MemoryStream memoryStream = new MemoryStream();
			stream.CopyTo(memoryStream);
			return memoryStream.ToArray();
		}

		private void OnDestroy()
		{
			UnloadAssets();
			Harmony harmony = _harmony;
			if (harmony != null)
			{
				harmony.UnpatchSelf();
			}
		}

		private void UnloadAssets()
		{
			if ((Object)(object)EmbeddedResourceBundle != (Object)null)
			{
				EmbeddedResourceBundle.Unload(false);
				EmbeddedResourceBundle = null;
			}
		}
	}
	[<8c51285d-8743-450f-a2c3-456193cc9d7e>NullableContext(1)]
	[<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(0)]
	public static class sunnfjordheimConfig
	{
		private static ConfigFile _config;

		public static ConfigEntry<bool> EnableDebugMode { get; private set; }

		public static void Initialize(ConfigFile config)
		{
			_config = config;
			_config.SaveOnConfigSet = true;
			CreateConfigValues();
		}

		private static void CreateConfigValues()
		{
			EnableDebugMode = BindServerConfig("Client config", "EnableDebugMode", defaultValue: false, "Habilita el registro de depuración para sunnfjordheim.");
		}

		public static ConfigEntry<bool> BindServerConfig(string category, string key, bool defaultValue, string description)
		{
			ConfigEntry<bool> val = _config.Bind<bool>(category, key, defaultValue, description);
			sunnfjordheimPlugin.configSync.AddConfigEntry<bool>(val);
			return val;
		}

		public static ConfigEntry<int> BindServerConfig(string category, string key, int defaultValue, string description, int minValue = 0, int maxValue = 99000)
		{
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Expected O, but got Unknown
			ConfigEntry<int> val = _config.Bind<int>(category, key, defaultValue, new ConfigDescription(description, (AcceptableValueBase)(object)new AcceptableValueRange<int>(minValue, maxValue), Array.Empty<object>()));
			sunnfjordheimPlugin.configSync.AddConfigEntry<int>(val);
			return val;
		}

		public static ConfigEntry<float> BindServerConfig(string category, string key, float defaultValue, string description, float minValue = 0f, float maxValue = 99000f)
		{
			//IL_0018: Unknown result type (might be due to invalid IL or missing references)
			//IL_0022: Expected O, but got Unknown
			ConfigEntry<float> val = _config.Bind<float>(category, key, defaultValue, new ConfigDescription(description, (AcceptableValueBase)(object)new AcceptableValueRange<float>(minValue, maxValue), Array.Empty<object>()));
			sunnfjordheimPlugin.configSync.AddConfigEntry<float>(val);
			return val;
		}

		public static ConfigEntry<string> BindServerConfig(string category, string key, string defaultValue, string description)
		{
			ConfigEntry<string> val = _config.Bind<string>(category, key, defaultValue, description);
			sunnfjordheimPlugin.configSync.AddConfigEntry<string>(val);
			return val;
		}
	}
	[<8c51285d-8743-450f-a2c3-456193cc9d7e>NullableContext(1)]
	[<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(0)]
	internal class sunnfjordheimItems
	{
		private AssetBundle EmbeddedResourceBundle;

		public sunnfjordheimItems(AssetBundle embeddedResourceBundle)
		{
			EmbeddedResourceBundle = embeddedResourceBundle;
			InitializeItems();
		}

		private void InitializeItems()
		{
			sunnfjordheimSwords();
			sunnfjordheimClubs();
			sunnfjordheimHelmets();
			sunnfjordheimArmors();
			sunnfjordheimshields();
			sunnfjordheimclancoins();
		}

		private void RegisterItem(string name, string category, string prefabPath, AssetBundle assetBundle, [<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(new byte[] { 1, 0, 1 })] List<(string material, int baseAmount, int perLevelAmount)> recipe, string craftingStation, int stationRequiredLevel, float armorValue = 0f, float armorPerLevel = 0f, float weight = 0f, float durability = 0f, float durabilityPerLevel = 0f, float Heatresistance = 0f, float movementModifier = 0f, float Eitrregenmodifier = 0f, float Jumpstamina = 0f, float AttackStamina = 0f, float Runstamina = 0f, float Blockpower = 0f, float BlockpowerPerLevel = 0f, float Deflection = 0f, float DeflectionPerLevel = 0f, float Timeblock = 0f, bool doSnapshot = false, [<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(new byte[] { 1, 0, 1 })] List<(string damageType, float baseValue, float increment)> stats = null, [<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(new byte[] { 1, 0, 1 })] List<(string material, int basePerLevel)> upgradeMaterials = null)
		{
			GameObject val = assetBundle.LoadAsset<GameObject>(prefabPath);
			if ((Object)(object)val == (Object)null)
			{
				sunnfjordheimPlugin.sunnfjordheimLogger.LogError((object)("[sunnfjordheimItems] Prefab not found: " + prefabPath));
				return;
			}
			string folderName = prefabPath.Replace(".prefab", "");
			Item item = new Item("sunnfjordheim", name, folderName);
			if (!string.IsNullOrEmpty(craftingStation))
			{
				item.Crafting.Add(craftingStation, stationRequiredLevel);
			}
			foreach (var item2 in recipe)
			{
				string value = sunnfjordheimConfig.BindServerConfig(category, name + "_Recipe_" + item2.material + "_Material", item2.material, "Material requerido para " + name + ".").Value;
				int value2 = sunnfjordheimConfig.BindServerConfig(category, name + "_Recipe_" + item2.material + "_BaseAmount", item2.baseAmount, "Cantidad base de " + item2.material + " para " + name + ".").Value;
				int value3 = sunnfjordheimConfig.BindServerConfig(category, name + "_Recipe_" + item2.material + "_PerLevelAmount", item2.perLevelAmount, "Cantidad de " + item2.material + " por nivel para " + name + ".").Value;
				item.RequiredItems.Add(value, value2, value3);
			}
			if (upgradeMaterials != null)
			{
				foreach (var (itemName, amount) in upgradeMaterials)
				{
					item.RequiredUpgradeItems.Add(itemName, amount);
				}
			}
			ItemDrop component = val.GetComponent<ItemDrop>();
			if ((Object)(object)component != (Object)null)
			{
				SharedData shared = component.m_itemData.m_shared;
				if (stats != null && stats.Count > 0)
				{
					foreach (var stat in stats)
					{
						switch (stat.damageType)
						{
						case "m_blunt":
							shared.m_damages.m_blunt = stat.baseValue;
							shared.m_damagesPerLevel.m_blunt = stat.increment;
							continue;
						case "m_slash":
							shared.m_damages.m_slash = stat.baseValue;
							shared.m_damagesPerLevel.m_slash = stat.increment;
							continue;
						case "m_pierce":
							shared.m_damages.m_pierce = stat.baseValue;
							shared.m_damagesPerLevel.m_pierce = stat.increment;
							continue;
						case "m_fire":
							shared.m_damages.m_fire = stat.baseValue;
							shared.m_damagesPerLevel.m_fire = stat.increment;
							continue;
						case "m_frost":
							shared.m_damages.m_frost = stat.baseValue;
							shared.m_damagesPerLevel.m_frost = stat.increment;
							continue;
						case "m_poison":
							shared.m_damages.m_poison = stat.baseValue;
							shared.m_damagesPerLevel.m_poison = stat.increment;
							continue;
						case "m_lightning":
							shared.m_damages.m_lightning = stat.baseValue;
							shared.m_damagesPerLevel.m_lightning = stat.increment;
							continue;
						case "m_spirit":
							shared.m_damages.m_spirit = stat.baseValue;
							shared.m_damagesPerLevel.m_spirit = stat.increment;
							continue;
						}
						sunnfjordheimPlugin.sunnfjordheimLogger.LogWarning((object)("[sunnfjordheimItems] Unknown damage type '" + stat.damageType + "' for '" + name + "'."));
					}
				}
				else
				{
					shared.m_armor = armorValue;
					shared.m_armorPerLevel = armorPerLevel;
					shared.m_weight = weight;
					shared.m_heatResistanceModifier = Heatresistance;
					shared.m_maxDurability = durability;
					shared.m_durabilityPerLevel = durabilityPerLevel;
					shared.m_movementModifier = movementModifier;
					shared.m_eitrRegenModifier = Eitrregenmodifier;
					shared.m_jumpStaminaModifier = Jumpstamina;
					shared.m_attackStaminaModifier = AttackStamina;
					shared.m_runStaminaModifier = Runstamina;
					shared.m_blockPower = Blockpower;
					shared.m_blockPowerPerLevel = BlockpowerPerLevel;
					shared.m_deflectionForce = Deflection;
					shared.m_deflectionForcePerLevel = DeflectionPerLevel;
					shared.m_timedBlockBonus = Timeblock;
				}
			}
			else
			{
				sunnfjordheimPlugin.sunnfjordheimLogger.LogWarning((object)("[sunnfjordheimItems] " + prefabPath + " has NO ItemDrop! Snapshot() may fail if doSnapshot=true."));
			}
			if (doSnapshot)
			{
				item.Snapshot();
			}
			sunnfjordheimPlugin.sunnfjordheimLogger.LogInfo((object)("[sunnfjordheimItems] Registered item: " + name));
		}

		private void RegisterArmor(string name, string category, string prefabPath, AssetBundle assetBundle, [<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(new byte[] { 1, 0, 1 })] List<(string material, int baseAmount, int perLevelAmount)> recipe, string craftingStation, int stationRequiredLevel, float armorValue, float armorPerLevel, float weight, float durability, float durabilityPerLevel, float Heatresistance, float movementModifier, float Eitrregenmodifier, float Jumpstamina, float AttackStamina, float Runstamina, bool doSnapshot = false, [<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(new byte[] { 1, 0, 1 })] List<(string material, int basePerLevel)> upgradeMaterials = null)
		{
			RegisterItem(name, category, prefabPath, assetBundle, recipe, craftingStation, stationRequiredLevel, armorValue, armorPerLevel, weight, durability, durabilityPerLevel, Heatresistance, movementModifier, Eitrregenmodifier, Jumpstamina, AttackStamina, Runstamina, 0f, 0f, 0f, 0f, 0f, doSnapshot, null, upgradeMaterials);
		}

		private void Registershield(string name, string category, string prefabPath, AssetBundle assetBundle, [<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(new byte[] { 1, 0, 1 })] List<(string material, int baseAmount, int perLevelAmount)> recipe, string craftingStation, int stationRequiredLevel, float armorValue, float armorPerLevel, float weight, float durability, float durabilityPerLevel, float heatResistance, float movementModifier, float eitrRegenModifier, float jumpStamina, float attackStamina, float runStamina, float blockPower, float blockPowerPerLevel, float deflection, float deflectionPerLevel, float timedBlockBonus, bool doSnapshot = false, [<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(new byte[] { 1, 0, 1 })] List<(string material, int basePerLevel)> upgradeMaterials = null)
		{
			RegisterItem(name, category, prefabPath, assetBundle, recipe, craftingStation, stationRequiredLevel, armorValue, armorPerLevel, weight, durability, durabilityPerLevel, heatResistance, movementModifier, eitrRegenModifier, jumpStamina, attackStamina, runStamina, blockPower, blockPowerPerLevel, deflection, deflectionPerLevel, timedBlockBonus, doSnapshot, null, upgradeMaterials);
		}

		private void RegisterNonCraftableItem(string name, string category, string prefabPath, AssetBundle assetBundle, bool doSnapshot = false)
		{
			RegisterItem(name, category, prefabPath, assetBundle, new List<(string, int, int)>(), "", 0, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot);
		}

		private void sunnfjordheimSwords()
		{
			RegisterItem("Hachaberserker", "sunnfjordheimSwords", "Hachaberserker.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan6", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan6", 10) });
			RegisterItem("Espadaragnarok", "sunnfjordheimSwords", "Espadaragnarok.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan6", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan6", 10) });
			RegisterItem("EspadaClanragnarok", "sunnfjordheimSwords", "EspadaClanragnarok.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan6", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan6", 10) });
			RegisterItem("EspadaClan1", "sunnfjordheimSwords", "EspadaClan1.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan1", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan1", 10) });
			RegisterItem("EspadaClan2", "sunnfjordheimSwords", "EspadaClan2.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan8", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan8", 10) });
			RegisterItem("EspadaClan3", "sunnfjordheimSwords", "EspadaClan3.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan4", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan4", 10) });
			RegisterItem("Espadamandoclan", "sunnfjordheimSwords", "Espadamandoclan.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan2", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan2", 10) });
			RegisterItem("EspadaClan4", "sunnfjordheimSwords", "EspadaClan4.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan1", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan1", 10) });
			RegisterItem("EspadaArthas", "sunnfjordheimSwords", "EspadaArthas.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan4", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan4", 10) });
			RegisterItem("MandalorianSpear", "sunnfjordheimSwords", "MandalorianSpear.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan2", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_pierce", 250f, 6f) }, new List<(string, int)> { ("Clan2", 20) });
			RegisterItem("Ravenstaff", "sunnfjordheimSwords", "Ravenstaff.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan3", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_pierce", 10f, 6f) }, new List<(string, int)> { ("Clan3", 50) });
			RegisterItem("Riflemandaloriano", "sunnfjordheimSwords", "Riflemandaloriano.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 6, 3),
				("FlametalNew", 24, 15),
				("AskHide", 4, 2),
				("Clan2", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_lightning", 100f, 6f) }, new List<(string, int)> { ("Clan2", 50) });
		}

		private void sunnfjordheimClubs()
		{
			RegisterItem("Hachaclan1", "sunnfjordheimClubs", "Hachaclan1.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 10, 5),
				("FlametalNew", 15, 8),
				("SulfurStone", 5, 3),
				("Clan5", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan5", 50) });
			RegisterItem("Hachacristalashland", "sunnfjordheimClubs", "Hachacristalashland.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 10, 5),
				("FlametalNew", 15, 8),
				("SulfurStone", 5, 3),
				("Clan2", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan2", 20) });
			RegisterItem("Hachadebatallaclan", "sunnfjordheimClubs", "Hachadebatallaclan.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 10, 5),
				("FlametalNew", 15, 8),
				("SulfurStone", 5, 3),
				("Clan5", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan5", 50) });
			RegisterItem("Hachadebatallaclan1", "sunnfjordheimClubs", "Hachadebatallaclan1.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 10, 5),
				("FlametalNew", 15, 8),
				("SulfurStone", 5, 3),
				("Clan4", 50, 1)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_slash", 250f, 6f) }, new List<(string, int)> { ("Clan4", 50) });
			RegisterItem("Bowclan1", "sunnfjordheimClubs", "Bowclan1.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("CharredBone", 10, 5),
				("FlametalNew", 15, 8),
				("SulfurStone", 5, 3),
				("Clan3", 50, 2)
			}, "blackforge", 2, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true, new List<(string, float, float)> { ("m_pierce", 250f, 6f) }, new List<(string, int)> { ("Clan3", 20) });
		}

		private void sunnfjordheimHelmets()
		{
			RegisterArmor("Cascodorado", "sunnfjordheimHelmets", "Cascodorado.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan6", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: true, new List<(string, int)> { ("Clan6", 20) });
			RegisterArmor("GoldHat", "sunnfjordheimHelmets", "GoldHat.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan6", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan6", 20) });
			RegisterArmor("Cascovalkyiria", "sunnfjordheimHelmets", "Cascovalkyiria.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("Clan1", 10, 1),
				("Clan2", 10, 1),
				("Clan3", 10, 1),
				("Clan4", 10, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)>
			{
				("Clan1", 10),
				("Clan2", 10),
				("Clan3", 10),
				("Clan4", 10)
			});
			RegisterArmor("Lokicasco1", "sunnfjordheimHelmets", "Lokicasco1.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan1", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: true, new List<(string, int)> { ("Clan1", 20) });
			RegisterArmor("Mandaloriancasco1", "sunnfjordheimHelmets", "Mandaloriancasco1.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan2", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: true, new List<(string, int)> { ("Clan2", 20) });
			RegisterArmor("Mandaloriancasco2", "sunnfjordheimHelmets", "Mandaloriancasco2.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan2", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: true, new List<(string, int)> { ("Clan2", 20) });
			RegisterArmor("Mandaloriancasco3", "sunnfjordheimHelmets", "Mandaloriancasco3.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan2", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: true, new List<(string, int)> { ("Clan2", 20) });
			RegisterArmor("cascomandolariano", "sunnfjordheimHelmets", "cascomandolariano.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan2", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan2", 20) });
			RegisterArmor("Cascoberserkerv1", "sunnfjordheimHelmets", "Cascoberserkerv1.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan5", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan5", 20) });
			RegisterArmor("Cascoberserkerv2", "sunnfjordheimHelmets", "Cascoberserkerv2.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan5", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan5", 20) });
			RegisterArmor("Cascoinvisible", "sunnfjordheimHelmets", "Cascoinvisible.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("Clan5", 10, 1),
				("Clan6", 10, 1),
				("Clan7", 10, 1),
				("Clan8", 10, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)>
			{
				("Clan5", 10),
				("Clan6", 10),
				("Clan7", 10),
				("Clan8", 10)
			});
			RegisterArmor("Adminmagemask", "sunnfjordheimHelmets", "Adminmagemask.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan7", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan7", 20) });
			RegisterArmor("HelaHelmet", "sunnfjordheimHelmets", "HelaHelmet.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan4", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan4", 20) });
			RegisterArmor("Cascogoblinslayer", "sunnfjordheimHelmets", "Cascogoblinslayer.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan3", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan3", 20) });
			RegisterArmor("Cascogoblinslayer3", "sunnfjordheimHelmets", "Cascogoblinslayer3.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan3", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan3", 20) });
			RegisterArmor("Cascogoblinslayer2", "sunnfjordheimHelmets", "Cascogoblinslayer2.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan3", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan3", 20) });
			RegisterArmor("CascoArtorias", "sunnfjordheimHelmets", "CascoArtorias.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan8", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan8", 20) });
			RegisterArmor("LichkingsHelmet", "sunnfjordheimHelmets", "LichkingsHelmet.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan4", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan4", 50) });
			RegisterArmor("Cascovikingoclan", "sunnfjordheimHelmets", "Cascovikingoclan.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan1", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan1", 20) });
			RegisterArmor("VikingoHat", "sunnfjordheimHelmets", "VikingoHat.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan1", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 1f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan1", 20) });
		}

		private void sunnfjordheimArmors()
		{
			RegisterArmor("GoldenChest", "sunnfjordheimArmors", "GoldenChest.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan6", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan6", 20) });
			RegisterArmor("GoldenLegs", "sunnfjordheimArmors", "GoldenLegs.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan6", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan6", 20) });
			RegisterArmor("Armaduravikingalegs", "sunnfjordheimArmors", "Armaduravikingalegs.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan1", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan1", 20) });
			RegisterArmor("Armaduravikingachest", "sunnfjordheimArmors", "Armaduravikingachest.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan1", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan1", 20) });
			RegisterArmor("Vikingoclanchest", "sunnfjordheimArmors", "Vikingoclanchest.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan1", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan1", 20) });
			RegisterArmor("Vikingoclanlegs", "sunnfjordheimArmors", "Vikingoclanlegs.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan1", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan1", 20) });
			RegisterArmor("LichKingsLegs", "sunnfjordheimArmors", "LichKingsLegs.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan4", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan4", 20) });
			RegisterArmor("LichKingschest", "sunnfjordheimArmors", "LichKingschest.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan4", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan4", 20) });
			RegisterArmor("Armaduragoblinslayer1", "sunnfjordheimArmors", "Armaduragoblinslayer1.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan3", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan3", 20) });
			RegisterArmor("ArmaduraGbolinslayerlegs", "sunnfjordheimArmors", "ArmaduraGbolinslayerlegs.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan3", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan3", 20) });
			RegisterArmor("mandalorianchest", "sunnfjordheimArmors", "mandalorianchest.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan2", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan2", 50) });
			RegisterArmor("mandalorianlegs", "sunnfjordheimArmors", "mandalorianlegs.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan2", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan2", 20) });
			RegisterArmor("Ashalndlegsadmin", "sunnfjordheimArmors", "Ashalndlegsadmin.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan7", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0.3f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan7", 20) });
			RegisterArmor("Askvinchestadm", "sunnfjordheimArmors", "Askvinchestadm.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan7", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0.3f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan7", 20) });
			RegisterArmor("capamandaloriona", "sunnfjordheimArmors", "capamandaloriona.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 50, 2),
				("AskHide", 50, 25),
				("CharredBone", 50, 5),
				("Clan2", 20, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan2", 20) });
			RegisterArmor("Capaclanamarillo", "sunnfjordheimArmors", "Capaclanamarillo.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 50, 2),
				("AskHide", 50, 25),
				("CharredBone", 50, 5),
				("Eitr", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)>
			{
				("FlametalNew", 20),
				("CharredBone", 20),
				("CharredBone", 20),
				("Eitr", 20)
			});
			RegisterArmor("Capaclanblanco", "sunnfjordheimArmors", "Capaclanblanco.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 50, 2),
				("AskHide", 50, 25),
				("CharredBone", 50, 5),
				("Clan6", 20, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan6", 20) });
			RegisterArmor("Capaclanceleste", "sunnfjordheimArmors", "Capaclanceleste.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 50, 2),
				("AskHide", 50, 25),
				("CharredBone", 50, 5),
				("Eitr", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)>
			{
				("FlametalNew", 20),
				("CharredBone", 20),
				("CharredBone", 20),
				("Eitr", 20)
			});
			RegisterArmor("Capaclangris", "sunnfjordheimArmors", "Capaclangris.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 50, 2),
				("AskHide", 50, 25),
				("CharredBone", 50, 5),
				("Eitr", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)>
			{
				("FlametalNew", 20),
				("CharredBone", 20),
				("CharredBone", 20),
				("Eitr", 20)
			});
			RegisterArmor("Capaclanmarron", "sunnfjordheimArmors", "Capaclanmarron.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 50, 2),
				("AskHide", 50, 25),
				("CharredBone", 50, 5),
				("Eitr", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)>
			{
				("FlametalNew", 20),
				("CharredBone", 20),
				("CharredBone", 20),
				("Eitr", 20)
			});
			RegisterArmor("Capaclannegro", "sunnfjordheimArmors", "Capaclannegro.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 50, 2),
				("AskHide", 50, 25),
				("CharredBone", 50, 5),
				("Eitr", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)>
			{
				("FlametalNew", 20),
				("CharredBone", 20),
				("CharredBone", 20),
				("Eitr", 20)
			});
			RegisterArmor("CapaclanRojo", "sunnfjordheimArmors", "CapaclanRojo.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 50, 2),
				("AskHide", 50, 25),
				("CharredBone", 50, 5),
				("Eitr", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)>
			{
				("FlametalNew", 20),
				("CharredBone", 20),
				("CharredBone", 20),
				("Eitr", 20)
			});
			RegisterArmor("Capaclanverde", "sunnfjordheimArmors", "Capaclanverde.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 50, 2),
				("AskHide", 50, 25),
				("CharredBone", 50, 5),
				("Eitr", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)>
			{
				("FlametalNew", 20),
				("CharredBone", 20),
				("CharredBone", 20),
				("Eitr", 20)
			});
			RegisterArmor("Berserkerchestfeather", "sunnfjordheimArmors", "Berserkerchestfeather.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan5", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan5", 20) });
			RegisterArmor("Berserkerchestlox", "sunnfjordheimArmors", "Berserkerchestlox.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan5", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan5", 20) });
			RegisterArmor("Berserkerchestwolf", "sunnfjordheimArmors", "Berserkerchestwolf.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan5", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan5", 20) });
			RegisterArmor("Berserkerlegs1", "sunnfjordheimArmors", "Berserkerlegs1.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan5", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan5", 20) });
			RegisterArmor("ArmaduraArtoriaschest1", "sunnfjordheimArmors", "ArmaduraArtoriaschest1.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan8", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan8", 50) });
			RegisterArmor("ArmaduraArtoriasLegss", "sunnfjordheimArmors", "ArmaduraArtoriasLegss.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan8", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, doSnapshot: false, new List<(string, int)> { ("Clan8", 50) });
		}

		private void sunnfjordheimshields()
		{
			RegisterItem("Escudo1", "sunnfjordheimClubs", "Escudo1.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan5", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, 150f, 6f, 60f, 5f, 1.5f, doSnapshot: true, null, new List<(string, int)> { ("Clan5", 20) });
			RegisterItem("Escudo2", "sunnfjordheimClubs", "Escudo2.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan8", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, 150f, 6f, 60f, 5f, 1.5f, doSnapshot: true, null, new List<(string, int)> { ("Clan8", 50) });
			RegisterItem("Escudo3", "sunnfjordheimClubs", "Escudo3.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan8", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, 150f, 6f, 60f, 5f, 1.5f, doSnapshot: true, null, new List<(string, int)> { ("Clan8", 50) });
			RegisterItem("Escudo4", "sunnfjordheimClubs", "Escudo4.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan6", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, 150f, 6f, 60f, 5f, 1.5f, doSnapshot: true, null, new List<(string, int)> { ("Clan6", 20) });
			RegisterItem("Escudo5", "sunnfjordheimClubs", "Escudo5.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan1", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, 150f, 6f, 60f, 5f, 1.5f, doSnapshot: true, null, new List<(string, int)> { ("Clan1", 50) });
			RegisterItem("Escudo6", "sunnfjordheimClubs", "Escudo6.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan2", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, 150f, 6f, 60f, 5f, 1.5f, doSnapshot: true, null, new List<(string, int)> { ("Clan2", 20) });
			RegisterItem("Escudo7", "sunnfjordheimClubs", "Escudo7.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan1", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, 150f, 6f, 60f, 5f, 1.5f, doSnapshot: true, null, new List<(string, int)> { ("Clan1", 20) });
			RegisterItem("Escudo8", "sunnfjordheimClubs", "Escudo8.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan4", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, 150f, 6f, 60f, 5f, 1.5f, doSnapshot: true, null, new List<(string, int)> { ("Clan4", 50) });
			RegisterItem("Escudo9", "sunnfjordheimClubs", "Escudo9.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan1", 50, 5)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, 150f, 6f, 60f, 5f, 1.5f, doSnapshot: true, null, new List<(string, int)> { ("Clan1", 20) });
			RegisterItem("Shieldmandaloriano", "sunnfjordheimClubs", "Shieldmandaloriano.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan2", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, 150f, 6f, 60f, 5f, 1.5f, doSnapshot: true, null, new List<(string, int)> { ("Clan2", 20) });
			RegisterItem("Shielgoblinslayer", "sunnfjordheimClubs", "Shielgoblinslayer.prefab", EmbeddedResourceBundle, new List<(string, int, int)>
			{
				("FlametalNew", 40, 2),
				("AskHide", 50, 25),
				("CharredBone", 10, 5),
				("Clan3", 50, 1)
			}, "blackforge", 2, 50f, 5f, 3f, 1200f, 150f, 1f, -0.05f, 0f, 0f, 0f, 0f, 150f, 6f, 60f, 5f, 1.5f, doSnapshot: true, null, new List<(string, int)> { ("Clan3", 20) });
		}

		private void sunnfjordheimclancoins()
		{
			RegisterItem("Superfood", "sunnfjordheimclancoins", "Superfood", EmbeddedResourceBundle, new List<(string, int, int)>(), "", 0, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true);
			RegisterItem("Clan1", "sunnfjordheimclancoins", "Clan1", EmbeddedResourceBundle, new List<(string, int, int)>(), "", 0, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true);
			RegisterItem("Clan2", "sunnfjordheimclancoins", "Clan2", EmbeddedResourceBundle, new List<(string, int, int)>(), "", 0, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true);
			RegisterItem("Clan3", "sunnfjordheimclancoins", "Clan3", EmbeddedResourceBundle, new List<(string, int, int)>(), "", 0, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true);
			RegisterItem("Clan4", "sunnfjordheimclancoins", "Clan4", EmbeddedResourceBundle, new List<(string, int, int)>(), "", 0, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true);
			RegisterItem("Clan5", "sunnfjordheimclancoins", "Clan5", EmbeddedResourceBundle, new List<(string, int, int)>(), "", 0, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true);
			RegisterItem("Clan6", "sunnfjordheimclancoins", "Clan6", EmbeddedResourceBundle, new List<(string, int, int)>(), "", 0, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true);
			RegisterItem("Clan7", "sunnfjordheimclancoins", "Clan7", EmbeddedResourceBundle, new List<(string, int, int)>(), "", 0, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true);
			RegisterItem("Clan8", "sunnfjordheimclancoins", "Clan8", EmbeddedResourceBundle, new List<(string, int, int)>(), "", 0, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, 0f, doSnapshot: true);
		}
	}
	[HarmonyPatch(typeof(ZNet), "OnNewConnection")]
	public static class RegisterAndCheckVersion
	{
		[<8c51285d-8743-450f-a2c3-456193cc9d7e>NullableContext(1)]
		private static void Prefix(ZNetPeer peer, ref ZNet __instance)
		{
			//IL_003e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0044: Expected O, but got Unknown
			sunnfjordheimPlugin.sunnfjordheimLogger.LogDebug((object)"Registering version RPC handler");
			peer.m_rpc.Register<ZPackage>("sunnfjordheimv2_VersionCheck", (Action<ZRpc, ZPackage>)RpcHandlers.RPC_sunnfjordheim_Version);
			sunnfjordheimPlugin.sunnfjordheimLogger.LogInfo((object)"Invoking version check");
			ZPackage val = new ZPackage();
			val.Write("1.0.0");
			peer.m_rpc.Invoke("sunnfjordheimv2_VersionCheck", new object[1] { val });
		}
	}
	[HarmonyPatch(typeof(ZNet), "RPC_PeerInfo")]
	[<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(0)]
	[<8c51285d-8743-450f-a2c3-456193cc9d7e>NullableContext(1)]
	public static class VerifyClient
	{
		private static bool Prefix(ZRpc rpc, ZPackage pkg, ref ZNet __instance)
		{
			if (!__instance.IsServer() || RpcHandlers.ValidatedPeers.Contains(rpc))
			{
				return true;
			}
			sunnfjordheimPlugin.sunnfjordheimLogger.LogWarning((object)("Peer (" + rpc.m_socket.GetHostName() + ") nunca envió versión o se desconectó antes, desconectando"));
			rpc.Invoke("Error", new object[1] { 3 });
			return false;
		}

		private static void Postfix(ZNet __instance)
		{
			//IL_001d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Expected O, but got Unknown
			ZRoutedRpc.instance.InvokeRoutedRPC(ZRoutedRpc.instance.GetServerPeerID(), "sunnfjordheimv2RequestAdminSync", new object[1] { (object)new ZPackage() });
		}
	}
	[HarmonyPatch(typeof(FejdStartup), "ShowConnectError")]
	public class ShowConnectionError
	{
		[<8c51285d-8743-450f-a2c3-456193cc9d7e>NullableContext(1)]
		private static void Postfix(FejdStartup __instance)
		{
			if (__instance.m_connectionFailedPanel.activeSelf)
			{
				__instance.m_connectionFailedError.fontSizeMax = 25f;
				__instance.m_connectionFailedError.fontSizeMin = 15f;
				TMP_Text connectionFailedError = __instance.m_connectionFailedError;
				connectionFailedError.text = connectionFailedError.text + "\n" + sunnfjordheimPlugin.ConnectionError;
			}
		}
	}
	[HarmonyPatch(typeof(ZNet), "Disconnect")]
	public static class RemoveDisconnectedPeerFromVerified
	{
		[<8c51285d-8743-450f-a2c3-456193cc9d7e>NullableContext(1)]
		private static void Prefix(ZNetPeer peer, ref ZNet __instance)
		{
			if (__instance.IsServer())
			{
				sunnfjordheimPlugin.sunnfjordheimLogger.LogInfo((object)("Peer (" + peer.m_rpc.m_socket.GetHostName() + ") se desconectó, quitándolo de la lista validada"));
				RpcHandlers.ValidatedPeers.Remove(peer.m_rpc);
			}
		}
	}
	[<46905a88-2de2-4561-8d8e-751b5f1851c6>Nullable(0)]
	[<8c51285d-8743-450f-a2c3-456193cc9d7e>NullableContext(1)]
	public static class RpcHandlers
	{
		public static readonly List<ZRpc> ValidatedPeers = new List<ZRpc>();

		public static void RPC_sunnfjordheim_Version(ZRpc rpc, ZPackage pkg)
		{
			string text = pkg.ReadString();
			sunnfjordheimPlugin.sunnfjordheimLogger.LogInfo((object)("Version check, local: 1.0.0, remote: " + text));
			if (text != "1.0.0")
			{
				sunnfjordheimPlugin.ConnectionError = "sunnfjordheimv2 Installed: 1.0.0\nNeeded: " + text;
				if (ZNet.instance.IsServer())
				{
					sunnfjordheimPlugin.sunnfjordheimLogger.LogWarning((object)("Peer (" + rpc.m_socket.GetHostName() + ") tiene versión incompatible, desconectando..."));
					rpc.Invoke("Error", new object[1] { 3 });
				}
			}
			else if (!ZNet.instance.IsServer())
			{
				sunnfjordheimPlugin.sunnfjordheimLogger.LogInfo((object)"¡Versión del servidor coincide con la nuestra!");
			}
			else
			{
				sunnfjordheimPlugin.sunnfjordheimLogger.LogInfo((object)("Añadiendo peer (" + rpc.m_socket.GetHostName() + ") a la lista validada"));
				ValidatedPeers.Add(rpc);
			}
		}

		public static string ComputeHashForMod()
		{
			using SHA256 sHA = SHA256.Create();
			byte[] array = sHA.ComputeHash(File.ReadAllBytes(Assembly.GetExecutingAssembly().Location));
			StringBuilder stringBuilder = new StringBuilder();
			byte[] array2 = array;
			foreach (byte b in array2)
			{
				stringBuilder.Append(b.ToString("X2"));
			}
			return stringBuilder.ToString();
		}
	}
}
[CompilerGenerated]
internal sealed class <23d1172d-7127-45db-b69a-fbbabe51115d><PrivateImplementationDetails>
{
	internal static uint ComputeStringHash(string s)
	{
		uint num = default(uint);
		if (s != null)
		{
			num = 2166136261u;
			for (int i = 0; i < s.Length; i++)
			{
				num = (s[i] ^ num) * 16777619;
			}
		}
		return num;
	}
}
namespace Microsoft.CodeAnalysis
{
	[<803dc814-4e68-4ab9-ba7b-65c7429edbb9>Embedded]
	[CompilerGenerated]
	internal sealed class <803dc814-4e68-4ab9-ba7b-65c7429edbb9>EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[<803dc814-4e68-4ab9-ba7b-65c7429edbb9>Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
	[CompilerGenerated]
	internal sealed class <e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>NullableAttribute : Attribute
	{
		public readonly byte[] NullableFlags;

		public <e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>NullableAttribute(byte P_0)
		{
			NullableFlags = new byte[1] { P_0 };
		}

		public <e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>NullableAttribute(byte[] P_0)
		{
			NullableFlags = P_0;
		}
	}
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
	[<803dc814-4e68-4ab9-ba7b-65c7429edbb9>Embedded]
	[CompilerGenerated]
	internal sealed class <f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContextAttribute : Attribute
	{
		public readonly byte Flag;

		public <f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContextAttribute(byte P_0)
		{
			Flag = P_0;
		}
	}
	[CompilerGenerated]
	[<803dc814-4e68-4ab9-ba7b-65c7429edbb9>Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class <bf488786-c6dd-4440-8855-72e16122eba7>RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public <bf488786-c6dd-4440-8855-72e16122eba7>RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace ItemManager
{
	[PublicAPI]
	internal enum CraftingTable
	{
		Disabled,
		Inventory,
		[InternalName("piece_workbench")]
		Workbench,
		[InternalName("piece_cauldron")]
		Cauldron,
		[InternalName("forge")]
		Forge,
		[InternalName("piece_artisanstation")]
		ArtisanTable,
		[InternalName("piece_stonecutter")]
		StoneCutter,
		[InternalName("piece_magetable")]
		MageTable,
		[InternalName("blackforge")]
		BlackForge,
		[InternalName("piece_preptable")]
		FoodPreparationTable,
		[InternalName("piece_MeadCauldron")]
		MeadKetill,
		Custom
	}
	[PublicAPI]
	internal enum ConversionPiece
	{
		Disabled,
		[InternalName("smelter")]
		Smelter,
		[InternalName("charcoal_kiln")]
		CharcoalKiln,
		[InternalName("blastfurnace")]
		BlastFurnace,
		[InternalName("windmill")]
		Windmill,
		[InternalName("piece_spinningwheel")]
		SpinningWheel,
		[InternalName("eitrrefinery")]
		EitrRefinery,
		Custom
	}
	[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(1)]
	[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(0)]
	internal class InternalName : Attribute
	{
		public readonly string internalName;

		public InternalName(string internalName)
		{
			this.internalName = internalName;
		}
	}
	[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(0)]
	[PublicAPI]
	[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(1)]
	internal class RequiredResourceList
	{
		public readonly List<Requirement> Requirements = new List<Requirement>();

		public bool Free;

		public void Add(string itemName, int amount, int quality = 0)
		{
			Requirements.Add(new Requirement
			{
				itemName = itemName,
				amount = amount,
				quality = quality
			});
		}

		public void Add(string itemName, ConfigEntry<int> amountConfig, int quality = 0)
		{
			Requirements.Add(new Requirement
			{
				itemName = itemName,
				amountConfig = amountConfig,
				quality = quality
			});
		}
	}
	[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(0)]
	[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(1)]
	[PublicAPI]
	internal class CraftingStationList
	{
		public readonly List<CraftingStationConfig> Stations = new List<CraftingStationConfig>();

		public void Add(CraftingTable table, int level)
		{
			Stations.Add(new CraftingStationConfig
			{
				Table = table,
				level = level
			});
		}

		public void Add(string customTable, int level)
		{
			Stations.Add(new CraftingStationConfig
			{
				Table = CraftingTable.Custom,
				level = level,
				custom = customTable
			});
		}
	}
	[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(1)]
	[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(0)]
	[PublicAPI]
	internal class ItemRecipe
	{
		public readonly RequiredResourceList RequiredItems = new RequiredResourceList();

		public readonly RequiredResourceList RequiredUpgradeItems = new RequiredResourceList();

		public readonly CraftingStationList Crafting = new CraftingStationList();

		public int CraftAmount = 1;

		public bool RequireOnlyOneIngredient;

		public float QualityResultAmountMultiplier = 1f;

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
		public ConfigEntryBase RecipeIsActive;
	}
	[PublicAPI]
	internal class Trade
	{
		public Trader Trader;

		public uint Price;

		public uint Stack = 1u;

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
		public string RequiredGlobalKey;
	}
	[PublicAPI]
	[Flags]
	internal enum Trader
	{
		None = 0,
		Haldor = 1,
		Hildir = 2
	}
	internal struct Requirement
	{
		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(1)]
		public string itemName;

		public int amount;

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
		public ConfigEntry<int> amountConfig;

		[Description("Set to a non-zero value to apply the requirement only for a specific quality")]
		public int quality;
	}
	internal struct CraftingStationConfig
	{
		public CraftingTable Table;

		public int level;

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
		public string custom;
	}
	[Flags]
	internal enum Configurability
	{
		Disabled = 0,
		Recipe = 1,
		Stats = 2,
		Drop = 4,
		Trader = 8,
		Full = 0xF
	}
	[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(0)]
	[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(1)]
	[PublicAPI]
	internal class DropTargets
	{
		public readonly List<DropTarget> Drops = new List<DropTarget>();

		public void Add(string creatureName, float chance, int min = 1, int? max = null, bool levelMultiplier = true)
		{
			Drops.Add(new DropTarget
			{
				creature = creatureName,
				chance = chance,
				min = min,
				max = max.GetValueOrDefault(min),
				levelMultiplier = levelMultiplier
			});
		}
	}
	internal struct DropTarget
	{
		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(1)]
		public string creature;

		public int min;

		public int max;

		public float chance;

		public bool levelMultiplier;
	}
	internal enum Toggle
	{
		On = 1,
		Off = 0
	}
	[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(0)]
	[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(1)]
	[PublicAPI]
	internal class Item
	{
		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(0)]
		private class ItemConfig
		{
			[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(new byte[] { 2, 1 })]
			public ConfigEntry<string> craft;

			[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(new byte[] { 2, 1 })]
			public ConfigEntry<string> upgrade;

			public ConfigEntry<CraftingTable> table;

			public ConfigEntry<int> tableLevel;

			public ConfigEntry<string> customTable;

			[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
			public ConfigEntry<int> maximumTableLevel;

			public ConfigEntry<Toggle> requireOneIngredient;

			public ConfigEntry<float> qualityResultAmountMultiplier;
		}

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(0)]
		private class TraderConfig
		{
			public ConfigEntry<Trader> trader;

			public ConfigEntry<uint> price;

			public ConfigEntry<uint> stack;

			public ConfigEntry<string> requiredGlobalKey;
		}

		[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)]
		private class RequirementQuality
		{
			public int quality;
		}

		[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(2)]
		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(0)]
		private class ConfigurationManagerAttributes
		{
			[UsedImplicitly]
			public int? Order;

			[UsedImplicitly]
			public bool? Browsable;

			[UsedImplicitly]
			public string Category;

			[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(new byte[] { 2, 1 })]
			[UsedImplicitly]
			public Action<ConfigEntryBase> CustomDrawer;

			public Func<bool> browsability;
		}

		[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)]
		[PublicAPI]
		public enum DamageModifier
		{
			Normal,
			Resistant,
			Weak,
			Immune,
			Ignore,
			VeryResistant,
			VeryWeak,
			None
		}

		[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)]
		private delegate void setDmgFunc(ref DamageTypes dmg, float value);

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(0)]
		private class SerializedRequirements
		{
			public readonly List<Requirement> Reqs;

			public SerializedRequirements(List<Requirement> reqs)
			{
				Reqs = reqs;
			}

			public SerializedRequirements(string reqs)
				: this(reqs.Split(new char[1] { ',' }).Select([<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (string r) =>
				{
					string[] array = r.Split(new char[1] { ':' });
					Requirement result = default(Requirement);
					result.itemName = array[0];
					result.amount = ((array.Length <= 1 || !int.TryParse(array[1], out var result2)) ? 1 : result2);
					result.quality = ((array.Length > 2 && int.TryParse(array[2], out var result3)) ? result3 : 0);
					return result;
				}).ToList())
			{
			}

			public override string ToString()
			{
				return string.Join(",", Reqs.Select([<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (Requirement r) => $"{r.itemName}:{r.amount}" + ((r.quality > 0) ? $":{r.quality}" : "")));
			}

			[return: <e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
			public static ItemDrop fetchByName(ObjectDB objectDB, string name)
			{
				GameObject itemPrefab = objectDB.GetItemPrefab(name);
				ItemDrop obj = ((itemPrefab != null) ? itemPrefab.GetComponent<ItemDrop>() : null);
				if ((Object)(object)obj == (Object)null)
				{
					Debug.LogWarning((object)("The required item '" + name + "' does not exist."));
				}
				return obj;
			}

			public static Requirement[] toPieceReqs(ObjectDB objectDB, SerializedRequirements craft, SerializedRequirements upgrade)
			{
				//IL_00f0: Unknown result type (might be due to invalid IL or missing references)
				//IL_00f5: Unknown result type (might be due to invalid IL or missing references)
				//IL_00fd: Unknown result type (might be due to invalid IL or missing references)
				//IL_0178: Unknown result type (might be due to invalid IL or missing references)
				//IL_017d: Unknown result type (might be due to invalid IL or missing references)
				//IL_0185: Unknown result type (might be due to invalid IL or missing references)
				//IL_018c: Unknown result type (might be due to invalid IL or missing references)
				//IL_018f: Expected O, but got Unknown
				//IL_0194: Expected O, but got Unknown
				//IL_011c: Unknown result type (might be due to invalid IL or missing references)
				//IL_0125: Expected O, but got Unknown
				Dictionary<string, Requirement> dictionary = craft.Reqs.Where((Requirement r) => r.itemName != "").ToDictionary((Func<Requirement, string>)([<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (Requirement r) => r.itemName), (Func<Requirement, Requirement>)([<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (Requirement r) =>
				{
					//IL_000d: Unknown result type (might be due to invalid IL or missing references)
					//IL_0012: Unknown result type (might be due to invalid IL or missing references)
					//IL_002f: Unknown result type (might be due to invalid IL or missing references)
					//IL_0036: Unknown result type (might be due to invalid IL or missing references)
					//IL_003e: Expected O, but got Unknown
					ItemDrop val6 = ResItem(r);
					return (val6 != null) ? new Requirement
					{
						m_amount = (r.amountConfig?.Value ?? r.amount),
						m_resItem = val6,
						m_amountPerLevel = 0
					} : ((Requirement)null);
				}));
				List<Requirement> list = dictionary.Values.Where([<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (Requirement v) => v != null).ToList();
				foreach (Requirement item in upgrade.Reqs.Where((Requirement r) => r.itemName != ""))
				{
					if (item.quality > 0)
					{
						ItemDrop val = ResItem(item);
						if (val != null)
						{
							Requirement val2 = new Requirement
							{
								m_resItem = val,
								m_amountPerLevel = (item.amountConfig?.Value ?? item.amount),
								m_amount = 0
							};
							list.Add(val2);
							requirementQuality.Add(val2, new RequirementQuality
							{
								quality = item.quality
							});
						}
						continue;
					}
					if (!dictionary.TryGetValue(item.itemName, out var value) || value == null)
					{
						ItemDrop val3 = ResItem(item);
						if (val3 != null)
						{
							string itemName = item.itemName;
							Requirement val4 = new Requirement
							{
								m_resItem = val3,
								m_amount = 0
							};
							Requirement val5 = val4;
							dictionary[itemName] = val4;
							value = val5;
							list.Add(value);
						}
					}
					if (value != null)
					{
						value.m_amountPerLevel = item.amountConfig?.Value ?? item.amount;
					}
				}
				return list.ToArray();
				[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(2)]
				ItemDrop ResItem(Requirement r)
				{
					return fetchByName(objectDB, r.itemName);
				}
			}
		}

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(0)]
		private class SerializedDrop
		{
			public readonly List<DropTarget> Drops;

			public SerializedDrop(List<DropTarget> drops)
			{
				Drops = drops;
			}

			public SerializedDrop(string drops)
			{
				Drops = ((drops == "") ? ((IEnumerable<string>)Array.Empty<string>()) : ((IEnumerable<string>)drops.Split(new char[1] { ',' }))).Select([<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (string r) =>
				{
					string[] array = r.Split(new char[1] { ':' });
					if (array.Length <= 2 || !int.TryParse(array[2], out var result))
					{
						result = 1;
					}
					if (array.Length <= 3 || !int.TryParse(array[3], out var result2))
					{
						result2 = result;
					}
					bool levelMultiplier = array.Length <= 4 || array[4] != "0";
					DropTarget result3 = default(DropTarget);
					result3.creature = array[0];
					result3.chance = ((array.Length > 1 && float.TryParse(array[1], out var result4)) ? result4 : 1f);
					result3.min = result;
					result3.max = result2;
					result3.levelMultiplier = levelMultiplier;
					return result3;
				}).ToList();
			}

			public override string ToString()
			{
				return string.Join(",", Drops.Select([<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (DropTarget r) => $"{r.creature}:{r.chance.ToString(CultureInfo.InvariantCulture)}:{r.min}:" + ((r.min == r.max) ? "" : $"{r.max}") + (r.levelMultiplier ? "" : ":0")));
			}

			[return: <e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
			private static Character fetchByName(ZNetScene netScene, string name)
			{
				GameObject prefab = netScene.GetPrefab(name);
				Character obj = ((prefab != null) ? prefab.GetComponent<Character>() : null);
				if ((Object)(object)obj == (Object)null)
				{
					Debug.LogWarning((object)("The drop target character '" + name + "' does not exist."));
				}
				return obj;
			}

			public Dictionary<Character, Drop> toCharacterDrops(ZNetScene netScene, GameObject item)
			{
				//IL_002e: Unknown result type (might be due to invalid IL or missing references)
				//IL_0033: Unknown result type (might be due to invalid IL or missing references)
				//IL_003a: Unknown result type (might be due to invalid IL or missing references)
				//IL_0046: Unknown result type (might be due to invalid IL or missing references)
				//IL_0052: Unknown result type (might be due to invalid IL or missing references)
				//IL_005e: Unknown result type (might be due to invalid IL or missing references)
				//IL_006f: Expected O, but got Unknown
				Dictionary<Character, Drop> dictionary = new Dictionary<Character, Drop>();
				foreach (DropTarget drop in Drops)
				{
					Character val = fetchByName(netScene, drop.creature);
					if (val != null)
					{
						dictionary[val] = new Drop
						{
							m_prefab = item,
							m_amountMin = drop.min,
							m_amountMax = drop.max,
							m_chance = drop.chance,
							m_levelMultiplier = drop.levelMultiplier
						};
					}
				}
				return dictionary;
			}
		}

		private static readonly List<Item> registeredItems = new List<Item>();

		private static readonly Dictionary<ItemDrop, Item> itemDropMap = new Dictionary<ItemDrop, Item>();

		private static Dictionary<Item, Dictionary<string, List<Recipe>>> activeRecipes = new Dictionary<Item, Dictionary<string, List<Recipe>>>();

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(new byte[] { 1, 1, 2 })]
		private static Dictionary<Recipe, ConfigEntryBase> hiddenCraftRecipes = new Dictionary<Recipe, ConfigEntryBase>();

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(new byte[] { 1, 1, 2 })]
		private static Dictionary<Recipe, ConfigEntryBase> hiddenUpgradeRecipes = new Dictionary<Recipe, ConfigEntryBase>();

		private static Dictionary<Item, Dictionary<string, ItemConfig>> itemCraftConfigs = new Dictionary<Item, Dictionary<string, ItemConfig>>();

		private static Dictionary<Item, ConfigEntry<string>> itemDropConfigs = new Dictionary<Item, ConfigEntry<string>>();

		private Dictionary<CharacterDrop, Drop> characterDrops = new Dictionary<CharacterDrop, Drop>();

		private readonly Dictionary<ConfigEntryBase, Action> statsConfigs = new Dictionary<ConfigEntryBase, Action>();

		private static readonly ConditionalWeakTable<Requirement, RequirementQuality> requirementQuality = new ConditionalWeakTable<Requirement, RequirementQuality>();

		public static Configurability DefaultConfigurability = Configurability.Full;

		public Configurability? Configurable;

		private Configurability configurationVisible = Configurability.Full;

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
		private TraderConfig traderConfig;

		public readonly GameObject Prefab;

		[Description("Specifies the maximum required crafting station level to upgrade and repair the item.\nDefault is calculated from crafting station level and maximum quality.")]
		public int MaximumRequiredStationLevel = int.MaxValue;

		[Description("Assigns the item as a drop item to a creature.\nUses a creature name, a drop chance and a minimum and maximum amount.")]
		public readonly DropTargets DropsFrom = new DropTargets();

		[Description("Configures whether the item can be bought at the trader.\nDon't forget to set cost to something above 0 or the item will be sold for free.")]
		public readonly Trade Trade = new Trade();

		internal List<Conversion> Conversions = new List<Conversion>();

		internal List<ItemConversion> conversions = new List<ItemConversion>();

		public Dictionary<string, ItemRecipe> Recipes = new Dictionary<string, ItemRecipe>();

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
		private static object configManager;

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
		private static Localization _english;

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
		private static BaseUnityPlugin _plugin;

		private static bool hasConfigSync = true;

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
		private static object _configSync;

		private Configurability configurability => Configurable ?? DefaultConfigurability;

		[Description("Specifies the resources needed to craft the item.\nUse .Add to add resources with their internal ID and an amount.\nUse one .Add for each resource type the item should need.")]
		public RequiredResourceList RequiredItems => this[""].RequiredItems;

		[Description("Specifies the resources needed to upgrade the item.\nUse .Add to add resources with their internal ID and an amount. This amount will be multipled by the item quality level.\nUse one .Add for each resource type the upgrade should need.")]
		public RequiredResourceList RequiredUpgradeItems => this[""].RequiredUpgradeItems;

		[Description("Specifies the crafting station needed to craft the item.\nUse .Add to add a crafting station, using the CraftingTable enum and a minimum level for the crafting station.\nUse one .Add for each crafting station.")]
		public CraftingStationList Crafting => this[""].Crafting;

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
		[Description("Specifies a config entry which toggles whether a recipe is active.")]
		public ConfigEntryBase RecipeIsActive
		{
			[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(2)]
			get
			{
				return this[""].RecipeIsActive;
			}
			[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(2)]
			set
			{
				this[""].RecipeIsActive = value;
			}
		}

		[Description("Specifies the number of items that should be given to the player with a single craft of the item.\nDefaults to 1.")]
		public int CraftAmount
		{
			get
			{
				return this[""].CraftAmount;
			}
			set
			{
				this[""].CraftAmount = value;
			}
		}

		public bool RequireOnlyOneIngredient
		{
			get
			{
				return this[""].RequireOnlyOneIngredient;
			}
			set
			{
				this[""].RequireOnlyOneIngredient = value;
			}
		}

		public float QualityResultAmountMultiplier
		{
			get
			{
				return this[""].QualityResultAmountMultiplier;
			}
			set
			{
				this[""].QualityResultAmountMultiplier = value;
			}
		}

		public ItemRecipe this[string name]
		{
			get
			{
				if (Recipes.TryGetValue(name, out var value))
				{
					return value;
				}
				return Recipes[name] = new ItemRecipe();
			}
		}

		private static Localization english => _english ?? (_english = LocalizationCache.ForLanguage("English"));

		private static BaseUnityPlugin plugin
		{
			get
			{
				//IL_009b: Unknown result type (might be due to invalid IL or missing references)
				//IL_00a5: Expected O, but got Unknown
				if (_plugin == null)
				{
					IEnumerable<TypeInfo> source;
					try
					{
						source = Assembly.GetExecutingAssembly().DefinedTypes.ToList();
					}
					catch (ReflectionTypeLoadException ex)
					{
						source = from t in ex.Types
							where t != null
							select t.GetTypeInfo();
					}
					_plugin = (BaseUnityPlugin)Chainloader.ManagerObject.GetComponent((Type)source.First([<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (TypeInfo t) => t.IsClass && typeof(BaseUnityPlugin).IsAssignableFrom(t)));
				}
				return _plugin;
			}
		}

		[<e99c0a3c-6eca-41e7-a8ae-bd32cc40821b>Nullable(2)]
		private static object configSync
		{
			[<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(2)]
			get
			{
				if (_configSync == null && hasConfigSync)
				{
					Type type = Assembly.GetExecutingAssembly().GetType("ServerSync.ConfigSync");
					if ((object)type != null)
					{
						_configSync = Activator.CreateInstance(type, plugin.Info.Metadata.GUID + " ItemManager");
						type.GetField("CurrentVersion").SetValue(_configSync, plugin.Info.Metadata.Version.ToString());
						type.GetProperty("IsLocked").SetValue(_configSync, true);
					}
					else
					{
						hasConfigSync = false;
					}
				}
				return _configSync;
			}
		}

		public Item(string assetBundleFileName, string prefabName, string folderName = "assets")
			: this(PrefabManager.RegisterAssetBundle(assetBundleFileName, folderName), prefabName)
		{
		}

		public Item(AssetBundle bundle, string prefabName)
			: this(PrefabManager.RegisterPrefab(bundle, prefabName, addToObjectDb: true), skipRegistering: true)
		{
		}

		public Item(GameObject prefab, bool skipRegistering = false)
		{
			if (!skipRegistering)
			{
				PrefabManager.RegisterPrefab(prefab, addToObjectDb: true);
			}
			Prefab = prefab;
			registeredItems.Add(this);
			itemDropMap[Prefab.GetComponent<ItemDrop>()] = this;
			Prefab.GetComponent<ItemDrop>().m_itemData.m_dropPrefab = Prefab;
		}

		public void ToggleConfigurationVisibility(Configurability visible)
		{
			configurationVisible = visible;
			if (itemDropConfigs.TryGetValue(this, out var value))
			{
				Toggle((ConfigEntryBase)(object)value, Configurability.Drop);
			}
			if (itemCraftConfigs.TryGetValue(this, out var value2))
			{
				foreach (ItemConfig value4 in value2.Values)
				{
					ToggleObj(value4, Configurability.Recipe);
				}
			}
			foreach (Conversion conversion in Conversions)
			{
				if (conversion.config != null)
				{
					ToggleObj(conversion.config, Configurability.Recipe);
				}
			}
			foreach (KeyValuePair<ConfigEntryBase, Action> statsConfig in statsConfigs)
			{
				Toggle(statsConfig.Key, Configurability.Stats);
				if ((visible & Configurability.Stats) != 0)
				{
					statsConfig.Value();
				}
			}
			reloadConfigDisplay();
			void Toggle(ConfigEntryBase cfg, Configurability check)
			{
				object[] tags = cfg.Description.Tags;
				for (int j = 0; j < tags.Length; j++)
				{
					if (tags[j] is ConfigurationManagerAttributes configurationManagerAttributes)
					{
						configurationManagerAttributes.Browsable = (visible & check) != 0 && (configurationManagerAttributes.browsability == null || configurationManagerAttributes.browsability());
					}
				}
			}
			void ToggleObj(object obj, Configurability check)
			{
				FieldInfo[] fields = obj.GetType().GetFields();
				for (int i = 0; i < fields.Length; i++)
				{
					object? value3 = fields[i].GetValue(obj);
					ConfigEntryBase val = (ConfigEntryBase)((value3 is ConfigEntryBase) ? value3 : null);
					if (val != null)
					{
						Toggle(val, check);
					}
				}
			}
		}

		internal static void reloadConfigDisplay()
		{
			object obj = configManager?.GetType().GetProperty("DisplayingWindow").GetValue(configManager);
			if (obj is bool && (bool)obj)
			{
				configManager.GetType().GetMethod("BuildSettingList").Invoke(configManager, Array.Empty<object>());
			}
		}

		private void UpdateItemTableConfig(string recipeKey, CraftingTable table, string customTableValue)
		{
			if (activeRecipes.ContainsKey(this) && activeRecipes[this].TryGetValue(recipeKey, out var value))
			{
				value.First().m_enabled = table != CraftingTable.Disabled;
				if ((uint)table <= 1u)
				{
					value.First().m_craftingStation = null;
				}
				else if (table == CraftingTable.Custom)
				{
					Recipe obj = value.First();
					GameObject prefab = ZNetScene.instance.GetPrefab(customTableValue);
					obj.m_craftingStation = ((prefab != null) ? prefab.GetComponent<CraftingStation>() : null);
				}
				else
				{
					value.First().m_craftingStation = ZNetScene.instance.GetPrefab(getInternalName(table)).GetComponent<CraftingStation>();
				}
			}
		}

		private void UpdateCraftConfig(string recipeKey, SerializedRequirements craftRequirements, SerializedRequirements upgradeRequirements)
		{
			if (!Object.op_Implicit((Object)(object)ObjectDB.instance) || !activeRecipes.ContainsKey(this) || !activeRecipes[this].TryGetValue(recipeKey, out var value))
			{
				return;
			}
			foreach (Recipe item in value)
			{
				item.m_resources = SerializedRequirements.toPieceReqs(ObjectDB.instance, craftRequirements, upgradeRequirements);
			}
		}

		internal static void Patch_FejdStartup()
		{
			//IL_0f3d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0f42: Unknown result type (might be due to invalid IL or missing references)
			//IL_2208: Unknown result type (might be due to invalid IL or missing references)
			//IL_2212: Expected O, but got Unknown
			//IL_1006: Unknown result type (might be due to invalid IL or missing references)
			//IL_1009: Unknown result type (might be due to invalid IL or missing references)
			//IL_105f: Expected I4, but got Unknown
			//IL_0c2c: Unknown result type (might be due to invalid IL or missing references)
			//IL_0c36: Expected O, but got Unknown
			//IL_1193: Unknown result type (might be due to invalid IL or missing references)
			//IL_1196: Unknown result type (might be due to invalid IL or missing references)
			//IL_1198: Invalid comparison between Unknown and I4
			//IL_036f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0379: Expected O, but got Unknown
			//IL_119a: Unknown result type (might be due to invalid IL or missing references)
			//IL_119e: Invalid comparison between Unknown and I4
			//IL_0d4f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0d59: Expected O, but got Unknown
			//IL_0dfa: Unknown result type (might be due to invalid IL or missing references)
			//IL_0e04: Expected O, but got Unknown
			//IL_11a0: Unknown result type (might be due to invalid IL or missing references)
			//IL_11a4: Invalid comparison between Unknown and I4
			//IL_0eae: Unknown result type (might be due to invalid IL or missing references)
			//IL_0eb8: Expected O, but got Unknown
			//IL_139f: Unknown result type (might be due to invalid IL or missing references)
			//IL_13a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_13a4: Invalid comparison between Unknown and I4
			//IL_0462: Unknown result type (might be due to invalid IL or missing references)
			//IL_046c: Expected O, but got Unknown
			//IL_13a6: Unknown result type (might be due to invalid IL or missing references)
			//IL_13aa: Unknown result type (might be due to invalid IL or missing references)
			//IL_13ac: Invalid comparison between Unknown and I4
			//IL_13ae: Unknown result type (might be due to invalid IL or missing references)
			//IL_13b2: Invalid comparison between Unknown and I4
			//IL_059d: Unknown result type (might be due to invalid IL or missing references)
			//IL_05a7: Expected O, but got Unknown
			//IL_1487: Unknown result type (might be due to invalid IL or missing references)
			//IL_148c: Unknown result type (might be due to invalid IL or missing references)
			//IL_148e: Unknown result type (might be due to invalid IL or missing references)
			//IL_1491: Invalid comparison between Unknown and I4
			//IL_1493: Unknown result type (might be due to invalid IL or missing references)
			//IL_1497: Invalid comparison between Unknown and I4
			//IL_06b5: Unknown result type (might be due to invalid IL or missing references)
			//IL_06bf: Expected O, but got Unknown
			//IL_1506: Unknown result type (might be due to invalid IL or missing references)
			//IL_1509: Unknown result type (might be due to invalid IL or missing references)
			//IL_150b: Invalid comparison between Unknown and I4
			//IL_150d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1511: Unknown result type (might be due to invalid IL or missing references)
			//IL_1513: Invalid comparison between Unknown and I4
			//IL_0794: Unknown result type (might be due to invalid IL or missing references)
			//IL_079e: Expected O, but got Unknown
			//IL_1515: Unknown result type (might be due to invalid IL or missing references)
			//IL_1519: Invalid comparison between Unknown and I4
			//IL_1656: Unknown result type (might be due to invalid IL or missing references)
			//IL_1659: Invalid comparison between Unknown and I4
			//IL_089e: Unknown result type (might be due to invalid IL or missing references)
			//IL_08a8: Expected O, but got Unknown
			//IL_1856: Unknown result type (might be due to invalid IL or missing references)
			//IL_185d: Invalid comparison between Unknown and I4
			//IL_1926: Unknown result type (might be due to invalid IL or missing references)
			//IL_192b: Unknown result type (might be due to invalid IL or missing references)
			//IL_192d: Unknown result type (might be due to invalid IL or missing references)
			//IL_1931: Unknown result type (might be due to invalid IL or missing references)
			//IL_1933: Invalid comparison between Unknown and I4
			//IL_19a2: Unknown result type (might be due to invalid IL or missing references)
			//IL_19a5: Unknown result type (might be due to invalid IL or missing references)
			//IL_19a7: Invalid comparison between Unknown and I4
			//IL_15cc: Unknown result type (might be due to invalid IL or missing references)
			//IL_15d1: Unknown result type (might be due to invalid IL or missing references)
			//IL_19a9: Unknown result type (might be due to invalid IL or missing references)
			//IL_19ad: Invalid comparison between Unknown and I4
			//IL_19af: Unknown result type (might be due to invalid IL or missing references)
			//IL_19b3: Invalid comparison between Unknown and I4
			//IL_1e20: Unknown result type (might be due to invalid IL or missing references)
			//IL_1e23: Invalid comparison between Unknown and I4
			Type type = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault([<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (Assembly a) => a.GetName().Name == "ConfigurationManager")?.GetType("ConfigurationManager.ConfigurationManager");
			if (DefaultConfigurability != 0)
			{
				bool saveOnConfigSet = plugin.Config.SaveOnConfigSet;
				plugin.Config.SaveOnConfigSet = false;
				foreach (Item item4 in registeredItems.Where([<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (Item i) => i.configurability != Configurability.Disabled))
				{
					Item item3 = item4;
					string name2 = item3.Prefab.GetComponent<ItemDrop>().m_itemData.m_shared.m_name;
					string englishName = new Regex("['\\[\"\\]]").Replace(english.Localize(name2), "").Trim();
					string localizedName = Localization.instance.Localize(name2).Trim();
					int order = 0;
					if ((item3.configurability & Configurability.Recipe) != 0)
					{
						itemCraftConfigs[item3] = new Dictionary<string, ItemConfig>();
						foreach (string item5 in item3.Recipes.Keys.DefaultIfEmpty(""))
						{
							string configKey = item5;
							string text = ((configKey == "") ? "" : (" (" + configKey + ")"));
							if (configKey == "")
							{
								Configurability? configurable = item3.Configurable;
								if (configurable.HasValue && item3.Crafting.Stations.Count == 0)
								{
									item3.Crafting.Add(CraftingTable.Disabled, 1);
								}
							}
							if (!item3.Recipes.ContainsKey(configKey) || item3.Recipes[configKey].Crafting.Stations.Count <= 0)
							{
								continue;
							}
							ItemConfig itemConfig2 = (itemCraftConfigs[item3][configKey] = new ItemConfig());
							ItemConfig cfg = itemConfig2;
							List<ConfigurationManagerAttributes> hideWhenNoneAttributes = new List<ConfigurationManagerAttributes>();
							cfg.table = config(englishName, "Crafting Station" + text, item3.Recipes[configKey].Crafting.Stations.First().Table, new ConfigDescription("Crafting station where " + englishName + " is available.", (AcceptableValueBase)null, new object[1]
							{
								new ConfigurationManagerAttributes
								{
									Order = (order -= 1),
									Browsable = ((item3.configurationVisible & Configurability.Recipe) != 0),
									Category = localizedName
								}
							}));
							ConfigurationManagerAttributes customTableAttributes = new ConfigurationManagerAttributes
							{
								Order = (order -= 1),
								browsability = CustomTableBrowsability,
								Browsable = (CustomTableBrowsability() && (item3.configurationVisible & Configurability.Recipe) != 0),
								Category = localizedName
							};
							cfg.customTable = config(englishName, "Custom Crafting Station" + text, item3.Recipes[configKey].Crafting.Stations.First().custom ?? "", new ConfigDescription("", (AcceptableValueBase)null, new object[1] { customTableAttributes }));
							cfg.table.SettingChanged += TableConfigChanged;
							cfg.customTable.SettingChanged += TableConfigChanged;
							ConfigurationManagerAttributes configurationManagerAttributes = new ConfigurationManagerAttributes
							{
								Order = (order -= 1),
								browsability = TableLevelBrowsability,
								Browsable = (TableLevelBrowsability() && (item3.configurationVisible & Configurability.Recipe) != 0),
								Category = localizedName
							};
							hideWhenNoneAttributes.Add(configurationManagerAttributes);
							cfg.tableLevel = config(englishName, "Crafting Station Level" + text, item3.Recipes[configKey].Crafting.Stations.First().level, new ConfigDescription("Required crafting station level to craft " + englishName + ".", (AcceptableValueBase)null, new object[1] { configurationManagerAttributes }));
							cfg.tableLevel.SettingChanged += [<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (object _, EventArgs _) =>
							{
								if (activeRecipes.ContainsKey(item3) && activeRecipes[item3].TryGetValue(configKey, out var value6))
								{
									value6.First().m_minStationLevel = cfg.tableLevel.Value;
								}
							};
							if (item3.Prefab.GetComponent<ItemDrop>().m_itemData.m_shared.m_maxQuality > 1)
							{
								cfg.maximumTableLevel = config(englishName, "Maximum Crafting Station Level" + text, (item3.MaximumRequiredStationLevel == int.MaxValue) ? (item3.Recipes[configKey].Crafting.Stations.First().level + item3.Prefab.GetComponent<ItemDrop>().m_itemData.m_shared.m_maxQuality - 1) : item3.MaximumRequiredStationLevel, new ConfigDescription("Maximum crafting station level to upgrade and repair " + englishName + ".", (AcceptableValueBase)null, new object[1] { configurationManagerAttributes }));
							}
							cfg.requireOneIngredient = config(englishName, "Require only one resource" + text, item3.Recipes[configKey].RequireOnlyOneIngredient ? Toggle.On : Toggle.Off, new ConfigDescription("Whether only one of the ingredients is needed to craft " + englishName, (AcceptableValueBase)null, new object[1]
							{
								new ConfigurationManagerAttributes
								{
									Order = (order -= 1),
									browsability = TableLevelBrowsability,
									Browsable = (TableLevelBrowsability() && (item3.configurationVisible & Configurability.Recipe) != 0),
									Category = localizedName
								}
							}));
							ConfigurationManagerAttributes qualityResultAttributes = new ConfigurationManagerAttributes
							{
								Order = (order -= 1),
								browsability = QualityResultBrowsability,
								Browsable = (QualityResultBrowsability() && (item3.configurationVisible & Configurability.Recipe) != 0),
								Category = localizedName
							};
							cfg.requireOneIngredient.SettingChanged += [<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (object _, EventArgs _) =>
							{
								if (activeRecipes.ContainsKey(item3) && activeRecipes[item3].TryGetValue(configKey, out var value5))
								{
									foreach (Recipe item6 in value5)
									{
										item6.m_requireOnlyOneIngredient = cfg.requireOneIngredient.Value == Toggle.On;
									}
								}
								qualityResultAttributes.Browsable = QualityResultBrowsability();
								reloadConfigDisplay();
							};
							cfg.qualityResultAmountMultiplier = config(englishName, "Quality Multiplier" + text, item3.Recipes[configKey].QualityResultAmountMultiplier, new ConfigDescription("Multiplies the crafted amount based on the quality of the resources when crafting " + englishName + ". Only works, if Require Only One Resource is true.", (AcceptableValueBase)null, new object[1] { qualityResultAttributes }));
							cfg.qualityResultAmountMultiplier.SettingChanged += [<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (object _, EventArgs _) =>
							{
								if (activeRecipes.ContainsKey(item3) && activeRecipes[item3].TryGetValue(configKey, out var value4))
								{
									foreach (Recipe item7 in value4)
									{
										item7.m_qualityResultAmountMultiplier = cfg.qualityResultAmountMultiplier.Value;
									}
								}
							};
							if ((!item3.Recipes[configKey].RequiredItems.Free || item3.Recipes[configKey].RequiredItems.Requirements.Count > 0) && item3.Recipes[configKey].RequiredItems.Requirements.All((Requirement r) => r.amountConfig == null))
							{
								cfg.craft = itemConfig("Crafting Costs" + text, new SerializedRequirements(item3.Recipes[configKey].RequiredItems.Requirements).ToString(), "Item costs to craft " + englishName, isUpgrade: false);
							}
							if (item3.Prefab.GetComponent<ItemDrop>().m_itemData.m_shared.m_maxQuality > 1 && (!item3.Recipes[configKey].RequiredUpgradeItems.Free || item3.Recipes[configKey].RequiredUpgradeItems.Requirements.Count > 0) && item3.Recipes[configKey].RequiredUpgradeItems.Requirements.All((Requirement r) => r.amountConfig == null))
							{
								cfg.upgrade = itemConfig("Upgrading Costs" + text, new SerializedRequirements(item3.Recipes[configKey].RequiredUpgradeItems.Requirements).ToString(), "Item costs per level to upgrade " + englishName, isUpgrade: true);
							}
							if (cfg.craft != null)
							{
								cfg.craft.SettingChanged += ConfigChanged;
							}
							if (cfg.upgrade != null)
							{
								cfg.upgrade.SettingChanged += ConfigChanged;
							}
							void ConfigChanged(object o, EventArgs e)
							{
								item3.UpdateCraftConfig(configKey, new SerializedRequirements(cfg.craft?.Value ?? ""), new SerializedRequirements(cfg.upgrade?.Value ?? ""));
							}
							bool CustomTableBrowsability()
							{
								return cfg.table.Value == CraftingTable.Custom;
							}
							bool ItemBrowsability()
							{
								return cfg.table.Value != CraftingTable.Disabled;
							}
							bool QualityResultBrowsability()
							{
								return cfg.requireOneIngredient.Value == Toggle.On;
							}
							void TableConfigChanged(object o, EventArgs e)
							{
								item3.UpdateItemTableConfig(configKey, cfg.table.Value, cfg.customTable.Value);
								customTableAttributes.Browsable = cfg.table.Value == CraftingTable.Custom;
								foreach (ConfigurationManagerAttributes item8 in hideWhenNoneAttributes)
								{
									item8.Browsable = cfg.table.Value != CraftingTable.Disabled;
								}
								reloadConfigDisplay();
							}
							bool TableLevelBrowsability()
							{
								return cfg.table.Value != CraftingTable.Disabled;
							}
							ConfigEntry<string> itemConfig(string name, string value, string desc, bool isUpgrade)
							{
								//IL_00a7: Unknown result type (might be due to invalid IL or missing references)
								//IL_00b1: Expected O, but got Unknown
								ConfigurationManagerAttributes configurationManagerAttributes3 = new ConfigurationManagerAttributes
								{
									CustomDrawer = drawRequirementsConfigTable(item3, isUpgrade),
									Order = (order -= 1),
									browsability = ItemBrowsability,
									Browsable = (ItemBrowsability() && (item3.configurationVisible & Configurability.Recipe) != 0),
									Category = localizedName
								};
								hideWhenNoneAttributes.Add(configurationManagerAttributes3);
								return config(englishName, name, value, new ConfigDescription(desc, (AcceptableValueBase)null, new object[1] { configurationManagerAttributes3 }));
							}
						}
						if ((item3.configurability & Configurability.Drop) != 0)
						{
							ConfigEntry<string> val3 = (itemDropConfigs[item3] = config(englishName, "Drops from", new SerializedDrop(item3.DropsFrom.Drops).ToString(), new ConfigDescription(englishName + " drops from this creature.", (AcceptableValueBase)null, new object[1]
							{
								new ConfigurationManagerAttributes
								{
									CustomDrawer = drawDropsConfigTable,
									Category = localizedName,
									Browsable = ((item3.configurationVisible & Configurability.Drop) != 0)
								}
							})));
							val3.SettingChanged += [<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (object _, EventArgs _) =>
							{
								item3.UpdateCharacterDrop();
							};
						}
						for (int j = 0; j < item3.Conversions.Count; j++)
						{
							string text2 = ((item3.Conversions.Count > 1) ? $"{j + 1}. " : "");
							Conversion conversion = item3.Conversions[j];
							conversion.config = new Conversion.ConversionConfig();
							int index = j;
							conversion.config.input = config(englishName, text2 + "Conversion Input Item", conversion.Input, new ConfigDescription("Input item to create " + englishName, (AcceptableValueBase)null, new object[1]
							{
								new ConfigurationManagerAttributes
								{
									Category = localizedName,
									Browsable = ((item3.configurationVisible & Configurability.Recipe) != 0)
								}
							}));
							conversion.config.input.SettingChanged += [<f750da9a-9d67-4436-99a1-e5a2d2924096>NullableContext(0)] (object _, EventArgs _) =>
							{
								if (index < item3.conversions.Count)
								{
									ObjectDB instance = ObjectDB.instance;
									if (instance != null)
									{
										ItemDrop from = SerializedRequirements.fetchByName(instance, conversion.config.input.Value);
										item3.conversions[index].m_from = from;
										UpdatePiece();
									}
								}
							};
							conversion.config.piece = config(englishName, text2 + "Conversion Piece", conversion.Piece, new ConfigDescription("Conversion piece used to create " + englishName, (AcceptableValueBase)null, new object[1]
							{
								new ConfigurationManagerAttributes
								{
									Category = localizedName,
									Browsable = ((item3.configurationVisible & Configurability.Recipe) != 0)
								}
							}));
							conversion.config.piece.SettingChanged += [<f750da9a-9d67-4436-99a1-e5a2d2924096>Nullable