using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using LC_API.BundleAPI;
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("YIPEE")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("YIPEE")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("1968907c-3606-4be8-baab-fd1f26e22aa5")]
[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")]
[HarmonyPatch(typeof(DepositItemsDesk), "PlayRewardEffects")]
internal class DepositItemsDeskPatch
{
private static void Prefix(DepositItemsDesk __instance, int profit)
{
AudioClip rewardGood = LoadCustomSound();
__instance.rewardGood = rewardGood;
}
private static AudioClip LoadCustomSound()
{
AudioClip loadedAsset = BundleLoader.GetLoadedAsset<AudioClip>("Assets/yipee.wav");
if ((Object)(object)loadedAsset == (Object)null)
{
Debug.LogError((object)"Custom sound not found! Make sure it is placed in the Resources/CustomSounds folder.");
}
return loadedAsset;
}
}
namespace YIPEE;
[BepInPlugin("cartoonist103.lethalcompany.yipee", "YIPPEE", "1.0.0")]
[BepInProcess("Lethal Company.exe")]
public class YipeeMod : BaseUnityPlugin
{
private void Awake()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_000c: Expected O, but got Unknown
Harmony val = new Harmony("cartoonist103.lethalcompany.yipee");
val.PatchAll();
}
}