Decompiled source of Essentials v0.1.0

Essentials.dll

Decompiled 17 hours ago
using System;
using System.Diagnostics;
using System.Globalization;
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;

[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: AssemblyCompany("Essentials")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("0.1.0.0")]
[assembly: AssemblyInformationalVersion("0.1.0+89344dbe058a51757e11918232cd8c11e95e3bf2")]
[assembly: AssemblyProduct("R.E.P.O Essentials Plugin")]
[assembly: AssemblyTitle("Essentials")]
[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 RepoEssentials
{
	public static class RepoEssentialsInfo
	{
		public const string REPO_NAME = "repo-essentials";

		public const string PROJECT_NAME = "RepoEssentials";

		public const string PLUGIN_GUID = "org.ccarrmcmahon.plugins.repo.essentials";

		public const string PLUGIN_NAME = "Essentials";

		public const string PLUGIN_VERSION = "0.1.0";
	}
	[HarmonyPatch(typeof(SemiFunc), "DollarGetString")]
	public class DollarGetStringPatch
	{
		private static bool Prefix(int value, ref string __result)
		{
			__result = string.Format(CultureInfo.CurrentCulture, "{0:#,0}", value);
			return false;
		}
	}
	[BepInPlugin("org.ccarrmcmahon.plugins.repo.essentials", "Essentials", "0.1.0")]
	[BepInProcess("REPO.exe")]
	public class Plugin : BaseUnityPlugin
	{
		internal static ManualLogSource Logger;

		private void Awake()
		{
			//IL_0021: Unknown result type (might be due to invalid IL or missing references)
			//IL_0027: Expected O, but got Unknown
			Logger = ((BaseUnityPlugin)this).Logger;
			Logger.LogInfo((object)"Plugin org.ccarrmcmahon.plugins.repo.essentials is loaded!");
			Harmony val = new Harmony("org.ccarrmcmahon.plugins.repo.essentials");
			val.PatchAll();
			Logger.LogInfo((object)"Harmony patches are loaded!");
		}
	}
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "Essentials";

		public const string PLUGIN_NAME = "R.E.P.O Essentials Plugin";

		public const string PLUGIN_VERSION = "0.1.0";
	}
}