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 RepoBiggerHauler v1.0.0
RepoBiggerHauler.dll
Decompiled 5 hours agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyVersion("0.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [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] [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] [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 RepoBiggerHauler { [BepInPlugin("com.repo.biggerhauler", "Bigger Hauler", "1.1.0")] public sealed class BiggerHaulerPlugin : BaseUnityPlugin { public const string PluginGuid = "com.repo.biggerhauler"; public const string PluginName = "Bigger Hauler"; public const string PluginVersion = "1.1.0"; internal static ConfigEntry<float> ValueLimit; private void Awake() { //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Expected O, but got Unknown ValueLimit = ((BaseUnityPlugin)this).Config.Bind<float>("General", "Value Limit", 50000f, new ConfigDescription("Maximum value limit for ItemValuableBox.", (AcceptableValueBase)(object)new AcceptableValueRange<float>(0f, 1000000f), Array.Empty<object>())); Harmony.CreateAndPatchAll(typeof(ItemValuableBoxPatch), (string)null); ((BaseUnityPlugin)this).Logger.LogInfo((object)$"Bigger Hauler loaded. Value Limit = {ValueLimit.Value}"); } } [HarmonyPatch(typeof(ItemValuableBox))] internal static class ItemValuableBoxPatch { [HarmonyPostfix] [HarmonyPriority(0)] [HarmonyPatch("Start")] private static void Postfix(ItemValuableBox __instance) { __instance.valueLimit = BiggerHaulerPlugin.ValueLimit.Value; } } }