using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using LCmod.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("LCmod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LCmod")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("28470167-5e36-40f3-8140-be8082aacc2b")]
[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 LCmod
{
[BepInPlugin("Zeus.LCMod", "Moaning cordpull", "1.0.0.0")]
public class Modbase : BaseUnityPlugin
{
private const string modGUID = "Zeus.LCMod";
private const string modName = "Moaning cordpull";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("Zeus.LCMod");
internal static Modbase Instance;
internal static List<AudioClip> SoundFX;
internal static List<AudioClip> SoundFX_1;
internal static List<AudioClip> SoundFX_2;
internal static List<AudioClip> SoundFX_3;
internal static List<AudioClip> SoundFX_4;
internal static AssetBundle Bundle;
internal static AssetBundle Bundle_1;
internal static AssetBundle Bundle_2;
internal static AssetBundle Bundle_3;
internal static AssetBundle Bundle_4;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Zeus.LCMod");
mls.LogInfo((object)"The mod has finally awaken");
harmony.PatchAll(typeof(ShipAlarmCordPatch));
harmony.PatchAll(typeof(SandEmergePatch));
harmony.PatchAll(typeof(SuitSoundPatch));
mls = ((BaseUnityPlugin)this).Logger;
SoundFX_3 = new List<AudioClip>();
string location = ((BaseUnityPlugin)Instance).Info.Location;
location = location.TrimEnd("LCmod.dll".ToCharArray());
Bundle = AssetBundle.LoadFromFile(location + "Moan");
Bundle_1 = AssetBundle.LoadFromFile(location + "ahh");
Bundle_2 = AssetBundle.LoadFromFile(location + "wdrop");
Bundle_3 = AssetBundle.LoadFromFile(location + "wow");
Bundle_4 = AssetBundle.LoadFromFile(location + "jump");
if ((Object)(object)Bundle != (Object)null)
{
mls.LogInfo((object)"Succesfully loaded Asset bundle");
SoundFX = Bundle.LoadAllAssets<AudioClip>().ToList();
SoundFX_1 = Bundle_1.LoadAllAssets<AudioClip>().ToList();
SoundFX_2 = Bundle_2.LoadAllAssets<AudioClip>().ToList();
SoundFX_3 = Bundle_3.LoadAllAssets<AudioClip>().ToList();
SoundFX_4 = Bundle_4.LoadAllAssets<AudioClip>().ToList();
}
else
{
mls.LogError((object)"Failed to load Asset bundle");
}
}
}
}
namespace LCmod.Patches
{
[HarmonyPatch(typeof(SandWormAI))]
internal class SandEmergePatch
{
[HarmonyPatch("Start")]
[HarmonyPostfix]
private static void OverrideAudio(SandWormAI __instance)
{
__instance.emergeFromGroundSFX = Modbase.SoundFX_1[0];
__instance.hitGroundSFX = Modbase.SoundFX_2[0];
}
}
[HarmonyPatch(typeof(ShipAlarmCord))]
internal class ShipAlarmCordPatch
{
[HarmonyPatch("Start")]
[HarmonyPostfix]
private static void OverrideAudio(ShipAlarmCord __instance)
{
__instance.cordPullSFX = Modbase.SoundFX[0];
}
}
[HarmonyPatch(typeof(StartOfRound))]
internal class SuitSoundPatch
{
[HarmonyPatch("Start")]
[HarmonyPostfix]
private static void OverrideAudio(StartOfRound __instance)
{
__instance.changeSuitSFX = Modbase.SoundFX_3[0];
__instance.playerJumpSFX = Modbase.SoundFX_4[0];
}
}
}