using System;
using System.Diagnostics;
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;
using UnityEngine;
using UnityEngine.AddressableAssets;
[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("LowEffortDifficultyMod")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.1.1.0")]
[assembly: AssemblyInformationalVersion("1.1.1")]
[assembly: AssemblyProduct("the worst joke mod of all time")]
[assembly: AssemblyTitle("LowEffortDifficultyMod")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.1.1.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 LowEffortDifficultyMod
{
[HarmonyPatch]
internal class Patches
{
[HarmonyPatch(typeof(NewMovement), "Update")]
[HarmonyPrefix]
public static void Events()
{
//IL_0012: Unknown result type (might be due to invalid IL or missing references)
//IL_0017: Unknown result type (might be due to invalid IL or missing references)
//IL_0099: Unknown result type (might be due to invalid IL or missing references)
//IL_009e: Unknown result type (might be due to invalid IL or missing references)
PlayerInput inputSource = MonoSingleton<InputManager>.Instance.InputSource;
FistActions fist = inputSource.Actions.Fist;
if ((inputSource.Fire1.WasPerformedThisFrame || inputSource.Fire2.WasPerformedThisFrame || ((FistActions)(ref fist)).Punch.WasPerformedThisFrame() || ((FistActions)(ref fist)).PunchFeedbacker.WasPerformedThisFrame() || ((FistActions)(ref fist)).PunchKnuckleblaster.WasPerformedThisFrame()) && SceneHelper.CurrentScene != "Main Menu")
{
MonoSingleton<HudMessageReceiver>.Instance.SendHudMessage("nuh uh buddy", "", "", 0, false, false, true);
GameObject val = Object.Instantiate<GameObject>(Addressables.LoadAssetAsync<GameObject>((object)"Assets/Prefabs/Attacks and Projectiles/Explosions/Explosion Sisyphus Prime.prefab").WaitForCompletion(), ((Component)MonoSingleton<NewMovement>.Instance).transform);
Explosion[] componentsInChildren = val.GetComponentsInChildren<Explosion>();
Explosion[] array = componentsInChildren;
foreach (Explosion val2 in array)
{
val2.damage = 6969;
val2.maxSize *= 4f;
val2.speed *= 40f;
}
}
if (Random.RandomRangeInt(1, 1000) == 5 && SceneHelper.CurrentScene != "Main Menu")
{
string[] array2 = new string[4] { "The blood moon has started...", "The martians are invading...", "The heatwave is coming...", "Something wicked this way comes." };
int num = Random.RandomRangeInt(0, array2.Length);
MonoSingleton<HudMessageReceiver>.Instance.SendHudMessage(array2[num], "", "", 0, false, false, true);
}
}
[HarmonyPatch(typeof(LeaderboardController), "SubmitLevelScore")]
[HarmonyPrefix]
public static bool Level()
{
MonoSingleton<HudMessageReceiver>.Instance.SendHudMessage("no high scores for you", "", "", 0, false, false, true);
return false;
}
[HarmonyPatch(typeof(LeaderboardController), "SubmitCyberGrindScore")]
[HarmonyPrefix]
public static bool CyberGrind()
{
MonoSingleton<HudMessageReceiver>.Instance.SendHudMessage("no high scores for you", "", "", 0, false, false, true);
return false;
}
}
[BepInPlugin("LowEffortDifficultyMod", "the worst joke mod of all time", "1.1.1")]
public class Plugin : BaseUnityPlugin
{
internal static ManualLogSource Logger;
private void Awake()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
new Harmony("LowEffortPatch").PatchAll();
Logger = ((BaseUnityPlugin)this).Logger;
Logger.LogInfo((object)"You're gonna have a really bad time");
}
}
public static class MyPluginInfo
{
public const string PLUGIN_GUID = "LowEffortDifficultyMod";
public const string PLUGIN_NAME = "the worst joke mod of all time";
public const string PLUGIN_VERSION = "1.1.1";
}
}