Decompiled source of Epilepsy Safe PEAK v1.0.0

EpilepsySafePEAK.dll

Decompiled 3 weeks ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using EpiVision.Patches;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("EpiVision")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("EpiVision")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3ff30cf9-30a1-454f-b2c8-8360fe10273a")]
[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")]
namespace EpiVision
{
	[BepInPlugin("toastoverflow.EpilepsySafePEAK", "EpilepsySafePEAK", "1.0.0")]
	public class EpiVision : BaseUnityPlugin
	{
		public const string PLUGIN_GUID = "toastoverflow.EpilepsySafePEAK";

		public const string PLUGIN_NAME = "EpilepsySafePEAK";

		public const string PLUGIN_VERSION = "1.0.0";

		public static EpiVision Instance { get; private set; }

		internal static ManualLogSource Logger { get; private set; }

		internal static Harmony Harmony { get; set; }

		private void Awake()
		{
			Logger = ((BaseUnityPlugin)this).Logger;
			Instance = this;
			Patch();
		}

		internal static void Patch()
		{
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_0010: Expected O, but got Unknown
			Harmony = new Harmony("toastoverflow.EpilepsySafePEAK");
			Harmony.PatchAll(typeof(CharacterCustomizationPulseStatus));
			Harmony.PatchAll(typeof(GUIManagerColdFX));
			Harmony.PatchAll(typeof(GUIManagerStartSugarRush));
			Harmony.PatchAll(typeof(GUIManagerStartEnergyDrink));
			Harmony.PatchAll(typeof(StaminaBarStart));
			Harmony.PatchAll(typeof(ScoutmasterDoVisuals));
		}
	}
}
namespace EpiVision.Patches
{
	[HarmonyPatch(typeof(StaminaBar), "Start")]
	public static class StaminaBarStart
	{
		public static void Postfix(StaminaBar __instance)
		{
			((Component)((Component)__instance.staminaGlow).transform).gameObject.SetActive(false);
			((Component)((Component)__instance.extraStaminaGlow).transform).gameObject.SetActive(false);
		}
	}
	[HarmonyPatch(typeof(CharacterCustomization), "PulseStatus", new Type[] { typeof(Color) })]
	public static class CharacterCustomizationPulseStatus
	{
		public static bool Prefix()
		{
			return false;
		}
	}
	[HarmonyPatch(typeof(GUIManager), "ColdFX", new Type[] { typeof(float) })]
	public static class GUIManagerColdFX
	{
		public static bool Prefix()
		{
			return false;
		}
	}
	[HarmonyPatch(typeof(GUIManager), "StartSugarRush")]
	public static class GUIManagerStartSugarRush
	{
		public static bool Prefix()
		{
			return false;
		}
	}
	[HarmonyPatch(typeof(GUIManager), "StartEnergyDrink")]
	public static class GUIManagerStartEnergyDrink
	{
		public static bool Prefix()
		{
			return false;
		}
	}
	[HarmonyPatch(typeof(Scoutmaster), "DoVisuals")]
	public static class ScoutmasterDoVisuals
	{
		public static bool Prefix()
		{
			return false;
		}
	}
}