Decompiled source of No Level Requirements v1.0.0

NoLevelRequirement.dll

Decompiled a month ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using HarmonyLib;
using Il2CppInterop.Runtime.InteropTypes;
using Il2CppScheduleOne;
using Il2CppScheduleOne.DevUtilities;
using Il2CppScheduleOne.ItemFramework;
using Il2CppSystem.Collections.Generic;
using MelonLoader;
using Test;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: MelonInfo(typeof(EntryPoint), "NoLevelRequirements", "1.0.0", "_peron", null)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("FixQuestionMark")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("FixQuestionMark")]
[assembly: AssemblyTitle("FixQuestionMark")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Test;

public class EntryPoint : MelonMod
{
}
[HarmonyPatch(typeof(Registry))]
internal class ConfigLoad
{
	[HarmonyPatch("Awake")]
	[HarmonyPostfix]
	private static void PostfixPlayerLoaded()
	{
		Enumerator<ItemRegister> enumerator = Singleton<Registry>.instance.ItemRegistry.GetEnumerator();
		while (enumerator.MoveNext())
		{
			StorableItemDefinition val = ((Il2CppObjectBase)enumerator.Current.Definition).TryCast<StorableItemDefinition>();
			if ((Object)(object)val != (Object)null)
			{
				val.RequiresLevelToPurchase = false;
			}
		}
	}
}