Some mods may be broken due to the recent Alloyed Collective update.
Decompiled source of LessBlueRoost v1.0.1
LessBlueRoost.dll
Decompiled 7 months agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using On.RoR2; using RoR2; using UnityEngine; using UnityEngine.SceneManagement; [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("LessBlueRoost")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("LessBlueRoost")] [assembly: AssemblyTitle("LessBlueRoost")] [assembly: AssemblyVersion("1.0.0.0")] namespace TeleporterBeam; [BepInPlugin("com.rob.LessBlueRoost", "LessBlueRoost", "1.0.1")] public class Plugin : BaseUnityPlugin { public const string MODUID = "com.rob.LessBlueRoost"; public static Color col = new Color(25f / 51f, 25f / 51f, 25f / 51f); private void Awake() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown SceneDirector.Start += new hook_Start(SceneDirector_Start); } private static void SceneDirector_Start(orig_Start orig, SceneDirector self) { //IL_0009: Unknown result type (might be due to invalid IL or missing references) //IL_000e: Unknown result type (might be due to invalid IL or missing references) //IL_0048: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_0075: Unknown result type (might be due to invalid IL or missing references) orig.Invoke(self); Scene activeScene = SceneManager.GetActiveScene(); string name = ((Scene)(ref activeScene)).name; if (name == "blackbeach" || name == "blackbeach2") { Light component = GameObject.Find("Directional Light (SUN)").GetComponent<Light>(); component.color = col; component.intensity = 1.8f; RenderSettings.fogColor = col; RenderSettings.ambientGroundColor = col; RenderSettings.ambientSkyColor = col; } } }