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;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("InfiniteMoneyMod")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("Gives the player infinite money.")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("InfiniteMoneyMod")]
[assembly: AssemblyTitle("InfiniteMoneyMod")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace InfiniteMoneyMod;
[BepInPlugin("InfiniteMoneyMod", "InfiniteMoneyMod", "1.0.0")]
[ContentWarningPlugin("InfiniteMoneyMod", "InfiniteMoneyMod", false)]
public class Plugin : BaseUnityPlugin
{
private Harmony patch;
private void Awake()
{
//IL_0016: Unknown result type (might be due to invalid IL or missing references)
//IL_0020: Expected O, but got Unknown
((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin InfiniteMoneyMod is loaded!");
patch = new Harmony("com.redbigz.InfinteMoney");
patch.PatchAll();
}
}
[HarmonyPatch(typeof(RoomStatsHolder))]
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
internal class NextDayPatch
{
[HarmonyPrefix]
private static bool Prefix(ref int __result)
{
__result = int.MaxValue;
return false;
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "InfiniteMoneyMod";
public const string PLUGIN_NAME = "InfiniteMoneyMod";
public const string PLUGIN_VERSION = "1.0.0";
}