Notice: Wrestling Empire is now using Steam Workshop for official mod support. This page is going to remain accessible, but it's likely the content is not going to be kept up to date.
Decompiled source of WrestlingEmpireKeybindCheats v1.4.0
plugins/WrestlingEmpireKeybindCheats.dll
Decompiled a year agousing System; using System.Diagnostics; using System.IO; using System.Linq; 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.SceneManagement; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = "")] [assembly: AssemblyCompany("WrestlingEmpireKeybindCheats")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("WrestlingEmpireKeybindCheats")] [assembly: AssemblyTitle("WrestlingEmpireKeybindCheats")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.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 WrestlingEmpireKeybindCheats { [BepInPlugin("IngoH.WrestlingEmpire.WrestlingEmpireKeybindCheats", "WrestlingEmpireKeybindCheats", "1.4.0")] [HarmonyPatch] public class Plugin : BaseUnityPlugin { public const string PluginGuid = "IngoH.WrestlingEmpire.WrestlingEmpireKeybindCheats"; public const string PluginName = "WrestlingEmpireKeybindCheats"; public const string PluginVer = "1.4.0"; internal static ManualLogSource Log; internal static readonly Harmony Harmony = new Harmony("IngoH.WrestlingEmpire.WrestlingEmpireKeybindCheats"); internal static string PluginPath; private static float _explosiondelay = Time.time; private void Awake() { Log = ((BaseUnityPlugin)this).Logger; PluginPath = Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location); } private void OnEnable() { Harmony.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded WrestlingEmpireKeybindCheats!"); } private void OnDisable() { Harmony.UnpatchSelf(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Unloaded WrestlingEmpireKeybindCheats!"); } private void Update() { //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_001d: Unknown result type (might be due to invalid IL or missing references) //IL_012c: Unknown result type (might be due to invalid IL or missing references) //IL_0131: Unknown result type (might be due to invalid IL or missing references) //IL_0199: Unknown result type (might be due to invalid IL or missing references) //IL_019e: Unknown result type (might be due to invalid IL or missing references) //IL_01ff: Unknown result type (might be due to invalid IL or missing references) //IL_0204: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) Scene activeScene; if (Input.GetKey((KeyCode)101) && Input.GetKey((KeyCode)120)) { activeScene = SceneManager.GetActiveScene(); if (((Scene)(ref activeScene)).name == "Game" && Time.time > _explosiondelay) { float num = Random.Range(7f, 10f); if (Input.GetKey((KeyCode)306) || Input.GetKey((KeyCode)305)) { num *= 2f; } if (Input.GetKey((KeyCode)308) || Input.GetKey((KeyCode)307)) { num *= 4f; } ALIGLHEIAGO.MDFJMAEDJMG(3, 1, new Color(1f, Random.Range(0.3f, 0.7f), 0f), num, (GameObject)null, Random.Range(-40f, 40f), Random.Range(-10f, 10f), Random.Range(-40f, 40f), 0f, 0f, 0.1f, 1); if (!Input.GetKey((KeyCode)304) && !Input.GetKey((KeyCode)303)) { _explosiondelay = Time.time + 0.1f; } } } for (int i = 48; i <= 57; i++) { if (Input.GetKeyDown((KeyCode)i)) { activeScene = SceneManager.GetActiveScene(); if (((Scene)(ref activeScene)).name == "Calendar") { NEGAFEHECNL.ONMHENKFKEA(); NEGAFEHECNL.GOEACIHJCCJ = 1501; NEGAFEHECNL.FEAIGHFCIBK = Characters.fedData[(i - 49 + 10) % 10 + 1].booker; LIPNHOMGGHF.PMIIOCMHEAE(70); } } } if (Input.GetKey((KeyCode)308) && Input.GetKeyDown((KeyCode)279)) { activeScene = SceneManager.GetActiveScene(); if (((Scene)(ref activeScene)).name == "Game") { DFOGOCNBECG[] oAAMGFLINOB = NJBJIIIACEP.OAAMGFLINOB; foreach (DFOGOCNBECG val in oAAMGFLINOB) { if (val != null) { val.HLGALFAGDGC /= 2f; } } } } if (!Input.GetKey((KeyCode)308) || !Input.GetKeyDown((KeyCode)105)) { return; } activeScene = SceneManager.GetActiveScene(); if (((Scene)(ref activeScene)).name == "Game") { (from cd in NJBJIIIACEP.OAAMGFLINOB where cd != null select cd into c orderby Guid.NewGuid() select c).First().KCFNOONDGKE(Random.Range(0, 4), 2.1474836E+09f); } } [HarmonyPatch(typeof(HJMNFNHBABO), "FAHFIJABANL")] [HarmonyPostfix] private static void HJMNFNHBABO_FAHFIJABANL(ref int __result) { if (Input.GetKey((KeyCode)110)) { __result = 2; } } [HarmonyPatch(typeof(HJMNFNHBABO), "CBMFPPKBNHH")] [HarmonyPostfix] private static void HJMNFNHBABO_CBMFPPKBNHH(ref int __result) { if (Input.GetKey((KeyCode)110)) { __result = 2; } } } }