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 NoWeather v1.0.0
NoWeather.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using NoWeather.Patches; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("NoWeather")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("NoWeather")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("bb4067ce-6ce6-4ab8-b8d9-0ec5f499f8bf")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace NoWeather { [BepInPlugin("Hasan.NoWeather", "No Weather Mod", "1.0.0")] public class NoWeatherBase : BaseUnityPlugin { private const string modGUID = "Hasan.NoWeather"; private const string modName = "No Weather Mod"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("Hasan.NoWeather"); private static NoWeatherBase instance; internal ManualLogSource mls; private void Awake() { if ((Object)(object)instance == (Object)null) { instance = this; } mls = Logger.CreateLogSource("Hasan.NoWeather"); mls.LogInfo((object)"NoWeatherMod activated."); harmony.PatchAll(typeof(NoWeatherBase)); harmony.PatchAll(typeof(NoWeatherPatch)); } } } namespace NoWeather.Patches { [HarmonyPatch(typeof(StartOfRound))] internal class NoWeatherPatch { [HarmonyPatch("SetPlanetsWeather")] [HarmonyPostfix] private static void NoWeatherUpdate(ref SelectableLevel[] ___levels) { //IL_000b: Unknown result type (might be due to invalid IL or missing references) for (int i = 0; i < ___levels.Length; i++) { ___levels[i].currentWeather = (LevelWeatherType)(-1); } } } }