Decompiled source of Custom DLC Boss Mod v1.0.0

Hk_boss_mod.dll

Decompiled 3 hours ago
using 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 UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("Hk_boss_mod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Hk_boss_mod")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("47df4a99-13a3-494e-ab30-ec27eb2a9a2b")]
[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 TeamCherrySilksongMod;

[BepInPlugin("com.creator.dlcbossmod", "Custom DLC Boss Overhaul", "1.0.0")]
public class DlcBossMod : BaseUnityPlugin
{
	public const string PLUGIN_GUID = "com.creator.dlcbossmod";

	public const string PLUGIN_NAME = "Custom DLC Boss Overhaul";

	public const string PLUGIN_VERSION = "1.0.0";

	internal static ManualLogSource Log;

	private void Awake()
	{
		//IL_0021: Unknown result type (might be due to invalid IL or missing references)
		//IL_0027: Expected O, but got Unknown
		Log = ((BaseUnityPlugin)this).Logger;
		Log.LogInfo((object)"Custom DLC Boss Overhaul version 1.0.0 loaded successfully!");
		Harmony val = new Harmony("com.creator.dlcbossmod");
		val.PatchAll();
	}
}
[HarmonyPatch(typeof(GameObject), "SetActive")]
public static class BossSpawnPatch
{
	[HarmonyPostfix]
	public static void Postfix(GameObject __instance, bool value)
	{
		if (value && ((Object)__instance).name.Contains("Boss_Control_Object"))
		{
			DlcBossMod.Log.LogInfo((object)("Detected Target Boss: " + ((Object)__instance).name + ". Initiating DLC adjustments..."));
			if ((Object)(object)__instance.GetComponent<DlcCustomBehavior>() == (Object)null)
			{
				__instance.AddComponent<DlcCustomBehavior>();
			}
		}
	}
}
public class DlcCustomBehavior : MonoBehaviour
{
	private void Start()
	{
		DlcBossMod.Log.LogInfo((object)"DLC Custom Behavior successfully injected into the boss entity.");
		MonoBehaviour component = ((Component)this).GetComponent<MonoBehaviour>();
		if (!((Object)(object)component != (Object)null))
		{
		}
	}

	private void Update()
	{
	}
}