Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of UnknownWeather v1.0.2
BepInEx/plugins/UnknownWeather.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using HarmonyLib; using TMPro; [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("UnknownWeather")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("Disables weather indicators on the terminal and monitor")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("UnknownWeather")] [assembly: AssemblyTitle("UnknownWeather")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] namespace UnknownWeather { [BepInPlugin("UnknownWeather", "UnknownWeather", "1.0.0")] public class UnknownWeather : BaseUnityPlugin { public static Harmony _harmony; private void Awake() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Expected O, but got Unknown _harmony = new Harmony("UnknownWeather"); _harmony.PatchAll(); } } public static class PluginInfo { public const string PLUGIN_GUID = "UnknownWeather"; public const string PLUGIN_NAME = "UnknownWeather"; public const string PLUGIN_VERSION = "1.0.0"; } } namespace UnknownWeather.Patches { [HarmonyPriority(0)] [HarmonyPatch(typeof(Terminal), "LoadNewNode")] public static class ChangeTerminal { public static void Prefix(Terminal __instance, TerminalNode node) { node.displayText = node.displayText.Replace("[planetTime]", ""); node.displayText = node.displayText.Replace("It is \ncurrently [currentPlanetTime] on this moon.", ""); } } [HarmonyPriority(0)] [HarmonyPatch(typeof(StartOfRound), "SetMapScreenInfoToCurrentLevel")] public static class ChangeScreen { public static void Postfix(StartOfRound __instance) { string text = ((TMP_Text)__instance.screenLevelDescription).text; string text2 = text; int num = text2.IndexOf("\nWeather:"); if (num >= 0) { int num2 = text2.IndexOf("\n", num + 1); if (num2 < 0) { num2 = text2.Length; } text2 = text2.Remove(num, num2 - num); if (((TMP_Text)__instance.screenLevelDescription).text.Equals(text)) { ((TMP_Text)__instance.screenLevelDescription).text = text2; } } } } }