Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of BetaLevelFix v1.0.0
BetaLevelFix.dll
Decompiled a year agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; 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: AssemblyCompany("BetaLevelFix")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("BetaLevelFix")] [assembly: AssemblyTitle("BetaLevelFix")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [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 DeeprootGarden { public static class MyPluginInfo { public const string PLUGIN_GUID = "BetaLevelFix"; public const string PLUGIN_NAME = "BetaLevelFix"; public const string PLUGIN_VERSION = "1.0.0"; } } namespace BetaLevelFix { [BepInPlugin("Kesomannen.BetaLevelFix", "BetaLevelFix", "1.0.0")] public class Plugin : BaseUnityPlugin { public const string Guid = "Kesomannen.BetaLevelFix"; private void Awake() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) new Harmony("Kesomannen.BetaLevelFix").PatchAll(typeof(Plugin)); } [HarmonyPrefix] [HarmonyPatch(typeof(ExtractionPoint), "Start")] public static void ExtractionPoint_Start(ExtractionPoint __instance) { //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Expected O, but got Unknown //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Expected O, but got Unknown FieldInfo fieldInfo = AccessTools.Field(typeof(ExtractionPoint), "extractionArea"); if (fieldInfo.GetValue(__instance) == null) { GameObject val = new GameObject("BetaLevelFix_ExtractionArea"); val.transform.parent = ((Component)__instance).transform; GameObject value = val; fieldInfo.SetValue(__instance, value); } FieldInfo fieldInfo2 = AccessTools.Field(typeof(ExtractionPoint), "grossUp"); if (fieldInfo2.GetValue(__instance) == null) { GameObject val2 = new GameObject("BetaLevelFix_GrossUp"); val2.transform.parent = ((Component)__instance).transform; GameObject value2 = val2; fieldInfo2.SetValue(__instance, value2); } } } } namespace System.Runtime.CompilerServices { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal sealed class IgnoresAccessChecksToAttribute : Attribute { public IgnoresAccessChecksToAttribute(string assemblyName) { } } }