Decompiled source of HighQuotaRebalance Beta v0.10.4
OreoM.HQRebalance.dll
Decompiled a week ago
The result has been truncated due to the large size, download it to view full contents!
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using System.Text; using BepInEx; using BepInEx.Bootstrap; using BepInEx.Configuration; using BepInEx.Logging; using DunGen; using GameNetcodeStuff; using HQRebalance.Network; using HQRebalance.Patches; using HQRebalance.Utility; using HarmonyLib; using LethalConfig; using LethalConfig.ConfigItems; using LethalConfig.ConfigItems.Options; using Microsoft.CodeAnalysis; using OreoM.HQRebalance.NetcodePatcher; using Unity.Netcode; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: IgnoresAccessChecksTo("AmazingAssets.TerrainToMesh")] [assembly: IgnoresAccessChecksTo("Assembly-CSharp-firstpass")] [assembly: IgnoresAccessChecksTo("Assembly-CSharp")] [assembly: IgnoresAccessChecksTo("ClientNetworkTransform")] [assembly: IgnoresAccessChecksTo("com.olegknyazev.softmask")] [assembly: IgnoresAccessChecksTo("DissonanceVoip")] [assembly: IgnoresAccessChecksTo("EasyTextEffects")] [assembly: IgnoresAccessChecksTo("Facepunch Transport for Netcode for GameObjects")] [assembly: IgnoresAccessChecksTo("Facepunch.Steamworks.Win64")] [assembly: IgnoresAccessChecksTo("Unity.AI.Navigation")] [assembly: IgnoresAccessChecksTo("Unity.Animation.Rigging")] [assembly: IgnoresAccessChecksTo("Unity.Animation.Rigging.DocCodeExamples")] [assembly: IgnoresAccessChecksTo("Unity.Burst")] [assembly: IgnoresAccessChecksTo("Unity.Burst.Unsafe")] [assembly: IgnoresAccessChecksTo("Unity.Collections")] [assembly: IgnoresAccessChecksTo("Unity.Collections.LowLevel.ILSupport")] [assembly: IgnoresAccessChecksTo("Unity.InputSystem")] [assembly: IgnoresAccessChecksTo("Unity.InputSystem.ForUI")] [assembly: IgnoresAccessChecksTo("Unity.Jobs")] [assembly: IgnoresAccessChecksTo("Unity.Mathematics")] [assembly: IgnoresAccessChecksTo("Unity.Multiplayer.Tools.Common")] [assembly: IgnoresAccessChecksTo("Unity.Multiplayer.Tools.MetricTypes")] [assembly: IgnoresAccessChecksTo("Unity.Multiplayer.Tools.NetStats")] [assembly: IgnoresAccessChecksTo("Unity.Multiplayer.Tools.NetStatsMonitor.Component")] [assembly: IgnoresAccessChecksTo("Unity.Multiplayer.Tools.NetStatsMonitor.Configuration")] [assembly: IgnoresAccessChecksTo("Unity.Multiplayer.Tools.NetStatsMonitor.Implementation")] [assembly: IgnoresAccessChecksTo("Unity.Multiplayer.Tools.NetStatsReporting")] [assembly: IgnoresAccessChecksTo("Unity.Multiplayer.Tools.NetworkProfiler.Runtime")] [assembly: IgnoresAccessChecksTo("Unity.Multiplayer.Tools.NetworkSolutionInterface")] [assembly: IgnoresAccessChecksTo("Unity.Netcode.Components")] [assembly: IgnoresAccessChecksTo("Unity.Netcode.Runtime")] [assembly: IgnoresAccessChecksTo("Unity.Networking.Transport")] [assembly: IgnoresAccessChecksTo("Unity.ProBuilder.Csg")] [assembly: IgnoresAccessChecksTo("Unity.ProBuilder")] [assembly: IgnoresAccessChecksTo("Unity.ProBuilder.KdTree")] [assembly: IgnoresAccessChecksTo("Unity.ProBuilder.Poly2Tri")] [assembly: IgnoresAccessChecksTo("Unity.ProBuilder.Stl")] [assembly: IgnoresAccessChecksTo("Unity.Profiling.Core")] [assembly: IgnoresAccessChecksTo("Unity.RenderPipelines.Core.Runtime")] [assembly: IgnoresAccessChecksTo("Unity.RenderPipelines.Core.ShaderLibrary")] [assembly: IgnoresAccessChecksTo("Unity.RenderPipelines.HighDefinition.Config.Runtime")] [assembly: IgnoresAccessChecksTo("Unity.RenderPipelines.HighDefinition.Runtime")] [assembly: IgnoresAccessChecksTo("Unity.RenderPipelines.ShaderGraph.ShaderGraphLibrary")] [assembly: IgnoresAccessChecksTo("Unity.Services.Authentication")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Analytics")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Components")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Configuration")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Device")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Environments")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Environments.Internal")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Internal")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Networking")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Registration")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Scheduler")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Telemetry")] [assembly: IgnoresAccessChecksTo("Unity.Services.Core.Threading")] [assembly: IgnoresAccessChecksTo("Unity.Services.QoS")] [assembly: IgnoresAccessChecksTo("Unity.Services.Relay")] [assembly: IgnoresAccessChecksTo("Unity.TextMeshPro")] [assembly: IgnoresAccessChecksTo("Unity.Timeline")] [assembly: IgnoresAccessChecksTo("Unity.VisualEffectGraph.Runtime")] [assembly: IgnoresAccessChecksTo("UnityEngine.ARModule")] [assembly: IgnoresAccessChecksTo("UnityEngine.NVIDIAModule")] [assembly: IgnoresAccessChecksTo("UnityEngine.UI")] [assembly: AssemblyCompany("OreoM.HQRebalance")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("0.10.4.0")] [assembly: AssemblyInformationalVersion("0.10.4")] [assembly: AssemblyProduct("HQRebalance")] [assembly: AssemblyTitle("OreoM.HQRebalance")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("0.10.4.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] [module: NetcodePatchedAssembly] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace HQRebalance { internal class HQRConfig { public readonly Presets presetToUse; public readonly ConfigEntry<Presets> preset; public readonly ConfigEntry<bool> fireExitPatch; public readonly ConfigEntry<bool> butlerPatches; public readonly ConfigEntry<bool> addKnifeIcon; public readonly ConfigEntry<bool> disableStealthStab; public readonly ConfigEntry<bool> maneaterPatches; public readonly ConfigEntry<bool> applyNomalDamage; public readonly ConfigEntry<bool> cannotCryOrEatBeforeSeeingPlayer; public readonly ConfigEntry<bool> disableIncreasedSpawnChance; public readonly ConfigEntry<bool> jesterPatches; public readonly ConfigEntry<bool> disableSolidHitbox; public readonly ConfigEntry<float> pushForce; public readonly ConfigEntry<bool> scaleFollowTimerWithInteriorSize; public readonly ConfigEntry<float> followTimerScaling; public readonly ConfigEntry<bool> maskedPatches; public readonly ConfigEntry<bool> useMaskItem; public readonly ConfigEntry<int> maskValue; public readonly ConfigEntry<bool> mineshaftPatch; public readonly ConfigEntry<float> caveSize; public readonly ConfigEntry<float> facilityDelta; public readonly ConfigEntry<float> mapTileSize; public readonly ConfigEntry<bool> disableSingleItemDay; public readonly ConfigEntry<bool> difficultyScalingPatch; public readonly ConfigEntry<float> quotaScalingFactor; public readonly ConfigEntry<bool> infestationPatch; public readonly Dictionary<EnemyType, ConfigEntry<bool>> selectableEnemies; public readonly ConfigEntry<int> baseChance; public readonly ConfigEntry<int> boostedChance; public readonly ConfigEntry<int> daysLootedInARow; public readonly ConfigEntry<int> lootThreshold; public readonly ConfigEntry<bool> moonPatches; public readonly ConfigEntry<bool> tier3passPatch; public readonly ConfigEntry<int> tier3passPrice; public readonly ConfigEntry<int> artPrice; public readonly ConfigEntry<bool> luckPatch; public readonly ConfigEntry<LuckType> luckSystem; public readonly ConfigEntry<bool> disableCavesSignalPatch; public readonly ConfigEntry<bool> playerMovementPatches; public readonly ConfigEntry<bool> usePreV64GroundColision; public readonly ConfigEntry<float> speedLostToWaterCaves; public bool lethalConfigLoaded; public bool fairerFireExitsLoaded; public HQRConfig(ConfigFile cfg) { //IL_01a0: Unknown result type (might be due to invalid IL or missing references) //IL_01aa: Expected O, but got Unknown //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_01ff: Expected O, but got Unknown //IL_025d: Unknown result type (might be due to invalid IL or missing references) //IL_0267: Expected O, but got Unknown //IL_02b2: Unknown result type (might be due to invalid IL or missing references) //IL_02bc: Expected O, but got Unknown //IL_02eb: Unknown result type (might be due to invalid IL or missing references) //IL_02f5: Expected O, but got Unknown //IL_0324: Unknown result type (might be due to invalid IL or missing references) //IL_032e: Expected O, but got Unknown //IL_0395: Unknown result type (might be due to invalid IL or missing references) //IL_039f: Expected O, but got Unknown //IL_03df: Unknown result type (might be due to invalid IL or missing references) //IL_03e9: Expected O, but got Unknown //IL_040e: Unknown result type (might be due to invalid IL or missing references) //IL_0418: Expected O, but got Unknown //IL_043c: Unknown result type (might be due to invalid IL or missing references) //IL_0446: Expected O, but got Unknown //IL_046b: Unknown result type (might be due to invalid IL or missing references) //IL_0475: Expected O, but got Unknown //IL_04dc: Unknown result type (might be due to invalid IL or missing references) //IL_04e6: Expected O, but got Unknown //IL_0515: Unknown result type (might be due to invalid IL or missing references) //IL_051f: Expected O, but got Unknown //IL_05da: Unknown result type (might be due to invalid IL or missing references) //IL_05e4: Expected O, but got Unknown lethalConfigLoaded = Chainloader.PluginInfos.ContainsKey("ainavt.lc.lethalconfig"); fairerFireExitsLoaded = Chainloader.PluginInfos.ContainsKey("OreoM.FairerFireExits"); cfg.SaveOnConfigSet = false; selectableEnemies = new Dictionary<EnemyType, ConfigEntry<bool>>(); preset = cfg.Bind<Presets>("General", "Preset", Presets.Custom, "General patches to apply takes priority over single patches\nDefault: intended experience for this mod, meant to be used in a mostly vanilla setting\nCustom: choose whatever patches you want to use"); fireExitPatch = cfg.Bind<bool>("SystemPatches.FireExit", "Fire Exit Patch", true, "Use the custom fire exit spawning logic, this is automatically overwritten if you are using the FairerFireExits mod"); butlerPatches = cfg.Bind<bool>("EnemyPatches.Butler", "Default Butler Patches", true, "Use all Butler patches with their default values, overwrites all other configs in this section"); addKnifeIcon = cfg.Bind<bool>("EnemyPatches.Butler", "Add Knife Icon", true, "Live butlers will have a radar icon for their knives and contribute to the objects outside"); disableStealthStab = cfg.Bind<bool>("EnemyPatches.Butler", "Disable Steath Stab", true, "Bring back butler's v50 behavior, they won't randomly attack players on contact"); maneaterPatches = cfg.Bind<bool>("EnemyPatches.Maneater", "Default Maneater Patches", true, "Use all Maneater patches with their default values, overwrites all other configs in this section"); applyNomalDamage = cfg.Bind<bool>("EnemyPatches.Maneater", "Apply Normal Damage", true, "Sources of damage that deal more than 1 point of damage will hit the maneater for more than 1 hp"); cannotCryOrEatBeforeSeeingPlayer = cfg.Bind<bool>("EnemyPatches.Maneater", "Cannot Cry Or Eat Before Seeing Player", true, "Maneater won't start crying or eat scrap before it has spoted a player at least once"); disableIncreasedSpawnChance = cfg.Bind<bool>("EnemyPatches.Maneater", "Disable Increased Spawn Chance", true, "Disable the extra chance of maneater spawns when interior is mineshaft"); jesterPatches = cfg.Bind<bool>("EnemyPatches.Jester", "Default Jester Patches", true, "Use all Jester patches with their default values, overwrites all other configs in this section"); disableSolidHitbox = cfg.Bind<bool>("EnemyPatches.Jester", "Disable Solid Hitbox", true, "Disables Jester's solid hitbox allowing you to walk through it"); pushForce = cfg.Bind<float>("EnemyPatches.Jester", "Push Force", 6.5f, new ConfigDescription("Push force of the trigger hitbox, 0 is no push and 7.0 is a bit higher than Butler's push force", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 7f), Array.Empty<object>())); scaleFollowTimerWithInteriorSize = cfg.Bind<bool>("EnemyPatches.Jester", "Scale Follow Timer With Interior Size", true, "Use interior size to scale the Jester's follow timer"); followTimerScaling = cfg.Bind<float>("EnemyPatches.Jester", "Follow Timer Scaling", 1f, new ConfigDescription("How much the interior size should impact the Jester's follow timer", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 1f), Array.Empty<object>())); maskedPatches = cfg.Bind<bool>("EnemyPatches.Masked", "Default Masked Patches", true, "Use all Masked patches with their default values, overwrites all other configs in this section"); useMaskItem = cfg.Bind<bool>("EnemyPatches.Masked", "Use Mask Item", true, "Spawn a mask item that can be picked up after killing the masked instead of using a mesh"); maskValue = cfg.Bind<int>("EnemyPatches.Masked", "Mask Value", 40, new ConfigDescription("Value of the mask item", (AcceptableValueBase)(object)new AcceptableValueRange<int>(28, 51), Array.Empty<object>())); mineshaftPatch = cfg.Bind<bool>("DungenPatches.Mineshaft", "Use Mineshaft Patch", true, "Change how mineshaft generates"); caveSize = cfg.Bind<float>("DungenPatches.Mineshaft", "Cave Size", 0.65f, new ConfigDescription("% of the map that spaws cave tiles\nWARNING: RASING THIS NUMBER ABOVE 80% MIGHT STOP FIRE EXIT FROM SPAWNING", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0.05f, 1f), Array.Empty<object>())); facilityDelta = cfg.Bind<float>("DungenPatches.Mineshaft", "Facility Delta", 0.05f, new ConfigDescription("How much bigger %-wise 2nd facility is than the first", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 0.1f), Array.Empty<object>())); mapTileSize = cfg.Bind<float>("DungenPatches.Mineshaft", "Map Tile Size", 1.1f, new ConfigDescription("Shrink factor for Mineshaft\nVanilla is 0.9, meaning the interior expands from the actual size", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0.8f, 1.2f), Array.Empty<object>())); disableSingleItemDay = cfg.Bind<bool>("GameSystemPatch.SingleItemDays", "Disable Single Item Day", true, "Disable SIDs from happening"); difficultyScalingPatch = cfg.Bind<bool>("GameSystemPatch.DifficultyScaling", "Difficulty Scaling Patch", true, "Use custom quotas fulfilled difficulty scaling instead of vanilla's days completed in the current quota difficulty scaling"); quotaScalingFactor = cfg.Bind<float>("GameSystemPatch.DifficultyScaling", "Quota Scaling Factor", 0.2f, new ConfigDescription("How many spawns each fulfilled quota should add", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 1f), Array.Empty<object>())); infestationPatch = cfg.Bind<bool>("GameSystemPatch.Infestation", "Infestation Patch", true, "Enable custom infestation event"); baseChance = cfg.Bind<int>("GameSystemPatch.Infestation", "Base Chance", 4, new ConfigDescription("Base % chance of an infestation any day", (AcceptableValueBase)(object)new AcceptableValueRange<int>(0, 100), Array.Empty<object>())); boostedChance = cfg.Bind<int>("GameSystemPatch.Infestation", "Boosted Chance", 20, new ConfigDescription("Boosted % chance of an infestation any day after the clear threshold has been reached for couple days in a row", (AcceptableValueBase)(object)new AcceptableValueRange<int>(0, 100), Array.Empty<object>())); daysLootedInARow = cfg.Bind<int>("GameSystemPatch.Infestation", "Days Looted In a Row", 3, new ConfigDescription("How many days that reached the clear threshold in row are needed to boost infestation chances", (AcceptableValueBase)(object)new AcceptableValueRange<int>(1, 9), Array.Empty<object>())); lootThreshold = cfg.Bind<int>("GameSystemPatch.Infestation", "Loot Threshold", 85, new ConfigDescription("How much % of the total scrap available is needed to add one more day towards boosted infestation progress", (AcceptableValueBase)(object)new AcceptableValueRange<int>(0, 100), Array.Empty<object>())); moonPatches = cfg.Bind<bool>("MoonPatches", "Moon Patches", true, "Use HQR's modified values for item count, enemy pool and loot pool\nWARNING: This is incompatible with other mods that change moons enemies, spawns or loot"); tier3passPatch = cfg.Bind<bool>("TerminalPatch.Routing", "Cold Moon Pass Patch", true, "Use the Cold Moon Pass system"); tier3passPrice = cfg.Bind<int>("TerminalPatch.Routing", "Cold Moon Pass Price", 610, new ConfigDescription("Set the Cold Moon Pass price", (AcceptableValueBase)(object)new AcceptableValueRange<int>(500, 700), Array.Empty<object>())); artPrice = cfg.Bind<int>("TerminalPatch.Routing", "Artifice Price", 3000, new ConfigDescription("Set Artifice's routing cost", (AcceptableValueBase)(object)new AcceptableValueRange<int>(1500, 4500), Array.Empty<object>())); luckPatch = cfg.Bind<bool>("GameSystemPatch.Luck", "Luck Patch", true, "Use the revamped luck system"); luckSystem = cfg.Bind<LuckType>("GameSystemPatch.Luck", "Luck System", LuckType.High, "If luck increases or decreases quota rolls"); disableCavesSignalPatch = cfg.Bind<bool>("ShipPatch.ShipMonitor", "Disable Caves No Signal", true, "Disable the NO SIGNAL screen when the player being watched goes into caves"); playerMovementPatches = cfg.Bind<bool>("PlayerPatch.PlayerMovement", "Player Movement Patches", true, "Use all Player Movement patches with their default values, overwrites all other configs in this section"); usePreV64GroundColision = cfg.Bind<bool>("PlayerPatch.PlayerMovement", "Use Pre v64 Ground Colision", true, "Use the old (pre v64) ground colision code that allowed players to climb ledges"); speedLostToWaterCaves = cfg.Bind<float>("PlayerPatch.PlayerMovement", "Speed Lost To Water Caves", 0f, new ConfigDescription("How much speed is lost when crouching in water caves, 0 is for no speed penalty and 1 is vanilla behavior", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 1f), Array.Empty<object>())); presetToUse = preset.Value; if (lethalConfigLoaded) { AddLethalConfigItemsPassOne(); ConfigLethalConfigModEntry(); } } private static void ClearOrphanedEntries(ConfigFile cfg) { PropertyInfo propertyInfo = AccessTools.Property(typeof(ConfigFile), "OrphanedEntries"); Dictionary<ConfigDefinition, string> dictionary = (Dictionary<ConfigDefinition, string>)propertyInfo.GetValue(cfg); dictionary.Clear(); } public void AddAllEnemiesToConfig(ConfigFile cfg, EnemyType[] allEnemies) { foreach (EnemyType val in allEnemies) { if (!val.isDaytimeEnemy && !val.isOutsideEnemy) { if (selectableEnemies.TryGetValue(val, out ConfigEntry<bool> _)) { HQRebalance.Logger.LogWarning((object)(val.enemyName + " has duplicate entry... skipping")); continue; } ConfigEntry<bool> value2 = cfg.Bind<bool>("GameSystemPatch.Infestation.InfestationTargets", "Can Choose " + val.enemyName, val.enemyName == "Nutcracker" || val.enemyName == "Butler" || val.enemyName == "Masked", "Can the custom infestation code select the current enemy as the main enemy for an infestation event\nWARNING: Checking this for enemies that should only spawn once WILL make them spawn with virtually unlimited spawns"); selectableEnemies[val] = value2; } } ClearOrphanedEntries(cfg); cfg.Save(); cfg.SaveOnConfigSet = true; if (lethalConfigLoaded) { AddLethalConfigItemsPassTwo(); } } [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)] private void AddLethalConfigItemsPassOne() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000b: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Expected O, but got Unknown //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0029: Expected O, but got Unknown //IL_0036: Unknown result type (might be due to invalid IL or missing references) //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_004d: Expected O, but got Unknown //IL_004d: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Expected O, but got Unknown //IL_0054: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_0073: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Expected O, but got Unknown //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Expected O, but got Unknown //IL_0084: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Expected O, but got Unknown //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_0095: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00a7: Expected O, but got Unknown //IL_00a7: Unknown result type (might be due to invalid IL or missing references) //IL_00b3: Expected O, but got Unknown //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00b4: Expected O, but got Unknown //IL_00bb: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Expected O, but got Unknown //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00e8: Unknown result type (might be due to invalid IL or missing references) //IL_00f2: Expected O, but got Unknown //IL_00f2: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Expected O, but got Unknown //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_0100: Expected O, but got Unknown //IL_0107: Unknown result type (might be due to invalid IL or missing references) //IL_010e: Expected O, but got Unknown //IL_0115: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Expected O, but got Unknown //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_0127: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Unknown result type (might be due to invalid IL or missing references) //IL_0139: Expected O, but got Unknown //IL_0139: Unknown result type (might be due to invalid IL or missing references) //IL_0145: Expected O, but got Unknown //IL_0140: Unknown result type (might be due to invalid IL or missing references) //IL_0147: Expected O, but got Unknown //IL_016a: Unknown result type (might be due to invalid IL or missing references) //IL_0171: Expected O, but got Unknown //IL_0178: Unknown result type (might be due to invalid IL or missing references) //IL_017f: Expected O, but got Unknown //IL_0185: Unknown result type (might be due to invalid IL or missing references) //IL_018a: Unknown result type (might be due to invalid IL or missing references) //IL_0195: Expected O, but got Unknown //IL_0195: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Expected O, but got Unknown //IL_01a0: Unknown result type (might be due to invalid IL or missing references) //IL_01ac: Expected O, but got Unknown //IL_01a7: Unknown result type (might be due to invalid IL or missing references) //IL_01ae: Expected O, but got Unknown //IL_01b5: Unknown result type (might be due to invalid IL or missing references) //IL_01bc: Expected O, but got Unknown //IL_01c2: Unknown result type (might be due to invalid IL or missing references) //IL_01c7: Unknown result type (might be due to invalid IL or missing references) //IL_01d2: Expected O, but got Unknown //IL_01d2: Unknown result type (might be due to invalid IL or missing references) //IL_01dd: Expected O, but got Unknown //IL_01dd: Unknown result type (might be due to invalid IL or missing references) //IL_01e9: Expected O, but got Unknown //IL_01e4: Unknown result type (might be due to invalid IL or missing references) //IL_01eb: Expected O, but got Unknown //IL_0214: Unknown result type (might be due to invalid IL or missing references) //IL_0219: Unknown result type (might be due to invalid IL or missing references) //IL_0221: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Expected O, but got Unknown //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_0237: Expected O, but got Unknown //IL_0232: Unknown result type (might be due to invalid IL or missing references) //IL_0239: Expected O, but got Unknown //IL_023f: Unknown result type (might be due to invalid IL or missing references) //IL_0244: Unknown result type (might be due to invalid IL or missing references) //IL_024c: Unknown result type (might be due to invalid IL or missing references) //IL_0256: Expected O, but got Unknown //IL_0256: Unknown result type (might be due to invalid IL or missing references) //IL_0262: Expected O, but got Unknown //IL_025d: Unknown result type (might be due to invalid IL or missing references) //IL_0264: Expected O, but got Unknown //IL_026a: Unknown result type (might be due to invalid IL or missing references) //IL_026f: Unknown result type (might be due to invalid IL or missing references) //IL_0277: Expected O, but got Unknown //IL_0277: Unknown result type (might be due to invalid IL or missing references) //IL_027f: Expected O, but got Unknown //IL_027f: Unknown result type (might be due to invalid IL or missing references) //IL_0286: Unknown result type (might be due to invalid IL or missing references) //IL_028e: Unknown result type (might be due to invalid IL or missing references) //IL_0298: Expected O, but got Unknown //IL_029d: Expected O, but got Unknown //IL_0298: Unknown result type (might be due to invalid IL or missing references) //IL_029f: Expected O, but got Unknown //IL_02ba: Unknown result type (might be due to invalid IL or missing references) //IL_02bf: Unknown result type (might be due to invalid IL or missing references) //IL_02c7: Unknown result type (might be due to invalid IL or missing references) //IL_02d1: Expected O, but got Unknown //IL_02d1: Unknown result type (might be due to invalid IL or missing references) //IL_02dd: Expected O, but got Unknown //IL_02d8: Unknown result type (might be due to invalid IL or missing references) //IL_02df: Expected O, but got Unknown //IL_02e5: Unknown result type (might be due to invalid IL or missing references) //IL_02ea: Unknown result type (might be due to invalid IL or missing references) //IL_02f5: Expected O, but got Unknown //IL_02f5: Unknown result type (might be due to invalid IL or missing references) //IL_0300: Expected O, but got Unknown //IL_0300: Unknown result type (might be due to invalid IL or missing references) //IL_0307: Unknown result type (might be due to invalid IL or missing references) //IL_030f: Unknown result type (might be due to invalid IL or missing references) //IL_0319: Expected O, but got Unknown //IL_031e: Expected O, but got Unknown //IL_0319: Unknown result type (might be due to invalid IL or missing references) //IL_0320: Expected O, but got Unknown //IL_0326: Unknown result type (might be due to invalid IL or missing references) //IL_032b: Unknown result type (might be due to invalid IL or missing references) //IL_0336: Expected O, but got Unknown //IL_0336: Unknown result type (might be due to invalid IL or missing references) //IL_0341: Expected O, but got Unknown //IL_0341: Unknown result type (might be due to invalid IL or missing references) //IL_0348: Unknown result type (might be due to invalid IL or missing references) //IL_0350: Unknown result type (might be due to invalid IL or missing references) //IL_035a: Expected O, but got Unknown //IL_035f: Expected O, but got Unknown //IL_035a: Unknown result type (might be due to invalid IL or missing references) //IL_0361: Expected O, but got Unknown //IL_0367: Unknown result type (might be due to invalid IL or missing references) //IL_036c: Unknown result type (might be due to invalid IL or missing references) //IL_0377: Expected O, but got Unknown //IL_0377: Unknown result type (might be due to invalid IL or missing references) //IL_0382: Expected O, but got Unknown //IL_0382: Unknown result type (might be due to invalid IL or missing references) //IL_0389: Unknown result type (might be due to invalid IL or missing references) //IL_0391: Unknown result type (might be due to invalid IL or missing references) //IL_039b: Expected O, but got Unknown //IL_03a0: Expected O, but got Unknown //IL_039b: Unknown result type (might be due to invalid IL or missing references) //IL_03a2: Expected O, but got Unknown //IL_03c4: Unknown result type (might be due to invalid IL or missing references) //IL_03c9: Unknown result type (might be due to invalid IL or missing references) //IL_03d1: Unknown result type (might be due to invalid IL or missing references) //IL_03db: Expected O, but got Unknown //IL_03db: Unknown result type (might be due to invalid IL or missing references) //IL_03e7: Expected O, but got Unknown //IL_03e2: Unknown result type (might be due to invalid IL or missing references) //IL_03e9: Expected O, but got Unknown //IL_03f6: Unknown result type (might be due to invalid IL or missing references) //IL_03fb: Unknown result type (might be due to invalid IL or missing references) //IL_0403: Unknown result type (might be due to invalid IL or missing references) //IL_040d: Expected O, but got Unknown //IL_040d: Unknown result type (might be due to invalid IL or missing references) //IL_0419: Expected O, but got Unknown //IL_0414: Unknown result type (might be due to invalid IL or missing references) //IL_041b: Expected O, but got Unknown //IL_0421: Unknown result type (might be due to invalid IL or missing references) //IL_0426: Unknown result type (might be due to invalid IL or missing references) //IL_0431: Expected O, but got Unknown //IL_0431: Unknown result type (might be due to invalid IL or missing references) //IL_043c: Expected O, but got Unknown //IL_043c: Unknown result type (might be due to invalid IL or missing references) //IL_0443: Unknown result type (might be due to invalid IL or missing references) //IL_044b: Unknown result type (might be due to invalid IL or missing references) //IL_0455: Expected O, but got Unknown //IL_045a: Expected O, but got Unknown //IL_0455: Unknown result type (might be due to invalid IL or missing references) //IL_045c: Expected O, but got Unknown //IL_0470: Unknown result type (might be due to invalid IL or missing references) //IL_0475: Unknown result type (might be due to invalid IL or missing references) //IL_047d: Unknown result type (might be due to invalid IL or missing references) //IL_0487: Expected O, but got Unknown //IL_0487: Unknown result type (might be due to invalid IL or missing references) //IL_0493: Expected O, but got Unknown //IL_048e: Unknown result type (might be due to invalid IL or missing references) //IL_0495: Expected O, but got Unknown //IL_04a2: Unknown result type (might be due to invalid IL or missing references) //IL_04a7: Unknown result type (might be due to invalid IL or missing references) //IL_04af: Unknown result type (might be due to invalid IL or missing references) //IL_04b9: Expected O, but got Unknown //IL_04b9: Unknown result type (might be due to invalid IL or missing references) //IL_04c5: Expected O, but got Unknown //IL_04c0: Unknown result type (might be due to invalid IL or missing references) //IL_04c7: Expected O, but got Unknown //IL_04cd: Unknown result type (might be due to invalid IL or missing references) //IL_04d2: Unknown result type (might be due to invalid IL or missing references) //IL_04da: Unknown result type (might be due to invalid IL or missing references) //IL_04e4: Expected O, but got Unknown //IL_04e4: Unknown result type (might be due to invalid IL or missing references) //IL_04f0: Expected O, but got Unknown //IL_04eb: Unknown result type (might be due to invalid IL or missing references) //IL_04f2: Expected O, but got Unknown //IL_04f8: Unknown result type (might be due to invalid IL or missing references) //IL_04fd: Unknown result type (might be due to invalid IL or missing references) //IL_0505: Unknown result type (might be due to invalid IL or missing references) //IL_050f: Expected O, but got Unknown //IL_050f: Unknown result type (might be due to invalid IL or missing references) //IL_051b: Expected O, but got Unknown //IL_0516: Unknown result type (might be due to invalid IL or missing references) //IL_051d: Expected O, but got Unknown //IL_0538: Unknown result type (might be due to invalid IL or missing references) //IL_053d: Unknown result type (might be due to invalid IL or missing references) //IL_0545: Unknown result type (might be due to invalid IL or missing references) //IL_054f: Expected O, but got Unknown //IL_054f: Unknown result type (might be due to invalid IL or missing references) //IL_055b: Expected O, but got Unknown //IL_0556: Unknown result type (might be due to invalid IL or missing references) //IL_055d: Expected O, but got Unknown //IL_0580: Unknown result type (might be due to invalid IL or missing references) //IL_0587: Expected O, but got Unknown //IL_0595: Unknown result type (might be due to invalid IL or missing references) //IL_059c: Expected O, but got Unknown //IL_05a3: Unknown result type (might be due to invalid IL or missing references) //IL_05aa: Expected O, but got Unknown //IL_05b0: Unknown result type (might be due to invalid IL or missing references) //IL_05b5: Unknown result type (might be due to invalid IL or missing references) //IL_05c0: Expected O, but got Unknown //IL_05c0: Unknown result type (might be due to invalid IL or missing references) //IL_05cb: Expected O, but got Unknown //IL_05cb: Unknown result type (might be due to invalid IL or missing references) //IL_05d7: Expected O, but got Unknown //IL_05d2: Unknown result type (might be due to invalid IL or missing references) //IL_05d9: Expected O, but got Unknown //IL_05f4: Unknown result type (might be due to invalid IL or missing references) //IL_05f9: Unknown result type (might be due to invalid IL or missing references) //IL_0601: Unknown result type (might be due to invalid IL or missing references) //IL_060b: Expected O, but got Unknown //IL_060b: Unknown result type (might be due to invalid IL or missing references) //IL_0617: Expected O, but got Unknown //IL_0612: Unknown result type (might be due to invalid IL or missing references) //IL_0619: Expected O, but got Unknown //IL_0626: Unknown result type (might be due to invalid IL or missing references) //IL_062b: Unknown result type (might be due to invalid IL or missing references) //IL_0632: Expected O, but got Unknown //IL_0632: Unknown result type (might be due to invalid IL or missing references) //IL_063a: Expected O, but got Unknown //IL_063a: Unknown result type (might be due to invalid IL or missing references) //IL_0646: Expected O, but got Unknown //IL_0641: Unknown result type (might be due to invalid IL or missing references) //IL_0648: Expected O, but got Unknown //IL_064e: Unknown result type (might be due to invalid IL or missing references) //IL_0653: Unknown result type (might be due to invalid IL or missing references) //IL_065a: Expected O, but got Unknown //IL_065a: Unknown result type (might be due to invalid IL or missing references) //IL_0662: Expected O, but got Unknown //IL_0662: Unknown result type (might be due to invalid IL or missing references) //IL_066e: Expected O, but got Unknown //IL_0669: Unknown result type (might be due to invalid IL or missing references) //IL_0670: Expected O, but got Unknown //IL_0676: Unknown result type (might be due to invalid IL or missing references) //IL_067b: Unknown result type (might be due to invalid IL or missing references) //IL_0682: Expected O, but got Unknown //IL_0682: Unknown result type (might be due to invalid IL or missing references) //IL_068a: Expected O, but got Unknown //IL_068a: Unknown result type (might be due to invalid IL or missing references) //IL_0696: Expected O, but got Unknown //IL_0691: Unknown result type (might be due to invalid IL or missing references) //IL_0698: Expected O, but got Unknown //IL_069e: Unknown result type (might be due to invalid IL or missing references) //IL_06a3: Unknown result type (might be due to invalid IL or missing references) //IL_06aa: Expected O, but got Unknown //IL_06aa: Unknown result type (might be due to invalid IL or missing references) //IL_06b2: Expected O, but got Unknown //IL_06b2: Unknown result type (might be due to invalid IL or missing references) //IL_06be: Expected O, but got Unknown //IL_06b9: Unknown result type (might be due to invalid IL or missing references) //IL_06c0: Expected O, but got Unknown EnumDropDownConfigItem<Presets> val = new EnumDropDownConfigItem<Presets>(preset, new EnumDropDownOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = true }); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val); BoolCheckBoxConfigItem val2 = new BoolCheckBoxConfigItem(fireExitPatch, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = true }); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val2); BoolCheckBoxConfigItem val3 = new BoolCheckBoxConfigItem(butlerPatches, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); BoolCheckBoxConfigItem val4 = new BoolCheckBoxConfigItem(addKnifeIcon, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); BoolCheckBoxConfigItem val5 = new BoolCheckBoxConfigItem(disableStealthStab, false); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val3); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val4); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val5); BoolCheckBoxConfigItem val6 = new BoolCheckBoxConfigItem(maneaterPatches, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); BoolCheckBoxConfigItem val7 = new BoolCheckBoxConfigItem(applyNomalDamage, false); BoolCheckBoxConfigItem val8 = new BoolCheckBoxConfigItem(cannotCryOrEatBeforeSeeingPlayer, false); BoolCheckBoxConfigItem val9 = new BoolCheckBoxConfigItem(disableIncreasedSpawnChance, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val6); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val7); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val8); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val9); BoolCheckBoxConfigItem val10 = new BoolCheckBoxConfigItem(jesterPatches, false); BoolCheckBoxConfigItem val11 = new BoolCheckBoxConfigItem(disableSolidHitbox, false); ConfigEntry<float> obj = pushForce; FloatSliderOptions val12 = new FloatSliderOptions(); ((BaseRangeOptions<float>)val12).Min = 0f; ((BaseRangeOptions<float>)val12).Max = 7f; ((BaseOptions)val12).RequiresRestart = false; FloatSliderConfigItem val13 = new FloatSliderConfigItem(obj, val12); BoolCheckBoxConfigItem val14 = new BoolCheckBoxConfigItem(scaleFollowTimerWithInteriorSize, false); ConfigEntry<float> obj2 = followTimerScaling; FloatSliderOptions val15 = new FloatSliderOptions(); ((BaseRangeOptions<float>)val15).Min = 0f; ((BaseRangeOptions<float>)val15).Max = 1f; ((BaseOptions)val15).RequiresRestart = false; FloatSliderConfigItem val16 = new FloatSliderConfigItem(obj2, val15); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val10); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val11); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val13); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val14); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val16); BoolCheckBoxConfigItem val17 = new BoolCheckBoxConfigItem(maskedPatches, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); BoolCheckBoxConfigItem val18 = new BoolCheckBoxConfigItem(useMaskItem, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); ConfigEntry<int> obj3 = maskValue; IntSliderOptions val19 = new IntSliderOptions(); ((BaseRangeOptions<int>)val19).Min = 28; ((BaseRangeOptions<int>)val19).Max = 51; ((BaseOptions)val19).RequiresRestart = false; ((BaseOptions)val19).CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback); IntSliderConfigItem val20 = new IntSliderConfigItem(obj3, val19); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val17); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val18); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val20); BoolCheckBoxConfigItem val21 = new BoolCheckBoxConfigItem(mineshaftPatch, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); ConfigEntry<float> obj4 = caveSize; FloatSliderOptions val22 = new FloatSliderOptions(); ((BaseRangeOptions<float>)val22).Min = 0.05f; ((BaseRangeOptions<float>)val22).Max = 1f; ((BaseOptions)val22).RequiresRestart = false; ((BaseOptions)val22).CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback); FloatSliderConfigItem val23 = new FloatSliderConfigItem(obj4, val22); ConfigEntry<float> obj5 = facilityDelta; FloatSliderOptions val24 = new FloatSliderOptions(); ((BaseRangeOptions<float>)val24).Min = 0f; ((BaseRangeOptions<float>)val24).Max = 0.1f; ((BaseOptions)val24).RequiresRestart = false; ((BaseOptions)val24).CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback); FloatSliderConfigItem val25 = new FloatSliderConfigItem(obj5, val24); ConfigEntry<float> obj6 = mapTileSize; FloatSliderOptions val26 = new FloatSliderOptions(); ((BaseRangeOptions<float>)val26).Min = 0.8f; ((BaseRangeOptions<float>)val26).Max = 1.2f; ((BaseOptions)val26).RequiresRestart = false; ((BaseOptions)val26).CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback); FloatSliderConfigItem val27 = new FloatSliderConfigItem(obj6, val26); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val21); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val23); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val25); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val27); BoolCheckBoxConfigItem val28 = new BoolCheckBoxConfigItem(disableSingleItemDay, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = true }); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val28); BoolCheckBoxConfigItem val29 = new BoolCheckBoxConfigItem(difficultyScalingPatch, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = true }); ConfigEntry<float> obj7 = quotaScalingFactor; FloatSliderOptions val30 = new FloatSliderOptions(); ((BaseRangeOptions<float>)val30).Min = 0f; ((BaseRangeOptions<float>)val30).Max = 1f; ((BaseOptions)val30).RequiresRestart = false; ((BaseOptions)val30).CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback); FloatSliderConfigItem val31 = new FloatSliderConfigItem(obj7, val30); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val29); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val31); BoolCheckBoxConfigItem val32 = new BoolCheckBoxConfigItem(moonPatches, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val32); BoolCheckBoxConfigItem val33 = new BoolCheckBoxConfigItem(tier3passPatch, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); IntInputFieldConfigItem val34 = new IntInputFieldConfigItem(tier3passPrice, new IntInputFieldOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); IntInputFieldConfigItem val35 = new IntInputFieldConfigItem(artPrice, new IntInputFieldOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val33); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val34); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val35); BoolCheckBoxConfigItem val36 = new BoolCheckBoxConfigItem(luckPatch, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = true }); EnumDropDownConfigItem<LuckType> val37 = new EnumDropDownConfigItem<LuckType>(luckSystem, false); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val36); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val37); BoolCheckBoxConfigItem val38 = new BoolCheckBoxConfigItem(disableCavesSignalPatch, false); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val38); BoolCheckBoxConfigItem val39 = new BoolCheckBoxConfigItem(playerMovementPatches, false); BoolCheckBoxConfigItem val40 = new BoolCheckBoxConfigItem(usePreV64GroundColision, false); ConfigEntry<float> obj8 = speedLostToWaterCaves; FloatSliderOptions val41 = new FloatSliderOptions(); ((BaseRangeOptions<float>)val41).Min = 0f; ((BaseRangeOptions<float>)val41).Max = 1f; ((BaseOptions)val41).RequiresRestart = false; FloatSliderConfigItem val42 = new FloatSliderConfigItem(obj8, val41); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val39); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val40); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val42); BoolCheckBoxConfigItem val43 = new BoolCheckBoxConfigItem(infestationPatch, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = true }); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val43); ConfigEntry<int> obj9 = baseChance; IntSliderOptions val44 = new IntSliderOptions(); ((BaseRangeOptions<int>)val44).Min = 0; ((BaseRangeOptions<int>)val44).Max = 100; ((BaseOptions)val44).RequiresRestart = false; IntSliderConfigItem val45 = new IntSliderConfigItem(obj9, val44); ConfigEntry<int> obj10 = boostedChance; IntSliderOptions val46 = new IntSliderOptions(); ((BaseRangeOptions<int>)val46).Min = 0; ((BaseRangeOptions<int>)val46).Max = 100; ((BaseOptions)val46).RequiresRestart = false; IntSliderConfigItem val47 = new IntSliderConfigItem(obj10, val46); ConfigEntry<int> obj11 = daysLootedInARow; IntSliderOptions val48 = new IntSliderOptions(); ((BaseRangeOptions<int>)val48).Min = 1; ((BaseRangeOptions<int>)val48).Max = 9; ((BaseOptions)val48).RequiresRestart = false; IntSliderConfigItem val49 = new IntSliderConfigItem(obj11, val48); ConfigEntry<int> obj12 = lootThreshold; IntSliderOptions val50 = new IntSliderOptions(); ((BaseRangeOptions<int>)val50).Min = 0; ((BaseRangeOptions<int>)val50).Max = 100; ((BaseOptions)val50).RequiresRestart = false; IntSliderConfigItem val51 = new IntSliderConfigItem(obj12, val50); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val45); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val47); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val49); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val51); } [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)] private void AddLethalConfigItemsPassTwo() { //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0034: Expected O, but got Unknown //IL_0034: Unknown result type (might be due to invalid IL or missing references) //IL_0040: Expected O, but got Unknown //IL_003b: Unknown result type (might be due to invalid IL or missing references) //IL_0041: Expected O, but got Unknown foreach (KeyValuePair<EnemyType, ConfigEntry<bool>> selectableEnemy in selectableEnemies) { BoolCheckBoxConfigItem val = new BoolCheckBoxConfigItem(selectableEnemy.Value, new BoolCheckBoxOptions { CanModifyCallback = new CanModifyDelegate(DontAllowSettingChangeMidGameCallback), RequiresRestart = false }); LethalConfigManager.AddConfigItem((BaseConfigItem)(object)val); } } [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)] private void ConfigLethalConfigModEntry() { LethalConfigManager.SetModDescription("HQR Configs"); } [MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)] private CanModifyResult DontAllowSettingChangeMidGameCallback() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) return CanModifyResult.op_Implicit(((Object)(object)StartOfRound.Instance == (Object)null, "Game already started")); } } internal enum Presets { Default, Custom } internal enum LuckType { Low, High } [BepInPlugin("OreoM.HQRebalance", "HQRebalance", "0.10.4")] [BepInDependency(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] public class HQRebalance : BaseUnityPlugin { public const string LethalConfigGUID = "ainavt.lc.lethalconfig"; public const string FairerFireExitsGUID = "OreoM.FairerFireExits"; private SelectableLevel[] patchedMoons; public static HQRebalance Instance { get; private set; } internal static ManualLogSource Logger { get; private set; } internal static Harmony? Harmony { get; set; } internal static HQRConfig ConfigOptions { get; set; } private void Awake() { Logger = ((BaseUnityPlugin)this).Logger; Instance = this; ConfigOptions = new HQRConfig(((BaseUnityPlugin)this).Config); Patch(); NetcodePatch(); Logger.LogInfo((object)"OreoM.HQRebalance v0.10.4 has loaded!"); } private static void NetcodePatch() { Type[] types = Assembly.GetExecutingAssembly().GetTypes(); Type[] array = types; foreach (Type type in array) { MethodInfo[] methods = type.GetMethods(BindingFlags.Instance | BindingFlags.Static | BindingFlags.NonPublic); MethodInfo[] array2 = methods; foreach (MethodInfo methodInfo in array2) { try { object[] customAttributes = methodInfo.GetCustomAttributes(typeof(RuntimeInitializeOnLoadMethodAttribute), inherit: false); if (customAttributes.Length != 0) { methodInfo.Invoke(null, null); } } catch (Exception ex) { Logger.LogWarning((object)("Netcode patcher errored, tho this is possible intended.\nError message: " + ex.Message)); } } } } internal static void Patch() { //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Expected O, but got Unknown if (Harmony == null) { Harmony = new Harmony("OreoM.HQRebalance"); } Logger.LogDebug((object)"Patching..."); Harmony.PatchAll(); Logger.LogDebug((object)"Finished patching!"); } internal static void Unpatch() { Logger.LogDebug((object)"Unpatching..."); Harmony? harmony = Harmony; if (harmony != null) { harmony.UnpatchSelf(); } Logger.LogDebug((object)"Finished unpatching!"); } internal void SetupMoons(StartOfRound instance) { //IL_043a: Unknown result type (might be due to invalid IL or missing references) //IL_043f: Unknown result type (might be due to invalid IL or missing references) //IL_0464: Unknown result type (might be due to invalid IL or missing references) //IL_0469: Unknown result type (might be due to invalid IL or missing references) //IL_048e: Unknown result type (might be due to invalid IL or missing references) //IL_0493: Unknown result type (might be due to invalid IL or missing references) //IL_04a6: Unknown result type (might be due to invalid IL or missing references) //IL_04b0: Expected O, but got Unknown //IL_0502: Unknown result type (might be due to invalid IL or missing references) //IL_0507: Unknown result type (might be due to invalid IL or missing references) //IL_052c: Unknown result type (might be due to invalid IL or missing references) //IL_0531: Unknown result type (might be due to invalid IL or missing references) //IL_0556: Unknown result type (might be due to invalid IL or missing references) //IL_055b: Unknown result type (might be due to invalid IL or missing references) //IL_056e: Unknown result type (might be due to invalid IL or missing references) //IL_0578: Expected O, but got Unknown //IL_059e: Unknown result type (might be due to invalid IL or missing references) //IL_05a3: Unknown result type (might be due to invalid IL or missing references) //IL_05c8: Unknown result type (might be due to invalid IL or missing references) //IL_05cd: Unknown result type (might be due to invalid IL or missing references) //IL_05f2: Unknown result type (might be due to invalid IL or missing references) //IL_05f7: Unknown result type (might be due to invalid IL or missing references) //IL_061c: Unknown result type (might be due to invalid IL or missing references) //IL_0621: Unknown result type (might be due to invalid IL or missing references) //IL_0635: Unknown result type (might be due to invalid IL or missing references) //IL_063f: Expected O, but got Unknown //IL_0665: Unknown result type (might be due to invalid IL or missing references) //IL_066a: Unknown result type (might be due to invalid IL or missing references) //IL_068f: Unknown result type (might be due to invalid IL or missing references) //IL_0694: Unknown result type (might be due to invalid IL or missing references) //IL_06b9: Unknown result type (might be due to invalid IL or missing references) //IL_06be: Unknown result type (might be due to invalid IL or missing references) //IL_06e3: Unknown result type (might be due to invalid IL or missing references) //IL_06e8: Unknown result type (might be due to invalid IL or missing references) //IL_070d: Unknown result type (might be due to invalid IL or missing references) //IL_0712: Unknown result type (might be due to invalid IL or missing references) //IL_0726: Unknown result type (might be due to invalid IL or missing references) //IL_0730: Expected O, but got Unknown if (Instance.patchedMoons != null) { instance.levels = Instance.patchedMoons; return; } Instance.patchedMoons = instance.levels; Instance.patchedMoons[6].minScrap = 21; Instance.patchedMoons[7].minScrap = 24; Instance.patchedMoons[7].maxScrap = 29; Instance.patchedMoons[8].minScrap = 18; Instance.patchedMoons[8].maxScrap = 22; Instance.patchedMoons[9].minScrap = 31; Instance.patchedMoons[9].maxScrap = 34; Instance.patchedMoons[10].minScrap = 32; Instance.patchedMoons[10].maxScrap = 37; Instance.patchedMoons[2].factorySizeMultiplier = 1f; Instance.patchedMoons[10].factorySizeMultiplier = 2f; Instance.patchedMoons[0].dungeonFlowTypes[0].rarity = 98; Instance.patchedMoons[0].dungeonFlowTypes[1].rarity = 1; Instance.patchedMoons[0].dungeonFlowTypes[2].rarity = 1; Instance.patchedMoons[1].dungeonFlowTypes[0].rarity = 49; Instance.patchedMoons[1].dungeonFlowTypes[1].rarity = 2; Instance.patchedMoons[1].dungeonFlowTypes[2].rarity = 49; Instance.patchedMoons[2].dungeonFlowTypes[0].rarity = 7; Instance.patchedMoons[2].dungeonFlowTypes[1].rarity = 1; Instance.patchedMoons[2].dungeonFlowTypes[2].rarity = 92; Instance.patchedMoons[5].dungeonFlowTypes[0].rarity = 13; Instance.patchedMoons[5].dungeonFlowTypes[1].rarity = 74; Instance.patchedMoons[5].dungeonFlowTypes[2].rarity = 13; Instance.patchedMoons[6].dungeonFlowTypes[1].rarity = 88; Instance.patchedMoons[6].dungeonFlowTypes[0].rarity = 2; Instance.patchedMoons[6].dungeonFlowTypes[2].rarity = 10; Instance.patchedMoons[7].dungeonFlowTypes[1].rarity = 10; Instance.patchedMoons[7].dungeonFlowTypes[0].rarity = 88; Instance.patchedMoons[7].dungeonFlowTypes[2].rarity = 2; Instance.patchedMoons[8].dungeonFlowTypes[0].rarity = 46; Instance.patchedMoons[8].dungeonFlowTypes[1].rarity = 8; Instance.patchedMoons[8].dungeonFlowTypes[2].rarity = 46; Instance.patchedMoons[9].dungeonFlowTypes[0].rarity = 2; Instance.patchedMoons[9].dungeonFlowTypes[1].rarity = 10; Instance.patchedMoons[9].dungeonFlowTypes[2].rarity = 88; Instance.patchedMoons[10].dungeonFlowTypes[0].rarity = 100; Instance.patchedMoons[10].dungeonFlowTypes[1].rarity = 100; Instance.patchedMoons[10].dungeonFlowTypes[2].rarity = 100; Instance.patchedMoons[12].dungeonFlowTypes[0].rarity = 76; Instance.patchedMoons[12].dungeonFlowTypes[1].rarity = 1; Instance.patchedMoons[12].dungeonFlowTypes[2].rarity = 23; Keyframe[] array = (Keyframe[])(object)new Keyframe[3] { new Keyframe(0f, 7.097602f, -12.1866f, -12.1866f, 0.3333f, 0.119f), new Keyframe(0.4764f, -1.126f, -27.2869f, -27.2869f, 0.1039f, 0.125f), new Keyframe(1f, -15f, 0f, 0f, 0f, 0f) }; Instance.patchedMoons[8].daytimeEnemySpawnChanceThroughDay = new AnimationCurve(array); Instance.patchedMoons[8].daytimeEnemiesProbabilityRange = 1f; Instance.patchedMoons[8].spawnProbabilityRange = 8f; Keyframe[] array2 = (Keyframe[])(object)new Keyframe[3] { new Keyframe(0f, -3f, 19.70508f, 19.70508f, 0f, 0.2589182f), new Keyframe(0.3162474f, 2.817775f, 15.63821f, 15.63821f, 0.5307108f, 0.6788604f), new Keyframe(1f, 15f, 35.60403f, 35.60403f, 0.1551032f, 0f) }; Instance.patchedMoons[6].enemySpawnChanceThroughoutDay = new AnimationCurve(array2); Keyframe[] array3 = (Keyframe[])(object)new Keyframe[4] { new Keyframe(0f, -3f, 59.19933f, 59.19933f, 0f, 0.1882948f), new Keyframe(0.2971778f, 2.103194f, 11.64772f, 11.64772f, 0.6591896f, 0.404842f), new Keyframe(0.7631003f, 11.27556f, 25.28926f, 25.28926f, 0.4166799f, 0.5360636f), new Keyframe(1f, 15f, 35.60403f, 35.60403f, 0.04912584f, 0f) }; Instance.patchedMoons[9].enemySpawnChanceThroughoutDay = new AnimationCurve(array3); Keyframe[] array4 = (Keyframe[])(object)new Keyframe[5] { new Keyframe(0f, -3f, 15.1757f, 15.1757f, 0f, 0.3430422f), new Keyframe(0.1625553f, 1.142029f, 9.178675f, 9.178675f, 0.6591896f, 0.6591896f), new Keyframe(0.4976344f, 5.041142f, 6.361235f, 6.361235f, 0.3227605f, 0.3704014f), new Keyframe(0.6644974f, 6.988362f, 2.044127f, 2.044127f, 0.4955147f, 0.4224021f), new Keyframe(1f, 15f, 14.53138f, 14.53138f, 0.3106435f, 0f) }; Instance.patchedMoons[10].enemySpawnChanceThroughoutDay = new AnimationCurve(array4); AnimationCurve numberToSpawn = Instance.patchedMoons[5].spawnableMapObjects[0].numberToSpawn; AnimationCurve numberToSpawn2 = Instance.patchedMoons[10].spawnableMapObjects[0].numberToSpawn; AnimationCurve numberToSpawn3 = Instance.patchedMoons[10].spawnableMapObjects[1].numberToSpawn; AnimationCurve numberToSpawn4 = Instance.patchedMoons[10].spawnableMapObjects[2].numberToSpawn; Instance.patchedMoons[6].spawnableMapObjects[0].numberToSpawn = numberToSpawn; Instance.patchedMoons[6].spawnableMapObjects[1].numberToSpawn = numberToSpawn4; Instance.patchedMoons[7].spawnableMapObjects[0].numberToSpawn = numberToSpawn3; Instance.patchedMoons[7].spawnableMapObjects[1].numberToSpawn = numberToSpawn; Instance.patchedMoons[7].spawnableMapObjects[2].numberToSpawn = numberToSpawn; Instance.patchedMoons[9].spawnableMapObjects[0].numberToSpawn = numberToSpawn2; Instance.patchedMoons[9].spawnableMapObjects[1].numberToSpawn = numberToSpawn; Instance.patchedMoons[9].spawnableMapObjects[2].numberToSpawn = numberToSpawn; LootPool lootPool = new LootPool(13, 0, 80, 29, 0, 2, 6, 0, 0, 13, 0, 0, 5, 32, 9, 10, 0, 42, 0, 17, 1, 0, 0, 22, 25, 80, 11, 0, 0, 66, 0, 0, 0, 0, 4, 8, 12, 0, 0, 8, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 6, 1); LootPool lootPool2 = new LootPool(19, 18, 59, 100, 26, 0, 6, 0, 0, 19, 15, 12, 49, 0, 36, 34, 0, 10, 39, 18, 0, 0, 7, 14, 23, 35, 8, 0, 21, 23, 12, 7, 0, 0, 7, 19, 10, 12, 13, 0, 0, 23, 19, 34, 32, 0, 19, 0, 31, 6, 0, 3, 40, 11, 17, 1); LootPool lootPool3 = new LootPool(35, 33, 31, 54, 46, 0, 8, 51, 0, 35, 0, 12, 29, 0, 28, 39, 0, 30, 27, 20, 0, 0, 0, 8, 27, 25, 8, 0, 29, 16, 24, 11, 0, 0, 5, 22, 30, 19, 12, 0, 24, 22, 17, 40, 40, 0, 34, 0, 13, 7, 0, 0, 25, 6, 16, 1); LootPool lootPool4 = new LootPool(43, 0, 72, 48, 0, 2, 4, 0, 0, 43, 0, 11, 24, 0, 65, 0, 0, 42, 20, 24, 5, 0, 0, 0, 0, 49, 6, 0, 19, 42, 0, 6, 0, 0, 21, 27, 28, 4, 13, 0, 0, 19, 0, 29, 24, 0, 32, 0, 18, 9, 0, 0, 60, 0, 8, 1); LootPool lootPool5 = new LootPool(18, 0, 89, 63, 0, 0, 0, 0, 6, 18, 61, 40, 16, 0, 19, 0, 0, 40, 31, 19, 0, 0, 3, 17, 0, 67, 10, 0, 20, 65, 0, 8, 0, 0, 23, 19, 28, 0, 15, 0, 0, 0, 0, 27, 24, 11, 18, 0, 19, 9, 6, 61, 80, 0, 28, 1); LootPool lootPool6 = new LootPool(24, 57, 31, 68, 36, 0, 9, 52, 0, 24, 0, 31, 40, 0, 50, 29, 0, 30, 13, 23, 0, 0, 0, 21, 28, 27, 17, 0, 25, 16, 13, 9, 0, 0, 19, 24, 32, 17, 24, 0, 25, 0, 6, 40, 32, 0, 40, 0, 17, 9, 0, 0, 29, 14, 16, 1); LootPool lootPool7 = new LootPool(19, 44, 0, 6, 0, 3, 38, 0, 12, 19, 63, 5, 0, 0, 21, 0, 85, 0, 7, 82, 0, 14, 93, 0, 4, 0, 13, 23, 35, 0, 18, 17, 85, 89, 0, 0, 9, 17, 0, 19, 16, 28, 0, 0, 11, 91, 61, 0, 52, 73, 94, 63, 0, 0, 0, 1); LootPool lootPool8 = new LootPool(40, 47, 0, 18, 0, 3, 41, 0, 0, 40, 27, 0, 0, 0, 44, 0, 80, 0, 8, 41, 0, 62, 73, 0, 12, 12, 55, 24, 14, 0, 48, 37, 80, 67, 0, 0, 5, 50, 0, 67, 25, 0, 0, 0, 11, 56, 7, 21, 33, 94, 0, 27, 19, 0, 0, 1); LootPool lootPool9 = new LootPool(39, 37, 47, 33, 0, 0, 0, 0, 0, 39, 43, 0, 0, 0, 0, 0, 31, 0, 0, 23, 0, 33, 45, 0, 8, 38, 10, 16, 35, 0, 21, 22, 51, 14, 0, 0, 16, 38, 0, 36, 24, 0, 0, 0, 30, 21, 8, 36, 20, 35, 0, 46, 28, 0, 0, 1); LootPool lootPool10 = new LootPool(39, 76, 0, 17, 0, 0, 32, 0, 69, 39, 57, 0, 0, 0, 19, 0, 63, 0, 14, 24, 32, 55, 75, 0, 33, 16, 53, 30, 42, 0, 35, 25, 72, 33, 0, 0, 16, 20, 0, 65, 60, 39, 0, 0, 30, 53, 42, 42, 22, 71, 35, 57, 30, 0, 0, 12); LootPool lootPool11 = new LootPool(23, 0, 66, 52, 0, 0, 0, 0, 0, 18, 0, 14, 52, 0, 52, 0, 0, 0, 0, 17, 0, 0, 0, 9, 0, 81, 6, 0, 14, 100, 0, 8, 0, 0, 0, 0, 28, 0, 28, 0, 0, 26, 0, 28, 23, 12, 45, 0, 25, 43, 0, 0, 80, 0, 14, 1); Instance.patchedMoons[0].spawnableScrap = lootPool.GetLootpool(); Instance.patchedMoons[1].spawnableScrap = lootPool2.GetLootpool(); Instance.patchedMoons[2].spawnableScrap = lootPool3.GetLootpool(); Instance.patchedMoons[4].spawnableScrap = lootPool4.GetLootpool(); Instance.patchedMoons[8].spawnableScrap = lootPool5.GetLootpool(); Instance.patchedMoons[5].spawnableScrap = lootPool6.GetLootpool(); Instance.patchedMoons[6].spawnableScrap = lootPool7.GetLootpool(); Instance.patchedMoons[7].spawnableScrap = lootPool8.GetLootpool(); Instance.patchedMoons[9].spawnableScrap = lootPool9.GetLootpool(); Instance.patchedMoons[10].spawnableScrap = lootPool10.GetLootpool(); Instance.patchedMoons[12].spawnableScrap = lootPool11.GetLootpool(); EnemyPool enemyPool = new EnemyPool(39, 20, 4, 100, 0); EnemyPool enemyPool2 = new EnemyPool(30, 40, 6, 35, 5); EnemyPool enemyPool3 = new EnemyPool(0, 100, 0, 0, 100); EnemyPool enemyPool4 = new EnemyPool(0, 90, 5, 30, 0); Instance.patchedMoons[4].DaytimeEnemies = enemyPool.GetEnemyPool(); Instance.patchedMoons[5].DaytimeEnemies = enemyPool2.GetEnemyPool(); Instance.patchedMoons[8].DaytimeEnemies = enemyPool3.GetEnemyPool(); Instance.patchedMoons[10].DaytimeEnemies = enemyPool4.GetEnemyPool(); EnemyPool enemyPool5 = new EnemyPool(5, 20, 0, 15, 5, 0, 15, 40, 0, 30, 20, 100, 0, 30, 50); EnemyPool enemyPool6 = new EnemyPool(8, 30, 8, 4, 20, 3, 3, 5, 7, 10, 0, 8, 0, 4, 5); EnemyPool enemyPool7 = new EnemyPool(0, 0, 0, 60, 0, 60, 20, 60, 80, 60, 30, 60, 0, 60, 60); EnemyPool enemyPool8 = new EnemyPool(35, 91, 42, 77, 45, 92, 35, 100, 95, 92, 89, 100, 0, 100, 86); Instance.patchedMoons[6].Enemies = enemyPool5.GetEnemyPool(); Instance.patchedMoons[7].Enemies = enemyPool6.GetEnemyPool(); Instance.patchedMoons[9].Enemies = enemyPool7.GetEnemyPool(); Instance.patchedMoons[10].Enemies = enemyPool8.GetEnemyPool(); EnemyPool enemyPool9 = new EnemyPool(0, 0, 0, 50, 35, 35); EnemyPool enemyPool10 = new EnemyPool(0, 0, 32, 80, 25, 0); Instance.patchedMoons[7].OutsideEnemies = enemyPool9.GetEnemyPool(); Instance.patchedMoons[9].OutsideEnemies = enemyPool10.GetEnemyPool(); instance.levels = Instance.patchedMoons; } } public static class MyPluginInfo { public const string PLUGIN_GUID = "OreoM.HQRebalance"; public const string PLUGIN_NAME = "HQRebalance"; public const string PLUGIN_VERSION = "0.10.4"; } } namespace HQRebalance.Utility { internal class EnemyPool { public static Dictionary<string, EnemyType> enemyList = Resources.FindObjectsOfTypeAll<EnemyType>().ToDictionary((EnemyType enemy) => ((Object)enemy).name); private readonly List<SpawnableEnemyWithRarity> enemyPool; public EnemyPool(int blob, int butler, int maneater, int centipede, int barber, int thumper, int girl, int bracken, int lootbug, int jester, int masked, int nutcracker, int puffer, int spider, int coilhead) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: 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: Expected O, but got Unknown //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Expected O, but got Unknown //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Expected O, but got Unknown //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) //IL_00f8: Expected O, but got Unknown //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Expected O, but got Unknown //IL_011d: Unknown result type (might be due to invalid IL or missing references) //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_0140: Expected O, but got Unknown //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Unknown result type (might be due to invalid IL or missing references) //IL_0157: Unknown result type (might be due to invalid IL or missing references) //IL_0164: Expected O, but got Unknown //IL_0165: Unknown result type (might be due to invalid IL or missing references) //IL_016a: Unknown result type (might be due to invalid IL or missing references) //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Expected O, but got Unknown //IL_0189: Unknown result type (might be due to invalid IL or missing references) //IL_018e: Unknown result type (might be due to invalid IL or missing references) //IL_019f: Unknown result type (might be due to invalid IL or missing references) //IL_01ac: Expected O, but got Unknown //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_01d0: Expected O, but got Unknown //IL_01d1: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01e7: Unknown result type (might be due to invalid IL or missing references) //IL_01f4: Expected O, but got Unknown //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_01fa: Unknown result type (might be due to invalid IL or missing references) //IL_020b: Unknown result type (might be due to invalid IL or missing references) //IL_0218: Expected O, but got Unknown //IL_0219: Unknown result type (might be due to invalid IL or missing references) //IL_021e: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_023c: Expected O, but got Unknown if (enemyList == null) { HQRebalance.Logger.LogError((object)"All enemies list is null"); return; } enemyPool = new List<SpawnableEnemyWithRarity> { new SpawnableEnemyWithRarity { enemyType = EnemyByName("Blob"), rarity = blob }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("Butler"), rarity = butler }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("CaveDweller"), rarity = maneater }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("Centipede"), rarity = centipede }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("ClaySurgeon"), rarity = barber }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("Crawler"), rarity = thumper }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("DressGirl"), rarity = girl }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("Flowerman"), rarity = bracken }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("HoarderBug"), rarity = lootbug }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("Jester"), rarity = jester }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("MaskedPlayerEnemy"), rarity = masked }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("Nutcracker"), rarity = nutcracker }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("Puffer"), rarity = puffer }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("SandSpider"), rarity = spider }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("SpringMan"), rarity = coilhead } }; enemyPool.RemoveAll((SpawnableEnemyWithRarity i) => i.rarity == 0); } public EnemyPool(int baboon, int fox, int giant, int dog, int radmech, int worm) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: 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: Expected O, but got Unknown //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Expected O, but got Unknown //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Expected O, but got Unknown //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) //IL_00f8: Expected O, but got Unknown if (enemyList == null) { HQRebalance.Logger.LogError((object)"All enemies list is null"); return; } enemyPool = new List<SpawnableEnemyWithRarity> { new SpawnableEnemyWithRarity { enemyType = EnemyByName("BaboonHawk"), rarity = baboon }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("BushWolf"), rarity = fox }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("ForestGiant"), rarity = giant }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("MouthDog"), rarity = dog }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("RadMech"), rarity = radmech }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("SandWorm"), rarity = worm } }; enemyPool.RemoveAll((SpawnableEnemyWithRarity i) => i.rarity == 0); } public EnemyPool(int locust, int manticoil, int tulip, int bee, int bird) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: 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: Expected O, but got Unknown //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Expected O, but got Unknown //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Expected O, but got Unknown if (enemyList == null) { HQRebalance.Logger.LogError((object)"All enemies list is null"); return; } enemyPool = new List<SpawnableEnemyWithRarity> { new SpawnableEnemyWithRarity { enemyType = EnemyByName("DocileLocustBees"), rarity = locust }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("Doublewing"), rarity = manticoil }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("FlowerSnake"), rarity = tulip }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("RedLocustBees"), rarity = bee }, new SpawnableEnemyWithRarity { enemyType = EnemyByName("GiantKiwi"), rarity = bird } }; } private EnemyType EnemyByName(string name) { if (enemyList.TryGetValue(name, out EnemyType value)) { return value; } throw new Exception("Could not retrieve enemy of name: " + name); } public List<SpawnableEnemyWithRarity> GetEnemyPool() { return enemyPool; } } internal class LootPool { public static Dictionary<string, Item> itemList = Resources.FindObjectsOfTypeAll<Item>().ToDictionary((Item item) => ((Object)item).name); private readonly List<SpawnableItemWithRarity> lootPoll; public LootPool(int airhorn, int bell, int big_bolt, int bottles, int brush, int candy, int cash_register, int chemical_jug, int clock, int clown_horn, int comedy, int control_pad, int cookie_mold, int dust_pan, int easter_egg, int egg_beater, int fancy_lamp, int flask, int garbage_lid, int gift_box, int gold_bar, int golden_cup, int hairdryer, int flashbang, int pickles, int large_axle, int laser_pointer, int magic_ball, int mag_glass, int metal_sheet, int mug, int old_phone, int painting, int perfume, int pill_bottle, int plastic_cup, int plastic_fish, int red_soda, int remote, int ring, int rubber_duck, int soccer_ball, int wheel, int stop_sign, int tea_kettle, int teeth, int toiler_paper, int toothpaste, int toy_cube, int toy_robot, int toy_train, int tragedy, int engine, int whoopie, int yield_sign, int zed_dog) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_0029: 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: Expected O, but got Unknown //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Expected O, but got Unknown //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_006f: Unknown result type (might be due to invalid IL or missing references) //IL_0080: Unknown result type (might be due to invalid IL or missing references) //IL_008c: Expected O, but got Unknown //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0092: Unknown result type (might be due to invalid IL or missing references) //IL_00a3: Unknown result type (might be due to invalid IL or missing references) //IL_00b0: Expected O, but got Unknown //IL_00b1: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00d4: Expected O, but got Unknown //IL_00d5: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_00eb: Unknown result type (might be due to invalid IL or missing references) //IL_00f8: Expected O, but got Unknown //IL_00f9: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Expected O, but got Unknown //IL_011d: Unknown result type (might be due to invalid IL or missing references) //IL_0122: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_0140: Expected O, but got Unknown //IL_0141: Unknown result type (might be due to invalid IL or missing references) //IL_0146: Unknown result type (might be due to invalid IL or missing references) //IL_0157: Unknown result type (might be due to invalid IL or missing references) //IL_0164: Expected O, but got Unknown //IL_0165: Unknown result type (might be due to invalid IL or missing references) //IL_016a: Unknown result type (might be due to invalid IL or missing references) //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_0188: Expected O, but got Unknown //IL_0189: Unknown result type (might be due to invalid IL or missing references) //IL_018e: Unknown result type (might be due to invalid IL or missing references) //IL_019f: Unknown result type (might be due to invalid IL or missing references) //IL_01ac: Expected O, but got Unknown //IL_01ad: Unknown result type (might be due to invalid IL or missing references) //IL_01b2: Unknown result type (might be due to invalid IL or missing references) //IL_01c3: Unknown result type (might be due to invalid IL or missing references) //IL_01d0: Expected O, but got Unknown //IL_01d1: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01e7: Unknown result type (might be due to invalid IL or missing references) //IL_01f4: Expected O, but got Unknown //IL_01f5: Unknown result type (might be due to invalid IL or missing references) //IL_01fa: Unknown result type (might be due to invalid IL or missing references) //IL_020b: Unknown result type (might be due to invalid IL or missing references) //IL_0218: Expected O, but got Unknown //IL_0219: Unknown result type (might be due to invalid IL or missing references) //IL_021e: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_023c: Expected O, but got Unknown //IL_023d: Unknown result type (might be due to invalid IL or missing references) //IL_0242: Unknown result type (might be due to invalid IL or missing references) //IL_0253: Unknown result type (might be due to invalid IL or missing references) //IL_0260: Expected O, but got Unknown //IL_0261: Unknown result type (might be due to invalid IL or missing references) //IL_0266: Unknown result type (might be due to invalid IL or missing references) //IL_0277: Unknown result type (might be due to invalid IL or missing references) //IL_0284: Expected O, but got Unknown //IL_0285: Unknown result type (might be due to invalid IL or missing references) //IL_028a: Unknown result type (might be due to invalid IL or missing references) //IL_029b: Unknown result type (might be due to invalid IL or missing references) //IL_02a8: Expected O, but got Unknown //IL_02a9: Unknown result type (might be due to invalid IL or missing references) //IL_02ae: Unknown result type (might be due to invalid IL or missing references) //IL_02bf: Unknown result type (might be due to invalid IL or missing references) //IL_02cc: Expected O, but got Unknown //IL_02cd: Unknown result type (might be due to invalid IL or missing references) //IL_02d2: Unknown result type (might be due to invalid IL or missing references) //IL_02e3: Unknown result type (might be due to invalid IL or missing references) //IL_02f0: Expected O, but got Unknown //IL_02f1: Unknown result type (might be due to invalid IL or missing references) //IL_02f6: Unknown result type (might be due to invalid IL or missing references) //IL_0307: Unknown result type (might be due to invalid IL or missing references) //IL_0314: Expected O, but got Unknown //IL_0315: Unknown result type (might be due to invalid IL or missing references) //IL_031a: Unknown result type (might be due to invalid IL or missing references) //IL_032b: Unknown result type (might be due to invalid IL or missing references) //IL_0338: Expected O, but got Unknown //IL_0339: Unknown result type (might be due to invalid IL or missing references) //IL_033e: Unknown result type (might be due to invalid IL or missing references) //IL_034f: Unknown result type (might be due to invalid IL or missing references) //IL_035c: Expected O, but got Unknown //IL_035d: Unknown result type (might be due to invalid IL or missing references) //IL_0362: Unknown result type (might be due to invalid IL or missing references) //IL_0373: Unknown result type (might be due to invalid IL or missing references) //IL_0380: Expected O, but got Unknown //IL_0381: Unknown result type (might be due to invalid IL or missing references) //IL_0386: Unknown result type (might be due to invalid IL or missing references) //IL_0397: Unknown result type (might be due to invalid IL or missing references) //IL_03a4: Expected O, but got Unknown //IL_03a5: Unknown result type (might be due to invalid IL or missing references) //IL_03aa: Unknown result type (might be due to invalid IL or missing references) //IL_03bb: Unknown result type (might be due to invalid IL or missing references) //IL_03c8: Expected O, but got Unknown //IL_03c9: Unknown result type (might be due to invalid IL or missing references) //IL_03ce: Unknown result type (might be due to invalid IL or missing references) //IL_03df: Unknown result type (might be due to invalid IL or missing references) //IL_03ec: Expected O, but got Unknown //IL_03ed: Unknown result type (might be due to invalid IL or missing references) //IL_03f2: Unknown result type (might be due to invalid IL or missing references) //IL_0403: Unknown result type (might be due to invalid IL or missing references) //IL_0410: Expected O, but got Unknown //IL_0411: Unknown result type (might be due to invalid IL or missing references) //IL_0416: Unknown result type (might be due to invalid IL or missing references) //IL_0427: Unknown result type (might be due to invalid IL or missing references) //IL_0434: Expected O, but got Unknown //IL_0435: Unknown result type (might be due to invalid IL or missing references) //IL_043a: Unknown result type (might be due to invalid IL or missing references) //IL_044b: Unknown result type (might be due to invalid IL or missing references) //IL_0458: Expected O, but got Unknown //IL_0459: Unknown result type (might be due to invalid IL or missing references) //IL_045e: Unknown result type (might be due to invalid IL or missing references) //IL_046f: Unknown result type (might be due to invalid IL or missing references) //IL_047c: Expected O, but got Unknown //IL_047d: Unknown result type (might be due to invalid IL or missing references) //IL_0482: Unknown result type (might be due to invalid IL or missing references) //IL_0493: Unknown result type (might be due to invalid IL or missing references) //IL_04a0: Expected O, but got Unknown //IL_04a1: Unknown result type (might be due to invalid IL or missing references) //IL_04a6: Unknown result type (might be due to invalid IL or missing references) //IL_04b7: Unknown result type (might be due to invalid IL or missing references) //IL_04c4: Expected O, but got Unknown //IL_04c5: Unknown result type (might be due to invalid IL or missing references) //IL_04ca: Unknown result type (might be due to invalid IL or missing references) //IL_04db: Unknown result type (might be due to invalid IL or missing references) //IL_04e8: Expected O, but got Unknown //IL_04e9: Unknown result type (might be due to invalid IL or missing references) //IL_04ee: Unknown result type (might be due to invalid IL or missing references) //IL_04ff: Unknown result type (might be due to invalid IL or missing references) //IL_050c: Expected O, but got Unknown //IL_050d: Unknown result type (might be due to invalid IL or missing references) //IL_0512: Unknown result type (might be due to invalid IL or missing references) //IL_0523: Unknown result type (might be due to invalid IL or missing references) //IL_0530: Expected O, but got Unknown //IL_0531: Unknown result type (might be due to invalid IL or missing references) //IL_0536: Unknown result type (might be due to invalid IL or missing references) //IL_0547: Unknown result type (might be due to invalid IL or missing references) //IL_0554: Expected O, but got Unknown //IL_0555: Unknown result type (might be due to invalid IL or missing references) //IL_055a: Unknown result type (might be due to invalid IL or missing references) //IL_056b: Unknown result type (might be due to invalid IL or missing references) //IL_0578: Expected O, but got Unknown //IL_0579: Unknown result type (might be due to invalid IL or missing references) //IL_057e: Unknown result type (might be due to invalid IL or missing references) //IL_058f: Unknown result type (might be due to invalid IL or missing references) //IL_059c: Expected O, but got Unknown //IL_059d: Unknown result type (might be due to invalid IL or missing references) //IL_05a2: Unknown result type (might be due to invalid IL or missing references) //IL_05b3: Unknown result type (might be due to invalid IL or missing references) //IL_05c0: Expected O, but got Unknown //IL_05c1: Unknown result type (might be due to invalid IL or missing references) //IL_05c6: Unknown result type (might be due to invalid IL or missing references) //IL_05d7: Unknown result type (might be due to invalid IL or missing references) //IL_05e4: Expected O, but got Unknown //IL_05e5: Unknown result type (might be due to invalid IL or missing references) //IL_05ea: Unknown result type (might be due to invalid IL or missing references) //IL_05fb: Unknown result type (might be due to invalid IL or missing references) //IL_0608: Expected O, but got Unknown //IL_0609: Unknown result type (might be due to invalid IL or missing references) //IL_060e: Unknown result type (might be due to invalid IL or missing references) //IL_061f: Unknown result type (might be due to invalid IL or missing references) //IL_062c: Expected O, but got Unknown //IL_062d: Unknown result type (might be due to invalid IL or missing references) //IL_0632: Unknown result type (might be due to invalid IL or missing references) //IL_0643: Unknown result type (might be due to invalid IL or missing references) //IL_0650: Expected O, but got Unknown //IL_0651: Unknown result type (might be due to invalid IL or missing references) //IL_0656: Unknown result type (might be due to invalid IL or missing references) //IL_0667: Unknown result type (might be due to invalid IL or missing references) //IL_0674: Expected O, but got Unknown //IL_0675: Unknown result type (might be due to invalid IL or missing references) //IL_067a: Unknown result type (might be due to invalid IL or missing references) //IL_068b: Unknown result type (might be due to invalid IL or missing references) //IL_0698: Expected O, but got Unknown //IL_0699: Unknown result type (might be due to invalid IL or missing references) //IL_069e: Unknown result type (might be due to invalid IL or missing references) //IL_06af: Unknown result type (might be due to invalid IL or missing references) //IL_06bc: Expected O, but got Unknown //IL_06bd: Unknown result type (might be due to invalid IL or missing references) //IL_06c2: Unknown result type (might be due to invalid IL or missing references) //IL_06d3: Unknown result type (might be due to invalid IL or missing references) //IL_06e0: Expected O, but got Unknown //IL_06e1: Unknown result type (might be due to invalid IL or missing references) //IL_06e6: Unknown result type (might be due to invalid IL or missing references) //IL_06f7: Unknown result type (might be due to invalid IL or missing references) //IL_0704: Expected O, but got Unknown //IL_0705: Unknown result type (might be due to invalid IL or missing references) //IL_070a: Unknown result type (might be due to invalid IL or missing references) //IL_071b: Unknown result type (might be due to invalid IL or missing references) //IL_0728: Expected O, but got Unknown //IL_0729: Unknown result type (might be due to invalid IL or missing references) //IL_072e: Unknown result type (might be due to invalid IL or missing references) //IL_073f: Unknown result type (might be due to invalid IL or missing references) //IL_074c: Expected O, but got Unknown //IL_074d: Unknown result type (might be due to invalid IL or missing references) //IL_0752: Unknown result type (might be due to invalid IL or missing references) //IL_0763: Unknown result type (might be due to invalid IL or missing references) //IL_0770: Expected O, but got Unknown //IL_0771: Unknown result type (might be due to invalid IL or missing references) //IL_0776: Unknown result type (might be due to invalid IL or missing references) //IL_0787: Unknown result type (might be due to invalid IL or missing references) //IL_0794: Expected O, but got Unknown //IL_0795: Unknown result type (might be due to invalid IL or missing references) //IL_079a: Unknown result type (might be due to invalid IL or missing references) //IL_07ab: Unknown result type (might be due to invalid IL or missing references) //IL_07b8: Expected O, but got Unknown //IL_07b9: Unknown result type (might be due to invalid IL or missing references) //IL_07be: Unknown result type (might be due to invalid IL or missing references) //IL_07cf: Unknown result type (might be due to invalid IL or missing references) //IL_07dc: Expected O, but got Unknown //IL_07dd: Unknown result type (might be due to invalid IL or missing references) //IL_07e2: Unknown result type (might be due to invalid IL or missing references) //IL_07f3: Unknown result type (might be due to invalid IL or missing references) //IL_0800: Expected O, but got Unknown if (itemList == null) { HQRebalance.Logger.LogError((object)"All items list is null"); return; } lootPoll = new List<SpawnableItemWithRarity> { new SpawnableItemWithRarity { spawnableItem = ItemByName("Airhorn"), rarity = airhorn }, new SpawnableItemWithRarity { spawnableItem = ItemByName("Bell"), rarity = bell }, new SpawnableItemWithRarity { spawnableItem = ItemByName("BigBolt"), rarity = big_bolt }, new SpawnableItemWithRarity { spawnableItem = ItemByName("BottleBin"), rarity = bottles }, new SpawnableItemWithRarity { spawnableItem = ItemByName("Brush"), rarity = brush }, new SpawnableItemWithRarity { spawnableItem = ItemByName("Candy"), rarity = candy }, new SpawnableItemWithRarity { spawnableItem = ItemByName("CashRegister"), rarity = cash_register }, new SpawnableItemWithRarity { spawnableItem = ItemByName("ChemicalJug"), rarity = chemical_jug }, new SpawnableItemWithRarity { spawnableItem = ItemByName("Clock"), rarity = clock }, new SpawnableItemWithRarity { spawnableItem = ItemByName("ClownHorn"), rarity = clown_horn }, new SpawnableItemWithRarity { spawnableItem = ItemByName("ComedyMask"), rarity = comedy }, new SpawnableItemWithRarity { spawnableItem = ItemByName("ControlPad"), rarity = control_pad }, new SpawnableItemWithRarity { spawnableItem = ItemByName("MoldPan"), rarity = cookie_mold }, new SpawnableItemWithRarity { spawnableItem = ItemByName("DustPan"), rarity = dust_pan }, new SpawnableItemWithRarity { spawnableItem = ItemByName("EasterEgg"), rarity = easter_egg }, new SpawnableItemWithRarity { spawnableItem = ItemByName("EggBeater"), rarity = egg_beater }, new SpawnableItemWithRarity { spawnableItem = ItemByName("FancyLamp"), rarity = fancy_lamp }, new SpawnableItemWithRarity { spawnableItem = ItemByName("Flask"), rarity = flask }, new SpawnableItemWithRarity { spawnableItem = ItemByName("GarbageLid"), rarity = garbage_lid }, new SpawnableItemWithRarity { spawnableItem = ItemByName("GiftBox"), rarity = gift_box }, new SpawnableItemWithRarity { spawnableItem = ItemByName("GoldBar"), rarity = gold_bar }, new SpawnableItemWithRarity { spawnableItem = ItemByName("FancyCup"), rarity = golden_cup }, new SpawnableItemWithRarity { spawnableItem = ItemByName("Hairdryer"),