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 CareerMatchRatings v1.0.1
plugins/CareerMatchRatings.dll
Decompiled 2 years agousing System; 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 BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using UnityEngine; [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.0", FrameworkDisplayName = ".NET Standard 2.0")] [assembly: AssemblyCompany("CareerMatchRatings")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("CareerMatchRatings")] [assembly: AssemblyTitle("CareerMatchRatings")] [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 CareerMatchRatings { [BepInPlugin("GeeEm.WrestlingEmpire.CareerMatchRatings", "CareerMatchRatings", "1.0.1")] [HarmonyPatch] public class Plugin : BaseUnityPlugin { public const string PluginGuid = "GeeEm.WrestlingEmpire.CareerMatchRatings"; public const string PluginName = "CareerMatchRatings"; public const string PluginVer = "1.0.1"; internal static ManualLogSource Log; internal static readonly Harmony Harmony = new Harmony("GeeEm.WrestlingEmpire.CareerMatchRatings"); internal static string PluginPath; 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 CareerMatchRatings!"); } private void OnDisable() { Harmony.UnpatchSelf(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Unloaded CareerMatchRatings!"); } [HarmonyPatch(typeof(Scene_Game), "Start")] [HarmonyPostfix] private static void Scene_Game_StartPostfix() { if (FFCEGMEAIBP.LOBDMDPMFLK != 0 && FFCEGMEAIBP.AEKLGCEFIHM <= 0) { FFCEGMEAIBP.MFIOAPKFAEF(); } } [HarmonyPatch(typeof(Scene_Game), "Update")] [HarmonyPostfix] private static void Scene_Game_UpdatePostfix() { if (LIPNHOMGGHF.GCJKOBOBIGA == 0 && FFCEGMEAIBP.LOBDMDPMFLK >= 2 && FFCEGMEAIBP.AEKLGCEFIHM <= 0 && (Object)(object)FFCEGMEAIBP.MONJNNCCICI != (Object)null) { FFCEGMEAIBP.FLOHFJIGHNK(); } } [HarmonyPatch(typeof(FFCEGMEAIBP), "DMJFCHKLEFH")] [HarmonyPostfix] private static void FFCEGMEAIBP_DMJFCHKLEFHPostfix() { if (FFCEGMEAIBP.AEKLGCEFIHM <= 0) { FFCEGMEAIBP.KGFCDMHGJHL(NAEEIFNFBBO.CGOHLKMAFOB); } } [HarmonyPatch(typeof(FFCEGMEAIBP), "EAAIHKLJFCM")] [HarmonyPostfix] private static void FFCEGMEAIBP_EAAIHKLJFCMPostfix() { if (FFCEGMEAIBP.AEKLGCEFIHM <= 0) { FFCEGMEAIBP.MBJFIEPNHPP = FFCEGMEAIBP.LPCIJOCKGHB * 0.75f * FFCEGMEAIBP.HFHBNLJKNJI; FFCEGMEAIBP.IJOIMLGJION = FFCEGMEAIBP.MANDMCIEJBK * 0.75f * FFCEGMEAIBP.HFHBNLJKNJI; FFCEGMEAIBP.KGFCDMHGJHL(NAEEIFNFBBO.CGOHLKMAFOB); } } [HarmonyPatch(typeof(FFCEGMEAIBP), "BAGEPNPJPLD")] [HarmonyPostfix] private static void FFCEGMEAIBP_BAGEPNPJPLDPostfix() { if (FFCEGMEAIBP.AEKLGCEFIHM <= 0) { FFCEGMEAIBP.FLOHFJIGHNK(); FFCEGMEAIBP.KGFCDMHGJHL(1); FFCEGMEAIBP.GADAJGJBMIB(FFCEGMEAIBP.FMBDEENKKJG, FFCEGMEAIBP.LPCIJOCKGHB, 5500f, 1); } } } }