using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("NoHaulerValueLimit")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("NoHaulerValueLimit")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("69fbca97-56ec-44b5-8c14-a1ef4c1d0b87")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace InfiniteHaulerCapacity; [BepInPlugin("com.nuke_land.InfiniteHaulerCapacity", "Infinite Hauler Capacity", "1.0.0")] public class Plugin : BaseUnityPlugin { [HarmonyPatch(typeof(ItemValuableBox), "Update")] public static class UpdatePatch { [HarmonyPostfix] public static void Postfix(ItemValuableBox __instance) { if ((Object)(object)__instance == (Object)null) { return; } try { if (((!((Object)(object)((Component)__instance).transform.parent != (Object)null)) ? "" : (Object.op_Implicit((Object)(object)((Component)((Component)__instance).transform.parent).transform.parent) ? ((Object)((Component)((Component)((Component)__instance).transform.parent).transform.parent).gameObject).name.ToLower() : "")).Contains("semiscooter")) { Traverse val = Traverse.Create((object)__instance); if (val.Field("valueLimit").GetValue() < 100000f) { val.Field("valueLimit").SetValue((object)1E+09f); Debug.Log((object)"[InfiniteHauler] Hauler storage limit removed!"); } } } catch { } } } private void Awake() { //IL_0015: Unknown result type (might be due to invalid IL or missing references) ((BaseUnityPlugin)this).Logger.LogInfo((object)"Infinite Hauler Capacity mod LOADED!"); new Harmony("com.nuke_land.InfiniteHaulerCapacity").PatchAll(); } }