Decompiled source of FriendlyUpscream v1.0.1

FriendlyUpscream.dll

Decompiled 2 days ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using Microsoft.CodeAnalysis;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("FriendlyUpscream")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("tybikkryt")]
[assembly: AssemblyProduct("FriendlyUpscream")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("53e7815a-f605-487d-bff4-47a3956f65bc")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[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 FriendlyUpscream
{
	[BepInPlugin("tybikkryt.friendlyupscream", "FriendlyUpscream", "1.0.0.0")]
	public class FriendlyUpscreamPlugin : BaseUnityPlugin
	{
		public const string pluginGuid = "tybikkryt.friendlyupscream";

		public const string pluginName = "FriendlyUpscream";

		public const string pluginVersion = "1.0.0.0";

		public void Awake()
		{
			//IL_0005: Unknown result type (might be due to invalid IL or missing references)
			new Harmony("tybikkryt.friendlyupscream").PatchAll();
		}
	}
	[HarmonyPatch(typeof(EnemyUpscream), "UpdateState")]
	public class UpscreamPatch
	{
		public static bool Prefix(EnemyUpscream __instance, State _state)
		{
			//IL_0001: Unknown result type (might be due to invalid IL or missing references)
			//IL_0002: Invalid comparison between I4 and Unknown
			if (6 == (int)_state)
			{
				return false;
			}
			return true;
		}
	}
}