Decompiled source of Catalyst v0.0.11
plugins/Catalyst/BiggerTurbine.dll
Decompiled 3 days agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Core.Logging.Interpolation; using BepInEx.Logging; using BepInEx.Unity.IL2CPP; using HarmonyLib; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("BiggerTurbine")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("BiggerTurbine")] [assembly: AssemblyTitle("BiggerTurbine")] [assembly: AssemblyVersion("1.0.0.0")] [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.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } [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 BiggerTurbine { [HarmonyPatch] internal class HarmonyPatches { [HarmonyPatch(typeof(HeavyFogRepellerGlobalState), "LateUpdate")] [HarmonyPostfix] internal static void Debug__Postfix(HeavyFogRepellerGlobalState __instance) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Invalid comparison between Unknown and I4 if ((int)__instance.m_repellerSphere.CurrentState > 0) { string publicName = RundownManager.ActiveExpedition.Descriptive.PublicName; if (publicName == "Hive Mind") { __instance.m_repellerSphere.Range = 11f; } } } } internal static class Logger { private static readonly ManualLogSource _Logger; static Logger() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Expected O, but got Unknown _Logger = new ManualLogSource("cactus.BiggerTurbine"); Logger.Sources.Add((ILogSource)(object)_Logger); } private static string Format(object msg) { return msg.ToString(); } public static void Info(BepInExInfoLogInterpolatedStringHandler handler) { _Logger.LogInfo(handler); } public static void Info(string str) { _Logger.LogMessage((object)str); } public static void Info(object data) { _Logger.LogMessage((object)Format(data)); } public static void Debug(BepInExDebugLogInterpolatedStringHandler handler) { _Logger.LogDebug(handler); } public static void Debug(string str) { _Logger.LogDebug((object)str); } public static void Debug(object data) { _Logger.LogDebug((object)Format(data)); } public static void Error(BepInExErrorLogInterpolatedStringHandler handler) { _Logger.LogError(handler); } public static void Error(string str) { _Logger.LogError((object)str); } public static void Error(object data) { _Logger.LogError((object)Format(data)); } public static void Fatal(BepInExFatalLogInterpolatedStringHandler handler) { _Logger.LogFatal(handler); } public static void Fatal(string str) { _Logger.LogFatal((object)str); } public static void Fatal(object data) { _Logger.LogFatal((object)Format(data)); } public static void Warn(BepInExWarningLogInterpolatedStringHandler handler) { _Logger.LogWarning(handler); } public static void Warn(string str) { _Logger.LogWarning((object)str); } public static void Warn(object data) { _Logger.LogWarning((object)Format(data)); } [Conditional("DEBUG")] public static void DebugOnly(object data) { _Logger.LogDebug((object)Format(data)); } } [BepInPlugin("cactus.BiggerTurbine", "BiggerTurbine", "1.0.0")] public class Plugin : BasePlugin { public Harmony m_Harmony; public override void Load() { //IL_000d: Unknown result type (might be due to invalid IL or missing references) //IL_0013: Expected O, but got Unknown //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_003a: Expected O, but got Unknown ManualLogSource log = ((BasePlugin)this).Log; bool flag = default(bool); BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(17, 0, ref flag); if (flag) { ((BepInExLogInterpolatedStringHandler)val).AppendLiteral("Plugin is loaded!"); } log.LogInfo(val); m_Harmony = new Harmony("cactus.BiggerTurbine"); m_Harmony.PatchAll(); } } public static class MyPluginInfo { public const string PLUGIN_GUID = "BiggerTurbine"; public const string PLUGIN_NAME = "BiggerTurbine"; public const string PLUGIN_VERSION = "1.0.0"; } }
plugins/Catalyst/CatalystUtility.dll
Decompiled 3 days agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Core.Logging.Interpolation; using BepInEx.Logging; using BepInEx.Unity.IL2CPP; using CellMenu; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyFileVersion("1.1.0")] [assembly: AssemblyInformationalVersion("1.1.0")] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("NoBoosters")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyProduct("NoBoosters")] [assembly: AssemblyTitle("NoBoosters")] [assembly: AssemblyVersion("1.1.0.0")] namespace NoBoosters; [BepInPlugin("dev.aurirex.gtfo.noboosters", "No Boosters", "1.1.0")] [BepInIncompatibility("com.mccad00.AmongDrip")] public class EntryPoint : BasePlugin { public const string PLUGIN_GUID = "dev.aurirex.gtfo.noboosters"; public const string PLUGIN_NAME = "No Boosters"; public const string PLUGIN_VERSION = "1.1.0"; public const string DEVIOUSLICK_GUID = "com.mccad00.AmongDrip"; private Harmony _harmony; internal static ManualLogSource L; public override void Load() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Expected O, but got Unknown L = ((BasePlugin)this).Log; _harmony = new Harmony("dev.aurirex.gtfo.noboosters"); _harmony.PatchAll(Assembly.GetExecutingAssembly()); ((BasePlugin)this).Log.LogInfo((object)"Loaded and patched!"); } } internal class Patches { [HarmonyPatch(typeof(GameStateManager), "DoChangeState")] public static class GameStateManager_DoChangeState_Patch { public static void Postfix(eGameStateName nextState) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Invalid comparison between Unknown and I4 //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0014: Expected O, but got Unknown if ((int)nextState == 6) { ManualLogSource l = EntryPoint.L; bool flag = default(bool); BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(10, 1, ref flag); if (flag) { ((BepInExLogInterpolatedStringHandler)val).AppendLiteral("Disabling "); ((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>("PersistentInventoryManager"); } l.LogInfo(val); ((Behaviour)PersistentInventoryManager.Current).enabled = false; } } } [HarmonyPatch(typeof(PersistentInventoryManager), "OnLevelCleanup")] public static class PersistentInventoryManager_OnLevelCleanup_Patch { public static void Prefix(PersistentInventoryManager __instance) { //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Expected O, but got Unknown ManualLogSource l = EntryPoint.L; bool flag = default(bool); BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(9, 1, ref flag); if (flag) { ((BepInExLogInterpolatedStringHandler)val).AppendLiteral("Enabling "); ((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>("PersistentInventoryManager"); } l.LogInfo(val); ((Behaviour)__instance).enabled = true; } } [HarmonyPriority(0)] [HarmonyPatch(typeof(PersistentInventoryManager), "CommitPendingTransactions")] public static class PersistentInventoryManager_CommitPendingTransactions_Patch { public static bool Prefix() { return false; } } [HarmonyPatch(typeof(CM_PlayerLobbyBar), "SetupFromPage")] public static class CM_PlayerLobbyBar_SetupFromPage_Patch { public static void Postfix(CM_PlayerLobbyBar __instance) { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Unknown result type (might be due to invalid IL or missing references) __instance.m_boosterImplantAlign.position = new Vector3(10000f, 0f, 0f); ((Component)__instance.m_clothesButton).transform.localPosition = new Vector3(170f, -510f, 0f); } } [HarmonyPatch(typeof(PUI_BoosterIconActiveDisplay), "UpdateBoosterIconsActiveState")] public static class PUI_BoosterIconActiveDisplay_UpdateBoosterIconsActiveState_Patch { public static bool Prefix(PUI_BoosterIconActiveDisplay __instance) { ((Component)__instance).gameObject.SetActive(false); return false; } } [HarmonyPatch(typeof(PUI_BoosterDetails), "SetupBoosterDetails")] public static class PUI_BoosterDetails_SetupBoosterDetails_Patch { public static void Postfix(PUI_BoosterDetails __instance) { ((Component)__instance).gameObject.SetActive(false); } } [HarmonyPatch(typeof(PUI_BoosterDetails), "UpdateButtonActiveCheck")] public static class PUI_BoosterDetails_UpdateButtonActiveCheck_Patch { public static bool Prefix(PUI_BoosterDetails __instance) { ((Component)__instance.m_leftButton).gameObject.SetActive(false); ((Component)__instance.m_rightButton).gameObject.SetActive(false); return false; } } }