Decompiled source of GunshipCannonAutoMash v1.0.0

AutoGunshipMash.dll

Decompiled a day ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
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(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("AutoGunshipMash")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("AutoGunshipMash")]
[assembly: AssemblyTitle("AutoGunshipMash")]
[assembly: AssemblyVersion("1.0.0.0")]
[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 AutoGunshipMash
{
	[MycoMod(/*Could not decode attribute arguments.*/)]
	[BepInPlugin("myco.autogunship.mash", "Auto Gunship Mash", "1.0.0")]
	public class AutoGunshipMashPlugin : BaseUnityPlugin
	{
		private void Awake()
		{
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			new Harmony("myco.autogunship.mash").PatchAll();
		}
	}
	[HarmonyPatch(typeof(MiniCannon), "OnActiveUpdate")]
	public static class MiniCannonActivePatch
	{
		private static FieldInfo mashField = typeof(MiniCannon).GetField("mashValue", BindingFlags.Instance | BindingFlags.NonPublic);

		private static void Postfix(MiniCannon __instance)
		{
			if (mashField != null)
			{
				mashField.SetValue(__instance, 1.5f);
			}
		}
	}
}