Decompiled source of UpgradeNameFix v1.1.0

UpgradeNameFix.dll

Decompiled 10 months ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using TMPro;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("UpgradeNameFix")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("UpgradeNameFix")]
[assembly: AssemblyCopyright("Copyright © GoopSwagger 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("73340a4c-55c5-4c12-b16b-159e1696b6e9")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.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 UpgradeNameFix
{
	[BepInPlugin("GoopSwagger.UpgradeNameFix", "UpgradeNameFix", "1.0.2")]
	public class UpgradeNameFixPlugin : BaseUnityPlugin
	{
		[HarmonyPatch(typeof(StatsUI))]
		public static class Patch_StatsUI
		{
			[HarmonyPatch("Fetch")]
			[HarmonyPostfix]
			private static void FetchPostfix(StatsUI __instance)
			{
				string[] array = ((TMP_Text)__instance.Text).text.Split('\n');
				((TMP_Text)__instance.Text).text = "";
				for (int i = 0; i < array.Length; i++)
				{
					if (array[i].Equals("LAUNCH"))
					{
						array[i] = "TUMBLE LAUNCH";
					}
					TextMeshProUGUI text = __instance.Text;
					((TMP_Text)text).text = ((TMP_Text)text).text + array[i] + "\n";
				}
			}
		}

		public const string PluginGUID = "GoopSwagger.UpgradeNameFix";

		public const string PluginName = "UpgradeNameFix";

		public const string PluginAuthor = "GoopSwagger";

		public const string PluginVersion = "1.0.2";

		private void Awake()
		{
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			new Harmony("GoopSwagger.UpgradeNameFix").PatchAll();
		}
	}
}
namespace System.Runtime.CompilerServices
{
	[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
	internal sealed class IgnoresAccessChecksToAttribute : Attribute
	{
		public IgnoresAccessChecksToAttribute(string assemblyName)
		{
		}
	}
}