using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using Jotunn.Utils; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyCompany("FreyrWeather")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("1.1.0.0")] [assembly: AssemblyInformationalVersion("1.1.0+789f49cb66b138097975f87267b66276ffcca381")] [assembly: AssemblyProduct("FreyrWeather")] [assembly: AssemblyTitle("FreyrWeather")] [assembly: AssemblyVersion("1.1.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [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 FreyrWeather { [BepInPlugin("elric.FreyrWeather", "Freyr Weather", "1.1.0")] [NetworkCompatibility(/*Could not decode attribute arguments.*/)] [BepInDependency(/*Could not decode attribute arguments.*/)] internal class FreyrWeather : BaseUnityPlugin { [HarmonyPatch(typeof(EnvMan), "InitializeBiomeEnvSetup")] private class Weather { private static void Postfix(BiomeEnvSetup biome) { foreach (EnvEntry environment in biome.m_environments) { if (environment.m_environment.Contains("Rain")) { environment.m_weight /= 2f; } if (environment.m_environment.Contains("Storm") & (biome.m_name != "Ocean")) { environment.m_weight /= 2f; } if (environment.m_environment == "Misty") { environment.m_weight /= 2f; } } } } public const string PluginGUID = "elric.FreyrWeather"; public const string PluginName = "Freyr Weather"; public const string PluginVersion = "1.1.0"; public static bool isModded = true; private void Awake() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) new Harmony("elric.FreyrWeather").PatchAll(); } } }