Decompiled source of SpicyMugs v0.1.0

SpicyMugs.dll

Decompiled 12 hours ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: AssemblyCompany("SpicyMugs")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("URANIUM MUGS ALL AROUND")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyInformationalVersion("0.1.0")]
[assembly: AssemblyProduct("SpicyMugs")]
[assembly: AssemblyTitle("SpicyMugs")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.1.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.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 SpicyMugs
{
	[BepInPlugin("Oksamies.SpicyMugs", "SpicyMugs", "0.1.0")]
	public class Plugin : BaseUnityPlugin
	{
		[HarmonyPatch(typeof(ValuableDirector), "Spawn")]
		public class ValuableDirectorPatch
		{
			private static bool Prefix(ref GameObject _valuable, ValuableVolume _volume, ref string _path)
			{
				_valuable = ValuableDirector.instance.tinyValuables[1];
				_path = ValuableDirector.instance.tinyPath;
				return true;
			}
		}

		public const string modGUID = "Oksamies.SpicyMugs";

		public const string modName = "SpicyMugs";

		public const string modVersion = "0.1.0";

		private readonly Harmony harmony = new Harmony("Oksamies.SpicyMugs");

		public static ManualLogSource mls;

		private void Awake()
		{
			mls = Logger.CreateLogSource("Oksamies.SpicyMugs");
			mls.LogInfo((object)"Oksamies.SpicyMugs is now awake!");
			harmony.PatchAll();
		}
	}
	public static class PluginInfo
	{
		public const string PLUGIN_GUID = "SpicyMugs";

		public const string PLUGIN_NAME = "SpicyMugs";

		public const string PLUGIN_VERSION = "0.1.0";
	}
}
namespace System.Runtime.CompilerServices
{
	[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
	internal sealed class IgnoresAccessChecksToAttribute : Attribute
	{
		public IgnoresAccessChecksToAttribute(string assemblyName)
		{
		}
	}
}