Decompiled source of Forrbidenparry v3.0.0

doomah.ultrakill.forrbidenparry/Forrbidenparry.dll

Decompiled 9 months ago
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using UnityEngine;
using UnityEngine.UI;

[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 = "")]
[assembly: AssemblyCompany("SoggyParry")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Sog")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("SoggyParry")]
[assembly: AssemblyTitle("SoggyParry")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace SoggyParry;

[BepInPlugin("doomahreal.ultrakill.forrbidenparry", "Forrbidenparry", "2.0.0")]
public class Plugin : BaseUnityPlugin
{
	private static List<Sprite> _sogsters;

	private void Awake()
	{
		//IL_08a1: Unknown result type (might be due to invalid IL or missing references)
		AssetBundle val = AssetBundle.LoadFromFile(Path.Combine(Assembly.GetExecutingAssembly().Location.Replace("Forrbidenparry.dll", ""), "forrbidenparryassets"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry1.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry2.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry3.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry4.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry5.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry6.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry7.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry8.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry9.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry10.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry11.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry12.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry13.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry14.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry15.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry16.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry17.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry18.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry19.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry20.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry21.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry22.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry23.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry24.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry25.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry26.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry27.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry28.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry29.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry30.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry31.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry32.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry33.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry34.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry35.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry36.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry37.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry38.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry39.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry40.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry41.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry42.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry43.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry44.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry45.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry46.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry47.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry48.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry49.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry50.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry51.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry52.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry53.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry54.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry55.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry56.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry57.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry58.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry59.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry60.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry61.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry62.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry63.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry64.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry65.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry66.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry67.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry68.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry69.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry70.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry71.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry72.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry73.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry74.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry75.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry76.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry77.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry78.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry79.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry80.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry81.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry82.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry83.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry84.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry85.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry86.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry87.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry88.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry89.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry90.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry91.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry92.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry93.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry94.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry95.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry96.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry97.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry98.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry99.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry100.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry101.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry102.png"));
		_sogsters.Add(val.LoadAsset<Sprite>("parry103.png"));
		new Harmony("soggyparry").PatchAll(typeof(Plugin));
	}

	[HarmonyPatch(typeof(TimeController), "ParryFlash")]
	[HarmonyPostfix]
	private static void MakeSoggy(TimeController __instance)
	{
		__instance.parryFlash.GetComponent<Image>().sprite = _sogsters[Random.Range(0, _sogsters.Count)];
	}

	static Plugin()
	{
		_sogsters = new List<Sprite>();
	}
}