Decompiled source of TrashGrabber PLUS v1.0.1

TrashGrabberPLUS.dll

Decompiled 8 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using HarmonyLib;
using Il2CppScheduleOne.Equipping;
using MelonLoader;
using TrashGrabberPLUSModNamespace;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: MelonInfo(typeof(TrashGrabberPLUSMod), "TrashGrabber PLUS", "1.0.0", "Elio", null)]
[assembly: MelonGame("TVGS", "Schedule I")]
[assembly: AssemblyTitle("TrashGrabberPLUS")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TrashGrabberPLUS")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3157aede-a870-47dd-8979-9a0bcf342d3d")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace TrashGrabberPLUSModNamespace;

public class TrashGrabberPLUSMod : MelonMod
{
	[HarmonyPatch(typeof(Equippable_TrashGrabber), "GetCapacity")]
	public class Patch_GetCapacity
	{
		private static bool Prefix(ref int __result)
		{
			__result = int.MaxValue;
			return false;
		}
	}

	[HarmonyPatch(typeof(Equippable_TrashGrabber), "RefreshVisuals")]
	public class Patch_RefreshVisuals
	{
		private static void Postfix(Equippable_TrashGrabber __instance)
		{
			//IL_0028: Unknown result type (might be due to invalid IL or missing references)
			if ((Object)(object)__instance.TrashContent != (Object)null && (Object)(object)__instance.TrashContent_Min != (Object)null)
			{
				__instance.TrashContent.localScale = __instance.TrashContent_Min.localScale;
			}
		}
	}

	public override void OnInitializeMelon()
	{
		//IL_000f: Unknown result type (might be due to invalid IL or missing references)
		MelonLogger.Msg("TrashGrabber PLUS mod loaded!");
		new Harmony("com.Elio.trashgrabberplus").PatchAll();
	}
}