Decompiled source of LightMod v1.0.0

plugins/shadows-of-doubt-mod.dll

Decompiled a month ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("Shadows of Doubt Mod")]
[assembly: AssemblyDescription("A mod for Shadows of Doubt")]
[assembly: ComVisible(false)]
[assembly: Guid("89bb5746-7ee9-46e9-b9ea-a4d412d51bac")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")]
[assembly: AssemblyVersion("1.0.0.0")]
public static class MyPluginInfo
{
	public const string PLUGIN_GUID = "com.yourname.shadowsofdoubtmod";

	public const string PLUGIN_NAME = "The Kola Konspiracy";

	public const string PLUGIN_VERSION = "0.0.1";
}
namespace ShadowsOfDoubtMod;

[BepInPlugin("com.yourname.shadowsofdoubtmod", "The Kola Konspiracy", "0.0.1")]
public class Plugin : BaseUnityPlugin
{
	private void Awake()
	{
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin com.yourname.shadowsofdoubtmod is loaded!");
		ReduceLightIntensity();
	}

	private void ReduceLightIntensity()
	{
		Light[] array = Object.FindObjectsOfType<Light>();
		foreach (Light val in array)
		{
			val.intensity *= 0.6f;
			((BaseUnityPlugin)this).Logger.LogInfo((object)$"Reduced light intensity for {((Object)val).name} to {val.intensity}");
		}
	}
}